Not processing tags properly with Twitter service **solved**
Posted: Sun Mar 08, 2020 3:11 pm
Currently using the following for my daily weather tweets - set to run at 6am every day:
Current Conditions at the Wilson's weather station at [hh]:[mm]. It's [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#. Humidity: [th0hum-act=.0] percent. Wind is [wind0wind-havg=mph.1]mph from from the [wind0dir-havg=endir] with gusts up to [wind0wind-hmax=mph.1:--]mph. It has rained [rain0total-hoursum=in.2]in in the past hour, [rain0total-sumday=in.2]in total today. Current Rain: [rain0rate-act=in.2] in/h.
If I use the test function - processes correctly - for example:
Current Conditions at the Wilson's weather station at 09:06. It's 36.0° outside with a wind chill of 35.2°. Humidity: 66 percent. Wind is 3.2mph from from the SSW with gusts up to 10.1mph. It has rained 0.00in in the past hour, 0.00in total today. Current Rain: 0.00 in/h.
But when it tweets according to the schedule at 6am I get:
Current Conditions at the Wilson's weather station at 06:00. It's 33.4° outside. Humidity: 69 percent. Wind is 1.5mph from from the SW with gusts up to --mph. It has rained [rain0total-hoursum=in.2]in in the past hour, 0.00in total today. Current Rain: 0.00 in/h.
Any suggestions - seems to be a processing issue of the tags, not sure why.
Guy
Current Conditions at the Wilson's weather station at [hh]:[mm]. It's [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#. Humidity: [th0hum-act=.0] percent. Wind is [wind0wind-havg=mph.1]mph from from the [wind0dir-havg=endir] with gusts up to [wind0wind-hmax=mph.1:--]mph. It has rained [rain0total-hoursum=in.2]in in the past hour, [rain0total-sumday=in.2]in total today. Current Rain: [rain0rate-act=in.2] in/h.
If I use the test function - processes correctly - for example:
Current Conditions at the Wilson's weather station at 09:06. It's 36.0° outside with a wind chill of 35.2°. Humidity: 66 percent. Wind is 3.2mph from from the SSW with gusts up to 10.1mph. It has rained 0.00in in the past hour, 0.00in total today. Current Rain: 0.00 in/h.
But when it tweets according to the schedule at 6am I get:
Current Conditions at the Wilson's weather station at 06:00. It's 33.4° outside. Humidity: 69 percent. Wind is 1.5mph from from the SW with gusts up to --mph. It has rained [rain0total-hoursum=in.2]in in the past hour, 0.00in total today. Current Rain: 0.00 in/h.
Any suggestions - seems to be a processing issue of the tags, not sure why.
Guy