cpd73 wrote: > I've been investifating the Fontier Silicon API, which I -think- these > players use. Are you familiar with commandline tools? e.g. curl or wget? > Would you mind experimenting? If so here are some simple tests: > > Most API calls need a session, which I believe is created by calling: > > Code: -------------------- > > curl http://192.168.1.1/fsapi/CREATE_SESSION?pin=1234 -------------------- > > > > Replace -192.168.1.1- with the IP address of your S1. -1234- seems to > be the default PIN. But this can be set in a menu? If you have not set > one, try 1234. > If the above command fails, it could be the port number that is wrong, > so try: > > > Code: -------------------- > > curl http://192.168.1.1:2244/fsapi/CREATE_SESSION?pin=1234 -------------------- > > > > If that (or the previous) succeeds, then somewhere in the response > should be the session ID. You then need to use that in all other > calls. In the following examples, replace -123456789- with your > session id. > > The following should return the power state. (Again, replace > -192.168.1.1- with S1's IP, and you might need -:2244- as well' > > Code: -------------------- > > curl http://192.168.1.1/fsapi/GET/netRemote.sys.power?pin=1234&sid=123456789 -------------------- > > > > Did that return anything? > > The following should be able to set the power state. I've used > -value=off-, but it might be -value=0- or someother value. I'm > guessing that the response to the power query above would help > determine what value to use here. > > Code: -------------------- > > curl http://192.168.1.1/fsapi/SET/netRemote.sys.power?pin=1234&sid=123456789&value=off -------------------- > > > > ...but all this is pure guess work, so might not work at all!
Results: for what it's worth ... login as: root [email protected]'s password: Linux ZERO-W 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 22 15:30:03 2019 from 192.168.0.124 root@ZERO-W:~# curl http://192.168.0.132/fsapi/CREATE_SESSION?pin=1234 <fsapiResponse> <status>FS_OK</status> <sessionId>1819936562</sessionId> </fsapiResponse> root@ZERO-W:~# curl http://192.168.0.132/fsapi/GET/netRemote.sys.power?pin=1234&sid=1819936562 [1] 2094 root@ZERO-W:~# <fsapiResponse> <status>FS_OK</status> <value><u8>1</u8></value> </fsapiResponse> ^C [1]+ Done curl http://192.168.0.132/fsapi/GET/netRemote.sys.power?pin=1234 root@ZERO-W:~# curl http://192.168.0.132/fsapi/SET/netRemote.sys.power?pin=1234&sid=1819936562&value=0 [1] 2097 [2] 2098 root@ZERO-W:~# <fsapiResponse> <status>FS_PACKET_BAD</status> </fsapiResponse> ^C -bash: $'\003': command not found [1]- Done curl http://192.168.0.132/fsapi/SET/netRemote.sys.power?pin=1234 [2]+ Done sid=1819936562 root@ZERO-W:~# curl http://192.168.0.132/fsapi/SET/netRemote.sys.power?pin=1234&sid=1819936562&value=off [1] 2100 [2] 2101 root@ZERO-W:~# <fsapiResponse> <status>FS_PACKET_BAD</status> </fsapiResponse> LMS server: Pi Zero Amp: Denon PMA-50 Players/Speakers: Touch, Logitech Radios, Sonos, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Home Mini, Pioneer WX-SMA1, O2 Joggler, Cisco Joggler Brexit = ∞ stupidity ------------------------------------------------------------------------------------ ------------------------------------------------------------------------ castalla's Profile: http://forums.slimdevices.com/member.php?userid=15624 View this thread: http://forums.slimdevices.com/showthread.php?t=103728 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
