I'm auto posting hourly weather updates to Mastodon and Bluesky with some PHP, because, why not :)

Back in the day, when Twitter was still Twitter, I always found it very cool to be able to post weather updates there, every hour, on the hour. But Elon killed that feature and tried to turn the platform into something it isn’t, and after that I just lost interest in Twitter.

Two other platforms that do old school Twitter things, are Mastodon and Bluesky.

I don’t know if someone else already did this too, but just for fun I decided to see if (with some help) I would be able to fabricate some PHP that would post weather updates to Mastodon and Bluesky.

So now I have two scripts, one for each platform. I have set two cron jobs, one for each script, to run the scripts every hour, and here we are.
Basically both scripts retrieve a WD wx##.html file, and then post its contents.

Mastodon allows for automated posting, they even have a checkbox for that so you can let followers know it is automated content.
I’m a bit hesitant about Bluesky though. I haven’t seen if they explicitly allow automated posting, but I also haven’t seen they explicitly forbid it.
//edit: I asked Bluesky support, they replied: it’s allowed.

Should anyone want to do the same, let me know, and I’ll send you the scripts. You will have to then implement it yourself on your own webserver though :slight_smile:

I’m happy with the result:

1 Like

Yes please for the BlueSky script. I have a Mastodon account but I haven’t really used that platform. I’m not thinking of hourly updates…more like providing status updates as and when required, but I’m sure I can modify the script to decide when to send an update.

I would be interested in the Mastodon script. I tried sending weather updates to Mastodon using WD and an API token but, for some reason it didn’t work so, I’m just posting stuff manually.

I have sent you a ZIP :slight_smile:

1 Like

I have sent you a ZIP :slight_smile:

Got it. Thanks a lot.