Button won't change feed value

Hi All,

 

I'v added a button to the dashbard, to be able to change a feed value. The feed name is SW1. The feed is created by an input from Node 20, that's a switch. I'd like to turn of the switch, with the button, but the button won't change the feed value. It will go to red, then it will jump back to green.

I've checked it, it is not because the node 20 is sending a value 1 all the time.

Any idea what is wrong?

Brucez's picture

Re: Button won't change feed value

Please help me solving this.. I'm going crazy getting it work... I really don't understand why there is a button if I can't use it... I should be doing something wrong...

 

arwed's picture

Re: Button won't change feed value

Hi Brucez, do you want to colour the button in the dashboard triggered by the feed value from the switch or the other way round? I believe the latter is not the intention of the button in the dashboard. My understanding is that the button is only a way to visualize digital feed values.

To send values back from EmonCMS to the nodes the packetgen is the proposed way. And that works quite well -- although I'm currently struggling with some details.

Does this help you a bit?

Brucez's picture

Re: Button won't change feed value

Hi!

 

Tanks for your answer. I'm wondering if the button is just a visualization, why can we click on it? Currently I'd like to use the button to change the value of a feed.

Yes I checked packetgen, but unfortunately I'm running EmonCMS on a freebsd server and packetgen runs only on Raspberry. :(

Maybe I'll move to raspberry if I won'be able to sort it.

Actually I have some RF switches that 2-way capable. When you switch it on manually it sends a signal that it's on. But you can turn it on/off remotely also. I wanted to control those switch from the dashboard and wanted the button to change the state even when I operate the switch manually...

Could be I'll need to customize the button javascript, or create a new module for this.

 

Thanks again,

Brucez

Brucez's picture

Re: Button won't change feed value

Is there anybody who knows why is a button clickable? It should have some purpuse I'm (almost) sure.

 

Thanks,

 

Zsolt

maglo18's picture

Re: Button won't change feed value

HI i have the same problem. Could you tell me someone how the button working? I want to send two information to my node. I added two event. 

1. if x = 0 curl 192.168.1.60/ajax_inputs&strPIN30=0

2 if x = 1 curl 192.168.1.60/ajax_inputs&strPIN30=1

I don't know what is wrong but only event 1 is always true, no matter does x is 1 or 0.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.