Announcement

Collapse
No announcement yet.

Media player pluggin now playing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Media player pluggin now playing

    Hello all,

    I am trying to get an event that will announce what is playing. I can get all that to work but this is what I hear instead of just the airtist and song.

    "5/15/2008 9:37:16 AM:Speak: <img border="0" src="/MediaPlayer/images/blank.gif">Playing <b>song</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;By <b>Artist</b>"

    The basic script that I am using is.

    Sub Main()
    playing=hs.DeviceString ("^1")
    'Msgbox (playing)
    hs.speak (playing)
    end sub

    Is there anyway to just get the file name of the file that is playing or anyway to get just the airtist and song.

    Thank you all.
    Justin
    Last edited by ; May 15, 2008, 10:41 AM. Reason: Forum tried to use the html in the log

    #2
    Attachment

    I attached what I am getting to a notepad file because the html is not showing on the forum
    Attached Files

    Comment


      #3
      I think this should work:

      Sub Main()
      playing=hs.Plugin("Media Player").MusicAPI.CurrentTrack + " by " + hs.Plugin("Media Player").MusicAPI.CurrentArtist
      'Msgbox (playing)
      hs.speak (playing)
      end sub

      The Pod

      Comment


        #4
        Thank you I will try that tonight and post tomorow what happended

        Comment


          #5
          Originally posted by jtwolf76 View Post
          Thank you I will try that tonight and post tomorow what happended
          I currently using itunes and I would like to know if this can be applied to the itunes program?
          Hector
          ____________________________________
          Win.2003 OS, HS3
          BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
          BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
          MyTrigger,ACRF2,W800,Zwave
          AP800,Honeywell Stat

          Comment


            #6
            Did you try it? It should work as both are based on the music API.
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              Iam just confused of what to fill in the script.
              Hector
              ____________________________________
              Win.2003 OS, HS3
              BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
              BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
              MyTrigger,ACRF2,W800,Zwave
              AP800,Honeywell Stat

              Comment


                #8
                I do not use this plugin but try this and see if it works.
                Sub Main()
                playing=hs.Plugin("iTunes").MusicAPI.CurrentTrack + " by " + hs.Plugin("iTunes").MusicAPI.CurrentArtist
                'Msgbox (playing)
                hs.speak (playing)
                end sub
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  Working to a point

                  Hello all,

                  That worked to a point but now it is anouncing it twice. looking at the log it says

                  5/15/2008 10:58:26 PM Info Speak ():Aerosmith - Rock In A Hard Place
                  5/15/2008 10:58:26 PM Info Event Trigger "Anounce next song"
                  5/15/2008 10:58:26 PM Info Running script and waiting: now-playing.txt
                  5/15/2008 10:58:26 PM Info Speak ():Aerosmith - Rock In A Hard Place

                  I think that was because I had it on a trigger of track change which I am guessing it see's the end as one and the start as another. I have changed it to

                  Device Media Player Status value changes to any

                  Does this sound right to you guys.

                  Thanks again.
                  Justin

                  Comment

                  Working...
                  X