Domoticz Status monitoring

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
SandeshHs
Posts: 9
Joined: Friday 19 February 2016 18:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz Status monitoring

Post 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
User avatar
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

Post 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)
Quality outlives Quantity!
SandeshHs
Posts: 9
Joined: Friday 19 February 2016 18:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Status monitoring

Post 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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Domoticz Status monitoring

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest