Announcement

Collapse
No announcement yet.

Continued interest in this plugin?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Found the actual reason why the music player starts updating. Bit confusing but i try to explain it. If I load a music player template it works no problems. I didn't like the layout so I started changing. Things go wrong when you delete the music selector.If you restart the client on the android after the music selector is deleted it won't update anymore. After putting the music selector back it works again.

    I have started working with playlists etc. Getting an error message but I'm probably doing something wrong. Will continue but might need some advice.

    Marcel

    Comment


      What is the error message do you get?


      The way I have the plugin setup is to intercept the PlayMusic APi call and I modified it to check for 3 things.

      it checks the status of the 3 virtual devices created in homeseer called Play Add and Delete created when the plugin starts. It also creates a playlist virtual device as a placeholder for the playlist name.

      Note in my config I'm only using Play and Add button as I do not want my kids deleting my songs!

      In HStouch I have 3 buttons that track the status of these 3 virtual devices and when pressed they fire a script that sets that device to be on and the rest off.

      when you are in the music selector selecting a song depending on the status of the virtual devices it will either play it add it to the playlist or delete it.



      For playlists I created a Playlist manager screen that contains a text-box for playlist name that is tracking the playlist virtual device in HomeSeer. this is where you type the name of your playlist and it will be used to create the playlist in JRMC

      I also have 6 buttons on the page with the following names, you can call them anyting you want: New playlist, Del playlist, Add playlist, Play playlist, Clear playlist, Clear playing now.

      Typing a playlist name in the textbox then hitting the New Playlist button will create a playlist in JRMC.

      The New playlist button configuration is as follows:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: playlist_create
      ScriptParameter1: Text Box 001

      script code:
      sub playlist_create(val as object)

      Dim hspi As Object = hs.plugin("JRMC")
      dim stat as boolean
      Dim music As Object
      music = hspi.GetMusicAPI(2)

      hs.writelog("",val(0))
      music.PlaylistCreateNew(val(0))
      music.reload_playlist()
      music.LibGetPlaylists()
      hspi = nothing
      music = nothing

      end sub

      The Delete Playlist button will delete the name of the playlist that is typed in the textbox

      Del Playlist button config:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: playlist_delete
      ScriptParameter1: Text Box 001

      script code:

      sub playlist_delete(val as object)

      Dim hspi As Object = hs.plugin("JRMC")
      Dim music As Object
      Dim playlist as string

      playlist = hs.DeviceStringByName("Music Playlist")
      music = hspi.GetMusicAPI(1)

      hs.writelog("",playlist)
      music.PlaylistDeletePlaylist(playlist)
      music.reload_playlist()
      music.LibGetPlaylists()
      hspi = nothing
      music = nothing

      end sub

      The Add Playlist button will add the content of the playlist to the playing now window in JRMC for the zone selected in the script but will not start playing.

      Add Playlist to playing now button config:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: add_playlist
      ScriptParameter1: Text Box 001

      script code:

      sub add_playlist(val as object)
      Dim hspi As Object = hs.plugin("JRMC")
      Dim music As Object
      Dim playlist as string

      playlist = hs.DeviceStringByName("Music Playlist")
      music = hspi.GetMusicAPI( Zone for playback)
      music.add_playlist(playlist)
      hspi = nothing
      music = nothing


      end sub

      The Play Playlist button will add the content of the playlist to the playing now window in JRMC for the zone selected in the script and start playing.


      Play Playlist to playing now button config:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: play_playlist
      ScriptParameter1: Text Box 001

      script code:

      sub play_playlist(val as object)
      Dim hspi As Object = hs.plugin("JRMC")
      Dim music As Object
      playlist as string

      playlist = hs.DeviceStringByName("Music Playlist")
      music = hspi.GetMusicAPI("zone to playback - 1 trough &")
      hs.writelog("play playlist ", playlist)
      music.play_playlist(playlist)
      hspi = nothing
      music = nothing


      end sub

      The Clear Playlist button will remove the content of the playlist.


      Clear Playlist button config:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: playlist_clear
      ScriptParameter1: Text Box 001

      script code:

      sub playlist_clear(val as object)

      Dim hspi As Object = hs.plugin("JRMC")
      Dim music As Object
      dim parts()as string
      hs.writelog("",val(0) & val(1))
      music = hspi.GetMusicAPI(val(1))
      music.playlist_clear(val(0))
      hspi = nothing
      music = nothing

      end sub

      The Clear Playing Now button will clear the content of the playing now window in JRMC for the zone selected in the script and stop playback.


      Clear Playing Now to playing now button config:

      Action Type: HomeSeer: Run a HomeSeer Script with values from elements
      script: whatever you named the script
      Script Procedure: clear_playing_now


      script code:

      sub clear_playing_now(val as object)

      Dim hspi As Object = hs.plugin("JRMC")
      Dim music As Object
      Dim parm as string

      music = hspi.GetMusicAPI(specify zone to clear 1 trough & )
      music.clear_playing_now()
      hspi = nothing
      music = nothing

      end sub


      I attached two images to show you my music select screen and playlist manager screen.
      Attached Files

      Comment


        im interested in this plugin for hs3, especially if there are pre made templates for hstouch

        Comment


          There is no HS3 plugin yet

          Comment


            Comment


              Only tested with Ver 17 and 19 of JRMC not 20.

              Comment


                Jriver and HS3

                Hi,
                Is it a way to use jriver and homeseer 3 with a plugin?

                Best regard

                Comment


                  Unfortunately, no. There is a way to use command line with JRMC, but it doesn't give a ton of functionality (play, stop, pause, etc.)

                  Sent from my SCH-I545 using Tapatalk

                  Comment


                    Originally posted by thierryp44 View Post
                    Hi,
                    Is it a way to use jriver and homeseer 3 with a plugin?

                    Best regard
                    Have you tried my MediaController PI (http://board.homeseer.com/showthread.php?t=167644)? JRiver used to support DLNA/UPnP control, not sure they still do and how much they expose. Give it a try, it is a free PI and you can find it on the updater under music PIs. Make sure to check setting on the JRiver app that DLNA/UPnP control is on (not sure there is a setting or not).

                    There is no integration with HSTouch by the way. The MusicAPI got deprecated and the MediaAPI doesn't work for multi zone.

                    Dirk

                    Comment


                      Originally posted by GadgetBoySI View Post
                      Unfortunately, no. There is a way to use command line with JRMC, but it doesn't give a ton of functionality (play, stop, pause, etc.)

                      Sent from my SCH-I545 using Tapatalk
                      ok, thanks, i'll try this way....and hope we will have a new plugin soon...

                      Comment


                        Anyone Still Working On This?

                        I downloaded the trial but have yet to make it do anything. So far it just opens J River every five minutes or so - very annoying. I'm running Media Center 18.0.212. In HomeSeer the only thing I see when selecting J River Media Center Action in an event is an empty drop down for Zone.

                        Does this plugin just not work anymore?

                        Comment


                          Got it working...sort of.

                          In case anyone is looking here, I did get it sorted out by re-running the setup and choosing restore the plugin. I had to do this a couple time before it worked but everything seemed to work okay afterword.

                          Comment


                            Is there any hope on the horizon for a jriver plugin for hs3 that incorporates hstouch?

                            Comment


                              I'm using the free DNLA plugin this gives me basic functionality.

                              Marcel

                              Comment

                              Working...
                              X