zaskem / slackbot-tempestweather

A Slack bot to interact with a Tempest weather station, bringing local weather data into your favorite Slack channels.
GNU General Public License v3.0
0 stars 0 forks source link

Better error handling for wonky or delayed alert and current observation data #69

Closed zaskem closed 3 years ago

zaskem commented 3 years ago

Following some station (data source side) power outages, a new bot use case cropped up in which the Tempest API data is not current. This in turn causes the "current" observations to return a blank/null dataset which is wasn't anticipated in the original design as it was unknown how the API would return as the "last known observation."

TL;DR: Add some basic and better/gentler error handling into the bot should alert or current observation data be blank/null.