Re: [SlimDevices: Plugins] Switch Player Proximity Detection
Okay heres a bit of my brainstorming, I'm not sure if this should be created as a plugin for squeezebox server or just as a hackjob script running in Blueproximity. Variables: +Bluetooth Device Mac Addresseses -Bluetooth Devices Previous Location (eg. 00:00:00:00:00:01) +Nearest Squeezebox Player Mac Addresses (eg. (00:00:00:00:00:02) Actions: Upon Entering a Room, if known Bluetooth Mac is discovered run switchplayer cli command (switchplayer from:00:00:00:00:00:01 to:00:00:00:00:00:02). If no Bluetooth Devices Previous Location is set do no run the switchplayer command Requirements: Switchplayer plugin Blueproximity Ubuntu Service Bluetooth dongles situated near desired listening positions Bluetooth devices (iPhone, etc) on the person walking between listening positions) -- Line Line's Profile: http://forums.slimdevices.com/member.php?userid=23800 View this thread: http://forums.slimdevices.com/showthread.php?t=77212 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Switch Player Proximity Detection
USCH, indeed there was, it seems my xmpp server switched over to the default 9090 port after a few forced shutdowns. The commands work through telnet! Now to figure out how to make a script which will know from which player you are were originally travelling from. -- Line Line's Profile: http://forums.slimdevices.com/member.php?userid=23800 View this thread: http://forums.slimdevices.com/showthread.php?t=77212 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Switch Player Proximity Detection
Apparently you have a web server running on port 9090, not the CLI interface. You could try and point your web browser to http://localhost:9090/ to find out what it is. -- usch usch's Profile: http://forums.slimdevices.com/member.php?userid=33389 View this thread: http://forums.slimdevices.com/showthread.php?t=77212 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Switch Player Proximity Detection
Awesome! Thanks Erland So, I tried to run telnet localhost 9090 and then ran some commands and keep getting HTTP/1.1 400 Bad Request Connection: close Connection closed by foreign host. This is from command line on the same system that is running the squeezebox server. Is there something I'm missing to send CLI commands? -- Line Line's Profile: http://forums.slimdevices.com/member.php?userid=23800 View this thread: http://forums.slimdevices.com/showthread.php?t=77212 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Switch Player Proximity Detection
Line;533637 Wrote: > > Here are the contents of the strings file accompanying the switch > player plugin > > ... > > Are these commands that I should use to perform the switching? And how > can I send CLI commands to the squeezebox server? > Thanks! > You will need to look in the Plugin.pm file, the strings.txt just contains strings for the different languages supported. By looking at the Switch Player plugin code, the CLI command implemented by the Switch Player plugin looks like this (switching from 00:00:00:00:00:01 to 00:00:00:00:00:02): Code: switchplayer from:00:00:00:00:00:01 to:00:00:00:00:00:02 And from perl in a plugin you can call it as: Code: Slim::Control::Request::executeRequest(undef, ['switchplayer', "from:00:00:00:00:00:01, "to:00:00:00:00:00:00:02"]); -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=77212 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins