Hi,
I have been trying for a while to add a graph on my cayenne dashboard that counts up by 1 every time a GPIO pin 18 receives a signal. so far no luck. does anyone have an idea how to do this?
Thanks in advance,
Tonny
Hi,
I have been trying for a while to add a graph on my cayenne dashboard that counts up by 1 every time a GPIO pin 18 receives a signal. so far no luck. does anyone have an idea how to do this?
Thanks in advance,
Tonny
So you mean like ‘totalise’ the number of Lo > Hi transitions ?
I recommend a little python running on a Pi (in my case) that picks up the transition but blocks the steady Hi state until it drops back to Lo etc. This can then generate a variable byte or word that is then posted to Cayenne over MQTT.
Here is a starting point if you have not used python into Cayenne:
~ A