HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: maxflax on December 18, 2015, 03:01:24 AM

Title: Computer down checking program.
Post by: maxflax on December 18, 2015, 03:01:24 AM
Hi,
Maybe someone have need for this.

Made a small program for detecting if one of my homegenie boxes dies in my network. if detected downtime a email will go out stating which machine is out. If machine comes back up again the program will detect this and send out another email informing me of that.

In my phone I have a filter for email that will filter out these messages and make a alarm sound.

Title: Re: Computer down checking program.
Post by: [email protected] on December 18, 2015, 04:17:53 PM
Nice, I would go one step further and rather than using ping, make an API call to homegenie using http methods :)

that way if the service crashes it will detect that, rather than a kernel panic or windoze crashing :)
Title: Re: Computer down checking program.
Post by: maxflax on December 19, 2015, 04:31:31 AM
Here is an updated version that first will try ping. If ping is successfull it will test the HG service for response and if one of this fails a email will be sent.
Also a mail will be sent when the connection is restored.

Don't forget to edit all the settings on a Node.