Page 1 of 1
Domoticz Status monitoring
Posted: Monday 07 March 2016 6:02
by SandeshHs
Hello,,,
I have domoticz set up on raspberry pi,
So i wanted to know if there is any method using which i can toggle the GPIO pins of raspberry so as to indicate the status of domoticz..
Like maybe a green light to indicate domoticz is running and red to indicate failure...
any help appreciated... Thank you
Re: Domoticz Status monitoring
Posted: Monday 07 March 2016 8:28
by gizmocuz
Yes thats possible with for example python
http://thepihut.com/blogs/raspberry-pi- ... -gpio-pins
you could check the output from for example
sudo service domoticz.sh status
or you could query the webpage of domoticz to see if it is still alive
and then call your python script with an argument On or Off
you can also use a double colored led (red/blue)
Re: Domoticz Status monitoring
Posted: Monday 07 March 2016 9:28
by SandeshHs
yes that is how i intend to do it... being new to pi or python.. i dont really know how to do the query check or something like that...
So... pls can anyone give an example on how to do it
Re: Domoticz Status monitoring
Posted: Monday 07 March 2016 22:43
by stlaha2007
Have not a direct link, but you can google the following: adafruit gpio led blink.py
This will give you build schema for a led driven from gpio with on/off. Used it myself to educate myself and kids recently.
When you have the LED and blink.py script running you can easely build a bash script which takes gizmocus quote domiticz status and let it turn/switch green and red led's.
Grtz,
Stephan