It runs fine for a while and then occasionally will throw this error:
"Error: sh: closing paren expected sh: closing paren expected can not post tweet (duplicate) (no more tries)"
Any ideas?
Last edited by sjmeff on Tue Oct 04, 2016 4:30 pm, edited 1 time in total.
I tested removing various characters -- ° · ٪ -- but still saw the error. Finally I tried removing the parenthesis around the "feels like" part and I haven't seen the error again. It's always been an intermittent issue, but this has been running for ~12 hrs so far, so I will just use the updated script.
I see in your template that you don't have defined default values for all variables (th0hum-act, rain0total-daysum in if clause).
This might also cause trouble with the square brackets when no sensor data for this sensor available.
admin wrote:I see in your template that you don't have defined default values for all variables (th0hum-act, rain0total-daysum in if clause).
This might also cause trouble with the square brackets when no sensor data for this sensor available.
How do I set defaults? I didn't see that in the docs. Thanks!
I'm having the same problem, but with a very simple template:
Today's high temperature for Hickman County (8.5 miles NE of Centerville) was [th0temp-dmax=F.1:--] ºF. The low temperature was [th0temp-dmin=F.1:--] ºF
I can make it work by replacing the parentheses with commas. But I would like to be able to use parentheses in tweets.