Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running command with second button #118

Open
willcurtis opened this issue Jul 19, 2018 · 1 comment
Open

Problem running command with second button #118

willcurtis opened this issue Jul 19, 2018 · 1 comment

Comments

@willcurtis
Copy link

Hi Guys,

I have added a second button to an already working config file, the 2 buttons perform exactly the same function currently but the second button does not action the command. The logs below show the first button (Blink) working correctly but the second button (Doorbell) displays a message stating "There was an error:"

[2018-07-19T10:37:22.873Z] Blink pressed. Count: 2
[2018-07-19T10:39:48.473Z] Blink pressed. Count: 3
[2018-07-19T10:40:10.313Z] Blink pressed. Count: 4
[2018-07-19T10:40:33.353Z] Doorbell pressed. Count: 5
[2018-07-19T10:40:33.369Z] There was an error:
[2018-07-19T10:40:58.313Z] Doorbell pressed. Count: 6
[2018-07-19T10:40:58.327Z] There was an error:
[2018-07-19T10:41:27.433Z] Doorbell pressed. Count: 7
[2018-07-19T10:41:27.446Z] There was an error:

The config is identical for each button bar the MAC address and very simple.

{"buttons":[
{
"name": "Blink",
"address": "78:E1:03:69:C9:19",
"interface": "eth0",
"timeout": "10000",
"protocol": "udp",
"url": "http://<ip_address>:8934/blink1/pattern/play?pname=RGB"
},
{
"name": "Doorbell",
"address": "6C:56:97:68:24:21",
"interface": "eth0",
"timeout": "10000",
"protocol": "udp",
"url": "http://<ip_address>:8934/blink1/pattern/play?pname=RGB"
}
]}

Any ideas? Is there anywhere to get a more detailed error message than just "There was an error:"

Thanks in advance.

@willcurtis
Copy link
Author

Seems I have managed to resolve this through trial and error. Ultimately removing the "interface" line on the second button (Doorbell) allows both buttons to function. No idea as to why though.

Does specifying the interface on one of the buttons prevent it from being monitored for button presses from other buttons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant