Weather Software > WeeWX Software

weewx extension to send notification if the station goes offline

(1/2) > >>

uajqq:
I created a simple extension that sends a ping to healthchecks.io with every weewx archive interval. That way, you can receive a notification whenever the station goes offline for a certain length of time. Notifications can be emails, text messages, even phone calls. Let me know what you think:

https://github.com/uajqq/weewx-healthchecks

zoomx:
Next year I will test it! Thanks!

vrishabkakade:
Thank you so much for this extension. I have been using it successfully.

Can you please tell me how I can customize it to use it with custom alerts? For example, I want to be able to automatically execute a restart script if weewx crashes.

uajqq:
You could get the source code from GitHub and modify it. Basically you erase what I have and would put whatever you want to happen within the “send_ping” function:

def send_ping(self):
    [your stuff]


But that’s running within weewx, so it won’t do much good if weewx itself crashes. You’d have to set Healthchecks or something similar to run the script itself, or notify your server to run the script. I’m not sure how you’d do that.

davidmc36:
Righteous.

I just set up MB to ping every hour when my email notice goes out. I set up the email a while back to monitor its status. But you have to remember to check it.

So now I will get notice if it fails. Sweet.

I can just change the frequency of the email and keep closer tabs if need be.

Navigation

[0] Message Index

[#] Next page

Go to full version