Hello, I installed the twitter extension 'weewx-twitter' on my install
(Debian 11 + WeeWX 4.7.0 + weewx-twitter 0.15) and it works fine. I
modified the 'twitter.py' file to post a tweet to my weather twitter
account and I wish the extension sends a tweet at a fixed time (0:00, 6:00,
12:00, 18:00). But if WeeWX or the computer restarts, tweets are sent the
minutes the software starts (Ex: If WeeWX restarts at 4:12, the tweet is
sent at 6:12, then 12:12, 18:12).
Here is my part of the file:
``` ts = time.localtime()
if (ts.tm_hour != 0 and ts.tm_hour != 6 and ts.tm_hour != 12 and
ts.tm_hour != 18):
logdbg("This is not hour to tweet: %d" % ts.tm_hour)
return
```
--
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/f64195f9-3abb-4862-a1df-aa3e8246082cn%40googlegroups.com.