FediMeteo

@admin@fedimeteo.com

FediMeteo brings real-time weather updates to the Fediverse, covering cities across multiple countries. Explore country-specific weather forecasts and RSS feeds.

This account will be used for communications, announcements, and support for FediMeteo.

The homepage of the project is https://fedimeteo.com

To contact me, you can use this account or my main one: @stefano@bsd.cafe

Also, you can send an email to admin@fedimeteo.com

Thank you!

Your Fediverse Meteorologist,
Stefano Marinelli

1 following, 609 followers

21 ★ 10 ↺

[?]FediMeteo » 🌐
@admin@fedimeteo.com

Under the hood update!

I’ve finally retired the old cron + sh setup for the weather bots. It served us well, but it had a major flaw: if I rebooted the server while it was posting, the job just died halfway. If the server was down during a scheduled slot, the forecast was lost forever.

So, I wrote a custom Python daemon to run inside the FreeBSD Jails.

  • It’s stateful now. If a crash happens at city 15 of 50, it resumes exactly there on reboot.
  • If the server naps/is rebooting during a scheduled run, the bot realizes it missed a slot and runs immediately upon waking up.

    ...

    [?]Alex » 🌐
    @underwood@fosstodon.org

    @admin @stefano is the python code available in a git repo or anything? I’d love to take a look! Thanks!

      ...
      0 ★ 0 ↺

      [?]FediMeteo » 🌐
      @admin@fedimeteo.com

      @underwood@fosstodon.org @stefano@bsd.cafe not yet - it's a part of the bot code and it isn't ready for release, yet. (Many comments, mostly in Italian, etc)

        History