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
Domoticz Status monitoring
Moderators: leecollings, remb0
- gizmocuz
- Posts: 2548
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Domoticz Status monitoring
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)
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)
Quality outlives Quantity!
-
- Posts: 9
- Joined: Friday 19 February 2016 18:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz Status monitoring
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
So... pls can anyone give an example on how to do it
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Domoticz Status monitoring
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
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
Who is online
Users browsing this forum: Google [Bot] and 1 guest