Hi,
I am using *weewx 3.9.2* with T*witter extension 0.12.* The weather station
is a* WMR200*. In weewx.conf, my format is the following:
[[Twitter]]
...
format = {dateTime:%H:%M} Temp: {outTemp:%.1f} °C; Humidité:
{outHumidity:%.0f}%; Pression: {barometer:%.0f} hPa; Pluie 1h: {rain:%.1f} mm;
Vent: {windSpeed:%.1f} km/h; Dir: {windDir:%03.0f}
This works quite well, and I generally get nice tweets e.g. 14:40 Temp:
19.3 °C; Humidité: 64%; Pression: 1013 hPa; Pluie 1h: 0.0 mm; Vent: 2.7
km/h; Dir: 182
However, *occasionally, I get bogus tweets*: 22:10 Temp: 14.4 °C; Humidité:
81%; Pression: 1019 hPa; Pluie 1h: 0.0 mm; Vent: {windSpeed:%.1f} km/h;
Dir: {windDir:%03.0f}, *as you can see it prints the formatting for wind
speed and wind dir, instead of formatting it.*
My intuition is that this occurs when for some reason, windSpeed and
WindDir are not defined, or null, or something like that. I think that
probably something needs to fixed in twitter python script, so that the
values are not tweeted if not present. I'm not exactly sure what the test
should be. `!= None` ? `is not null `, `if defined...` ?
Thanks
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/3dd66032-7949-4a55-abd0-1d913ab9d6a6%40googlegroups.com.