def UV(): currentStateAQI = IndexAirQuality() resultAQI = queryAQI() arrowAQI = arrowAQ() tempCurrentC = str(calcC()) tempCurrentC = tempCurrentC[:2] arrowHI = dirArrow() direction = dirHI() resultUVI = queryUV() colorHI = colorIndexHeat() colorAQI = colorIndexAir() colorUVI = colorUV() currentStateUVI = IndexUV() tipUVI = tipsUVI() noMedia = noMediaUV() indexHeatState = indexHeatStateColor() return render_template('UV.html', noMedia=noMedia, colorUVI=colorUVI, colorHI=colorHI, colorAQI=colorAQI, resultUVI=resultUVI, currentStateUVI=currentStateUVI, direction=direction, resultAQI=resultAQI, indexHeatState=indexHeatState, tempCurrentC=tempCurrentC, currentStateAQI=currentStateAQI, tipUVI=tipUVI, arrowHI=arrowHI, arrowAQI=arrowAQI)
def index(): currentStateAQI = IndexAirQuality() resultAQI = queryAQI() tipAQI = tipsAQI() tweetAQI(currentStateAQI, resultAQI, tipAQI) tipHI = tipsHI() tempCurrentC = calcC() direction = dirHI() indexHeatState = indexHeatStateColor() tweetHeat(tipHI) return render_template('index.html', resultAQI=resultAQI, indexHeatState=indexHeatState, tempCurrentC=tempCurrentC, currentStateAQI=currentStateAQI, tipAQI=tipAQI, tipHI=tipHI, direction=direction)