[MMM] [DD] - High and lows for Centerville, just west of the town square, are #if# {*105 - [th0temp-dmax=F.1:0] *} #then# [th0temp-dmax=F.1:--]º #else# [th0temp-dmax.1:--]º #fi#and [th0temp-dmin=F.1:--]º F. #if# {*([rain0total-daysum=in.2:0] > .02)*} #then#Today's rainfall: [rain0total-daysum=in.2:0] inches #else# https://t.co/9EXJdgeXZS#fi#
Dec 06 - High and lows for Centerville, just west of the town square, are 46.4º and 23.2º F. https://www.wunderground.com/personal-w ... =KTNCENTE3
or
Dec 09 - High and lows for Centerville, just west of the town square, are 34.9º and 32.9º F. Today's rainfall: 0.20 inches
It's currently [th0temp-act=F.1:--]° outside#if# {*([wind0chill-act=F.1:--] < [th0temp-act=F.1:--])*} #then# with a wind chill of [wind0chill-act=F.1:--]°#else##fi##if#{*([th0heatindex-act=F.1:--] > [th0temp-act=F.1:--])*} #then# with a heat index of [th0heatindex-act=F.1:--]°#else##fi#. #if#{*([wind0wind-hmax=mph.1:--] > 0)*}#then#Wind is [wind0wind-havg=mph.1]mph from from the [wind0dir-havg=endir] with gusts up to [wind0wind-hmax=mph.1:--]mph.#else##fi# #if# {*([rain0total-daysum=in.2:0] > .02)*} #then#It has rained [rain0total-hoursum=in.2]in in the past hour, [rain0total-sumday=in.2]in total today. #else# #fi#
Here are the conditions:
it will always show temp.
if the wind chill is less than the temp, show wind chill.
if the heat index is greater than the temp, show heat index.
if the wind is gusting to greater than 0mph, then show wind speed, gust, and direction.
if it has rained more than .02" in the day, then show total rainfall and rainfall rate for the past hour (it tweets hourly).
It's currently [th0temp-act=F.1:--]° outside#if# {*([wind0chill-act=F.1:--] < [th0temp-act=F.1:--])*} #then# with a wind chill of [wind0chill-act=F.1:--]°#else##fi##if#{*([th0heatindex-act=F.1:--] > [th0temp-act=F.1:--])*} #then# with a heat index of [th0heatindex-act=F.1:--]°#else##fi#. #if#{*([wind0wind-hmax=mph.1:--] > 0)*}#then#Wind is [wind0wind-havg=mph.1]mph from from the [wind0dir-havg=endir] with gusts up to [wind0wind-hmax=mph.1:--]mph.#else##fi# #if# {*([rain0total-daysum=in.2:0] > .02)*} #then#It has rained [rain0total-hoursum=in.2]in in the past hour, [rain0total-sumday=in.2]in total today. #else# #fi#
Here are the conditions:
it will always show temp.
if the wind chill is less than the temp, show wind chill.
if the heat index is greater than the temp, show heat index.
if the wind is gusting to greater than 0mph, then show wind speed, gust, and direction.
if it has rained more than .02" in the day, then show total rainfall and rainfall rate for the past hour (it tweets hourly).
Thank you for sharing this code. I've implemented it in my hourly tweet reporting but I'm having an issue with the rainfall. This is what is outputs:
Conditions at 12:00 PM - 30.4°F outside with a wind chill of 25.7°F. It has rained [rain0total-hoursum=in.2]in in the past hour, 0.03in total today.
Any ideas what's wrong? I've copied your code verbatim and there's no extra characters/spaces/etc. that might have accidentally made its way in.
Thanks in advance for any help you (or anyone else) can give.
It's currently [th0temp-act=F.1:--]° outside#if# {*([wind0chill-act=F.1:--] < [th0temp-act=F.1:--])*} #then# with a wind chill of [wind0chill-act=F.1:--]°#else##fi##if#{*([th0heatindex-act=F.1:--] > [th0temp-act=F.1:--])*} #then# with a heat index of [th0heatindex-act=F.1:--]°#else##fi#. #if#{*([wind0wind-hmax=mph.1:--] > 0)*}#then#Wind is [wind0wind-havg=mph.1]mph from from the [wind0dir-havg=endir] with gusts up to [wind0wind-hmax=mph.1:--]mph.#else##fi# #if# {*([rain0total-daysum=in.2:0] > .02)*} #then#It has rained [rain0total-hoursum=in.2]in in the past hour, [rain0total-sumday=in.2]in total today. #else# #fi#
Here are the conditions:
it will always show temp.
if the wind chill is less than the temp, show wind chill.
if the heat index is greater than the temp, show heat index.
if the wind is gusting to greater than 0mph, then show wind speed, gust, and direction.
if it has rained more than .02" in the day, then show total rainfall and rainfall rate for the past hour (it tweets hourly).
Thank you for sharing this code. I've implemented it in my hourly tweet reporting but I'm having an issue with the rainfall. This is what is outputs:
Conditions at 12:00 PM - 30.4°F outside with a wind chill of 25.7°F. It has rained [rain0total-hoursum=in.2]in in the past hour, 0.03in total today.
Any ideas what's wrong? I've copied your code verbatim and there's no extra characters/spaces/etc. that might have accidentally made its way in.
Thanks in advance for any help you (or anyone else) can give.
I'm receiving the same results when posting hourly. I'm assuming it is because the hourly rain resets at the top of the hour so there is no data yet. I could be wrong on this and waiting response from someone that knows.
Also tried posting at 45 after the hour, it works but then I wonder if the above is true that is it only pulling the data from minute 1 to 45 each hour?
UPDATE: I changed the interval to "before every full hour" and it is now working without any issues!
I think the explanation that when no rain information has yet been recorded for the current hour, then "[rain0total-hoursum=in.2]" might not be evaluated because of no data. when you change to "[rain0total-hoursum=in.2:0]" you should be fine. Sensor data should always be given a default reply in case no data there.