brown-SSW / brown-solar-charger

This program monitors a solar power system and runs a physical and online dashboard.
https://brown-ssw.github.io/brown-solar-charger/
4 stars 1 forks source link

avoid repeat firebase not available alerts #43

Closed joshua-8 closed 3 years ago

joshua-8 commented 3 years ago

firebaseAvailable gets flipped true and false if some things (like reads) can be done but writes can't be.

perhaps the best solution would be to start a timer or something and only allow one alert per day or so

in theory it would be cool to not reset the alert until every firebase function starts working again, but that could be difficult

joshua-8 commented 3 years ago

the best solution is to have a separate flag for every firebase action