Using -z, I get a more infos. Apparently, this is the command being send
to the server:
Code:
--------------------
1581357277.5801 6 control.c,276: Button pressed: Pin: 11, Press Type:Short
1581357277.5802 6 servercomm.c,74: Send Command:0, Fragment:["pause"]
1581357277.5802 7 servercomm.c,122: Server ::192.168.2.9:0 command:
{"id":1,"method":"slim.request","params":["b8:22:eb:45:bc:3e",["pause"]]}
--------------------
The Server and port seem to be wrong, it should be port 9000?!
I added -P 9000 to the launch command, however now I get a segmentation
fault:
Code:
--------------------
1581357680.1965 6 sbpd.c,312: Options parsing: Set debug mode
1581357680.1983 6 sbpd.c,342: Options parsing: Manually set http address
192.168.2.9
Segmentation fault
--------------------
Additionally I found the API documentation and created the curl by hand.
That works without issues, hence something is broken in the plugin or my
configuration of it?
Code:
--------------------
curl -X POST -d
'{"id":0,"params":["b8:22:eb:45:bc:3e",["button","pause.single"]],"method":"slim.request"}'
http://192.168.2.9:9000/jsonrpc.js
--------------------
------------------------------------------------------------------------
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