Okay that's enough dev for 1 day. My weather bot is now up and running at @weather so give it a follow if you want #Brisbane weather updates every hour or so. Weather data is from https://openweathermap.org and I'll release the source code a bit later so anyone can contribute to future development. Boosts welcome. Thanks all!
Current weather and forecast - OpenWeatherMap

OpenWeather provides comprehensive weather data services, including current, forecast, and historical weather information. Explore a wide range of APIs for solar radiation, road risk assessment, solar energy prediction, and more, with global coverage and user-friendly access. Ideal for developers and businesses seeking accurate and reliable weather insights.

Here's the source code as promised. Any help anyone can give developing this bot is appreciated. Issues and pull requests always welcome.

https://github.com/phocks/bne-weather-bot 🌞

GitHub - phocks/bne-weather-bot

Contribute to phocks/bne-weather-bot development by creating an account on GitHub.

GitHub
@phocks this is cool! Could you send it a toot a location and it reply with the weather? Is it set up with one location or can you set that somehow?
@cjerrington Yep I thought of that. It could be done. Right now it looks up a latlon and seems to pick the most recent closest weather station. Tooting a location would require geocoding the location into lat and long numbers
@cjerrington Feel free to suggest it as a feature in Github if ya want :)
@cjerrington oh and it would also require listening to toot replies so hooking up to the Mastodon Streaming API probably
@cjerrington or you could do it just with more frequent polling of the endpoint I guess. It just wouldn't be real time. Not sure if Deno Deploy could handle a persistent streaming http connection anyway. But yes, good features to think about :)
@phocks I’ll take a look closer soon and make some suggestions!

@phocks the code has a fixed lat lon location but the name of the location seems to change. Is that a “feature” of the weather API?

Maybe a bit too “smart” but what if the bot looked at a profile field for bne.social members that had a lat lon or suburb, it’d select a member at random until it finds a valid profile field, with fallback to current?

I can derive the pseudocode but I’m not proficient with TS 😕

@phocks @weather Oooooo me likey! Nice work on the handle and the bot mate. 🙌🏼☀️