Hi there,
I am trying to get this working on a Pi zero. I used chills script and
when looking on verbose output, I can see the button is registered and a
command seems to be send to the server.
Code:
--------------------
1581350083.4460 6 sbpd.c,307: Options parsing: Set verbose mode
1581350083.4475 6 sbpd.c,342: Options parsing: Manually set http address
192.168.2.9
1581350083.4482 6 sbpd.c,496: Using builtin button configuration
1581350083.4490 6 control.c,108: Adding Command PLAY: Fragment ["pause"]
1581350083.4511 6 control.c,108: Adding Command VOL+: Fragment
["button","volup"]
1581350083.4526 6 control.c,108: Adding Command VOL-: Fragment
["button","voldown"]
1581350083.4560 6 control.c,108: Adding Command PREV: Fragment
["button","rew"]
1581350083.4573 6 control.c,108: Adding Command NEXT: Fragment
["button","fwd"]
1581350083.4574 6 control.c,108: Adding Command POWR: Fragment
["button","power"]
1581350083.4575 6 GPIO.c,312: Initializing GPIO
1581350083.4768 6 control.c,262: Button defined: Pin 11, BCM Resistor: up,
Short Type: LMS, Short Fragment: ["pause"] , Long Type: unused, Long Fragment:
(null), Long Press Time: 3000
1581350083.4904 6 discovery.c,385: MAC address found: b8:22:eb:45:bc:3e
1581350083.4919 6 servercomm.c,176: Initializing CURL
1581350083.5676 6 sbpd.c,255: Starting main loop polling
1581350091.4959 6 GPIO.c,107: Short PRESS: 316
1581350091.4960 6 control.c,134: Button CB set for button #:0, gpio pin 11
1581350091.5851 6 control.c,276: Button pressed: Pin: 11, Press Type:Short
1581350091.5852 6 servercomm.c,74: Send Command:0, Fragment:["pause"]
--------------------
However nothing happens. Sometimes I got a timeout error message:
Code:
--------------------
1581347930.8281 6 servercomm.c,134: Curl Error: (28)
1581347930.8282 6 servercomm.c,136: Connection timed out after 5001
milliseconds
--------------------
The command I use to start sbpd is
Code:
--------------------
sbpd -v -A 192.168.2.9 b,11,PLAY,2,0
--------------------
Is there a way to see the curl command being generated? Or has anyone
another idea why this is not working?
Chris
------------------------------------------------------------------------
ChrisList's Profile: http://forums.slimdevices.com/member.php?userid=69842
View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy