BETA: SpotSeer - A Spotify client for HomeSeer
This plugin will allow you to control play music via Spotify and your HomeSeer servers soundcard. It is a very simple plugin, but should be able to do the job just fine. For more advanced uses, multi zone setups, etc, I refer you to the excellent (or so I hear) Squeezebox plugin.
SpotSeer creates three devices. The first for artist and track information together with Play/Pause, Next and Previous controls. The two next devices are for selecting playlists and tracks respectively.
At the moment there is no track and playlist management via the plugin, you do all that from the original Spotify application(s). However, I'm planning to implement a simple search routine (it's nearly done).
It also supports various scripting functions:
SpotSeer also works great with HStouch, just use list boxes like you normally would for a device with device values. However, after alot of programming and swearing to make it work and refresh like you would expect it to (like refresh the track list when you select a new playlist) I discovered that there's a bug in HStouch. So... I'm not causing it, HStouch is.
Annoying? Yes it is. But perhaps it will be resolved soon, the more that complains the faster it gets fixed.
Changelog:
0.5.0
Completely redesigned the whole plugin.
0.0.1
The old version, see the post below.
Known issues:
HStouch can't refresh the lists of playlists and tracks. The /stat page works great (after you refresh the page manually).
This is BETA, there has to be bugs.
If you're upgrading, delete the existing SpotSeer device and hspi_spotseer.ini in the /Config folder.
This plugin will allow you to control play music via Spotify and your HomeSeer servers soundcard. It is a very simple plugin, but should be able to do the job just fine. For more advanced uses, multi zone setups, etc, I refer you to the excellent (or so I hear) Squeezebox plugin.
SpotSeer creates three devices. The first for artist and track information together with Play/Pause, Next and Previous controls. The two next devices are for selecting playlists and tracks respectively.
At the moment there is no track and playlist management via the plugin, you do all that from the original Spotify application(s). However, I'm planning to implement a simple search routine (it's nearly done).
It also supports various scripting functions:
Code:
hs.Plugin("SpotSeer").Spotify.Play() Start playing if a track is loaded or paused hs.Plugin("SpotSeer").Spotify.Pause() Pauses if a track is playing. hs.Plugin("SpotSeer").Spotify.PlayPause() Toggles play/pause. hs.Plugin("SpotSeer").Spotify.PlayPrevious() Plays the previous track in the playlist. hs.Plugin("SpotSeer").Spotify.PlayNext() Plays the next track in the playlist. hs.Plugin("SpotSeer").Spotify.PlayAt(index) Start playing the track at a specific place in the playlist. hs.Plugin("SpotSeer").Spotify.LoadPlaylist(index_or_hash) Loads a playlist specified either by index or by hash (like "5773521"). hs.Plugin("SpotSeer").Spotify.LoadPlaylistFromString(playlist_name) Loads a playlist specified by the playlistname (like "My Foo Fighters playlist"). hs.Plugin("SpotSeer").Spotify.RefreshPlaylists() Refreshes the playlists. hs.Plugin("SpotSeer").Spotify.RefreshTracks() Refreshes the tracks.
SpotSeer also works great with HStouch, just use list boxes like you normally would for a device with device values. However, after alot of programming and swearing to make it work and refresh like you would expect it to (like refresh the track list when you select a new playlist) I discovered that there's a bug in HStouch. So... I'm not causing it, HStouch is.
Annoying? Yes it is. But perhaps it will be resolved soon, the more that complains the faster it gets fixed.
Changelog:
0.5.0
Completely redesigned the whole plugin.
0.0.1
The old version, see the post below.
Known issues:
HStouch can't refresh the lists of playlists and tracks. The /stat page works great (after you refresh the page manually).
This is BETA, there has to be bugs.
If you're upgrading, delete the existing SpotSeer device and hspi_spotseer.ini in the /Config folder.
Comment