Announcement

Collapse
No announcement yet.

iTunes DAAP plugin - Beta testing

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

    #46
    Hi Spud,

    OK, so ive been using this for a while now, and this recurs for me quite often.
    My findings,
    In an event - Set Device iTunes DAAP Status to Pause
    when Dirk's Mediacontroller PI has a media renederer set to play, works some of the time but will sometimes not work (setting iTunes DAAP to play works all the time?). It then throws errors
    Apr-02 21:52:49 Error Calling SetIOMulti in plugin iTunesDAAP:Object reference not set to an instance of an object. Apr-02 21:52:10 Event Event Trigger "AV Lounge TV PAUSE Lights" Apr-02 21:52:10 Device Control Device: AV iTunes DAAP Status to Next (-2) Apr-02 21:52:10 Error Event AV Lounge TV PAUSE plugin action failed:Object reference not set to an instance of an object. Apr-02 21:52:00 Warning Plugin iTunesDAAP is not responding but it is still running, not restarting yet. Apr-02 21:51:49 Error Calling HSEvent in plugin iTunesDAAP, Instance :Object reference not set to an instance of an object. Apr-02 21:51:49 Error Calling SetIOMulti in plugin iTunesDAAP:Object reference not set to an instance of an object. Apr-02 21:51:41 Device Control Device: AV iTunes DAAP Status to Pause (3)

    I also have RF remote that I use for changing tracks, playing, pausing, volume etc setting it playing seems ok but the pause doesn't seem to work.

    Control using the iPhone iTunes remote works fine.

    Sometimes when a pause is missed, opening the iPhone ITunes remote app and navigating to the player screen causes the pause command to suddenly fire.

    I wondered if the iPhone app was conflicting, but not using it makes no difference.

    EDIT: If I restart the PI it connects again etc. Pressing pause on my remote the first time gives a small pause in the audio only. The second press shortly after will pause it.

    Let me know if you need anything else.

    Cheers

    J
    Last edited by Skinnez; April 2, 2015, 05:52 PM.

    Comment


      #47
      Originally posted by Skinnez View Post
      Hi Spud,

      OK, so ive been using this for a while now, and this recurs for me quite often.
      My findings,
      In an event - Set Device iTunes DAAP Status to Pause
      when Dirk's Mediacontroller PI has a media renederer set to play, works some of the time but will sometimes not work (setting iTunes DAAP to play works all the time?). It then throws errors
      Apr-02 21:52:49 Error Calling SetIOMulti in plugin iTunesDAAP:Object reference not set to an instance of an object. Apr-02 21:52:10 Event Event Trigger "AV Lounge TV PAUSE Lights" Apr-02 21:52:10 Device Control Device: AV iTunes DAAP Status to Next (-2) Apr-02 21:52:10 Error Event AV Lounge TV PAUSE plugin action failed:Object reference not set to an instance of an object. Apr-02 21:52:00 Warning Plugin iTunesDAAP is not responding but it is still running, not restarting yet. Apr-02 21:51:49 Error Calling HSEvent in plugin iTunesDAAP, Instance :Object reference not set to an instance of an object. Apr-02 21:51:49 Error Calling SetIOMulti in plugin iTunesDAAP:Object reference not set to an instance of an object. Apr-02 21:51:41 Device Control Device: AV iTunes DAAP Status to Pause (3)

      I also have RF remote that I use for changing tracks, playing, pausing, volume etc setting it playing seems ok but the pause doesn't seem to work.

      Control using the iPhone iTunes remote works fine.

      Sometimes when a pause is missed, opening the iPhone ITunes remote app and navigating to the player screen causes the pause command to suddenly fire.

      I wondered if the iPhone app was conflicting, but not using it makes no difference.

      EDIT: If I restart the PI it connects again etc. Pressing pause on my remote the first time gives a small pause in the audio only. The second press shortly after will pause it.

      Let me know if you need anything else.

      Cheers

      J
      I have no idea what's going on, and unfortunately I can't replicate this problem on my system. It looks like the plugin may be unresponsive even before the pause command is sent because there is not a single log line that comes from the iTunes plugin.
      Do you have some other errors in the logs before that? What are the last log lines from the iTunes plugin (i.e. type=iTunesDAAP)?

      how often does it happen? do you have a way to replicate systematically?

      I'm will add more logs to the plugin to try to get more clues.

      Comment


        #48
        FYI im on the latest PI version again.
        I'll try and get the problem with debug logs on and post it.
        I agree that it somehow hangs and no commands can be sent to iTunes from the PI, be it from my RF remote / Hs event. (But the play recent playlist event I have will work even when in this state, weird?)
        Are you trying this out on win 8.1?
        One thing I will try today is to put iTunes on a different VM to HS as it is now, and see if it helps. I'll try 8.1 and win 7 I think.

        The issue is intermittent, and usually happens every time iTunes is controlled from an event within say 5 mins, sometimes longer, but sending more commands to iTunes speeds it up.
        Cheers
        J

        Comment


          #49
          I've been trying to pair a remote instance of itunes. When I try to put the 4 digit code into itunes it just says it's incorrect and won't pair, I've taken the old ip out of your ini file. Anything else I need to do??
          Cheers
          J

          Comment


            #50
            It did it first thing this morning. I think it needs to be left alone for a few hours and it will do it straight away.
            So I have started iTunes with my RF remote and then attempted to change the volume.
            It starts iTunes OK and I think one or two volume changes happen then it locks up. I keep issuing volume/track change/ stop iTunes from the RF remote, and nothing happens.
            I then open up the iPhone iTunes Remote app and navigate to the "now playing screen". As soon as this screen pops up on my phone ALL the commands have queued somewhere and fire all at once.

            It did it last night also, but after refreshing it with the iPhone iTunes remote app and all the queued commands gone it then works OK and no matter what I did it wouldn't happen again. So I left it and tried again this morning, the log from this morning is below.

            I have disabled the firewall again on my HS3 VM but it makes no difference.

            I hope you can sort it.

            Apr-05 10:23:10 Device Control Device: MediaController Philips TV Mute to Off (1000)
            Apr-05 10:23:10 Event Event Trigger "AV iTunes Paused unmute TV"
            Apr-05 10:23:07 iTunesDAAP DEBUG State Updated
            Apr-05 10:23:04 iTunesDAAP DEBUG Cover Updated
            Apr-05 10:23:04 iTunesDAAP DEBUG Track updated: Locomotive Guns N' Roses Use Your Illusion II Rock
            Apr-05 10:23:04 Device Control Device: MediaController Philips TV Mute to On (1001)
            Apr-05 10:23:04 Event Event Trigger "AV iTunes PLAY mute tv"
            Apr-05 10:23:04 iTunesDAAP DEBUG State Updated
            Apr-05 10:23:04 ECHO Echo for Bathroom Aeon PIR, No Echo (4 mins, 55 secs)
            Apr-05 10:23:03 ECHO Echo for Landing PIR, No Echo (1 mins, 24 secs)
            Apr-05 10:23:03 iTunesDAAP DEBUG Cover Updated
            Apr-05 10:23:03 iTunesDAAP DEBUG Track updated: Locomotive Guns N' Roses Use Your Illusion II Rock
            Apr-05 10:23:03 iTunesDAAP DEBUG State Updated
            Apr-05 10:23:03 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:03 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:03 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:03 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:02 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:01 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:00 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:23:00 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:23:00 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:23:00 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:23:00 iTunesDAAP DEBUG Cover Updated
            Apr-05 10:22:58 Warning Plugin iTunesDAAP is not responding but it is still running, not restarting yet.
            Apr-05 10:22:54 Z-Wave Device: Upstairs Bathroom Aeon PIR Set to Off/Closed/No Motion
            Apr-05 10:22:54 Z-Wave Device: Upstairs Bathroom Aeon PIR Set to On/Open/Motion
            Apr-05 10:22:52 Error Calling HSEvent in plugin iTunesDAAP, Instance :Object reference not set to an instance of an object.
            Apr-05 10:22:52 Error Calling SetIOMulti in plugin iTunesDAAP:Object reference not set to an instance of an object.
            Apr-05 10:22:44 Z-Wave Device: Upstairs Bathroom Temperature Set to 17.4 (C)
            Apr-05 10:22:43 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:43 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:43 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:43 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:43 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:43 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:39 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:39 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:39 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:39 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:39 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:39 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:38 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:38 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:38 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:37 Z-Wave Device: Upstairs Bathroom Aeon PIR Set to Off/Closed/No Motion
            Apr-05 10:22:37 Z-Wave Device: Upstairs Bathroom Aeon PIR Set to On/Open/Motion
            Apr-05 10:22:37 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:37 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:37 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:35 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:35 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:35 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:35 Device Control Device: AV iTunes DAAP Status to Pause (3)
            Apr-05 10:22:35 Device Control Device: AV iTunes DAAP Shuffle to Shuffle Off (0)
            Apr-05 10:22:35 Event Event Trigger "Remotes iTunes pause remote"
            Apr-05 10:22:34 Event Event Trigger "PIR Landing PIR Timer"
            Apr-05 10:22:31 Device Control Device: AV iTunes DAAP Status to Next (-2)
            Apr-05 10:22:31 Event Event Trigger "Remotes iTunes next remote"
            Apr-05 10:22:30 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:30 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:29 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:29 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:28 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:28 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:27 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:27 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:25 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:25 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:25 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:25 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:23 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:23 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:23 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:23 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:22 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:22 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:17 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:17 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:17 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:17 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:17 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:16 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:16 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:16 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:16 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:16 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:15 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:15 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
            Apr-05 10:22:15 iTunesDAAP DEBUG Speaker Device Found: 0
            Apr-05 10:22:15 Device Control Device: AV iTunes DAAP Master Volume to - (-1002)
            Apr-05 10:22:15 Event Event Trigger "Remotes iTunes volume DOWN"
            Apr-05 10:22:13 Z-Wave Device: Downstairs Lounge Speakers TKB Home Switch Set to 255
            Apr-05 10:22:13 Device Control Device: Downstairs Lounge Speakers TKB Home Switch to On (255)
            Apr-05 10:22:13 Event Event Trigger "AV Lounge speakers on"
            Apr-05 10:22:11 iTunesDAAP DEBUG Track updated: School (Live) Nirvana Nevermind (20th Anniversary Deluxe Edition) Grunge
            Apr-05 10:22:11 Device Control Device: MediaController Philips TV Mute to On (1001)
            Apr-05 10:22:11 Event Event Trigger "AV iTunes PLAY mute tv"
            Apr-05 10:22:11 iTunesDAAP DEBUG State Updated
            Apr-05 10:22:10 iTunesDAAP DEBUG State Updated
            Apr-05 10:22:10 Device Control Device: AV iTunes DAAP Shuffle to Shuffle On (1)
            Apr-05 10:22:10 Event Event Trigger "Remotes iTunes play remote"

            Comment


              #51
              Hey Skinnez,

              I tested the iTunes DAAP plugin a lot today, I found some problems and fixed them but I'm not sure if this is exactly the problems you experienced.
              I added timeouts to the commands sent to iTunes so that if one command timeout it does not stop the other ones from being sent and does not crash the plugin, I added some logs and generally hardened the code.

              Please test version 3.0.0.16 attached.
              Before you start the plugin please tick the developer mode checkbox, you will then see the plugin logs in a console and there may be some additional information which are not in the HS logs.

              Thanks

              I've been trying to pair a remote instance of itunes. When I try to put the 4 digit code into itunes it just says it's incorrect and won't pair, I've taken the old ip out of your ini file. Anything else I need to do??
              yes, removing the old ip should be enough, alternatively you can just delete or rename the ini file and then start the plugin, it will be automatically recreated when needed.
              what exact error do you see and where? can you post a screenshot?
              Attached Files

              Comment


                #52
                Thanks Spud, much appreciated.
                I managed to sort the other remote iTunes instance and got it paired - turned out to be something in the firewall on the HS3 VM - so thats off now and out of the equation.
                I'll try the attached, and hopefully get some results back to you shortly.

                Cheers

                J

                Comment


                  #53
                  Hi Spud,

                  It did it again, and log attached below (it did come back though). Ill get more info over the next few days, when I test it more.

                  Cheers

                  J

                  Apr-08 21:53:30 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:53:30 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:53:30 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:53:30 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:53:30 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:53:30 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:53:30 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:53:30 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:53:30 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:53:30 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:53:29 Event Event Trigger "SYSTEM Upstairs device change"
                  Apr-08 21:53:29 RFXCOM 26 (SetIOMulti) set value: 0->ref:155 ControlType:Button
                  Apr-08 21:53:29 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:53:29 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:53:29 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:53:29 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:53:29 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:53:29 Device Control Device: Upstairs Landing Light to Off (0)
                  Apr-08 21:53:29 Event Event Trigger "PIR Landing Light Timeout"
                  Apr-08 21:53:28 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:53:28 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:53:28 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:53:28 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:53:28 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:53:26 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:53:26 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:53:26 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:53:26 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:53:26 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:53:26 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:53:26 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:53:26 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:53:26 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:53:26 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:53:23 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:53:23 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:53:23 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:53:23 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:53:23 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:53:22 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:53:22 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:53:22 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:53:22 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:53:22 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:53:18 RFXCOM 26 (SetIOMulti) set value: 0->ref:56 ControlType:Button
                  Apr-08 21:53:18 Device Control Device: Downstairs Hall Light to Off (0)
                  Apr-08 21:53:18 Event Event Trigger "PIR Hall PIR Timout"
                  Apr-08 21:53:16 iTunesDAAP DEBUG Cover Updated
                  Apr-08 21:53:08 Z-Wave Device: Downstairs Kitchen Luminance Set to 0 (%)
                  Apr-08 21:53:08 JW Kitchen Luminance written to virtual device : 11
                  Apr-08 21:53:08 Z-Wave Device: Downstairs Kitchen Luminance Set to 11 (%)
                  Apr-08 21:53:06 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:53:06 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:53:06 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:53:06 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:53:06 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:53:05 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.GetSpeakers(Double& masterVolume)
                  Apr-08 21:53:05 iTunesDAAP ERROR Cannot get speakers. The operation has timed out
                  Apr-08 21:53:04 Z-Wave Device: Downstairs Lounge Heater + Meter Volts Set to 249.8 (249.8 Volts)
                  Apr-08 21:52:55 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:52:55 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.SetMasterVolume(Double volume)
                  Apr-08 21:52:55 iTunesDAAP ERROR Cannot set master volume: The operation has timed out
                  Apr-08 21:52:50 iTunesDAAP DEBUG PollDevicesAndSpeakers End
                  Apr-08 21:52:50 iTunesDAAP DEBUG Speaker Device Found: 3CA9F40458C0
                  Apr-08 21:52:50 iTunesDAAP DEBUG Speaker Device Found: 155D01150A
                  Apr-08 21:52:50 iTunesDAAP DEBUG Speaker Device Found: 34C0593236C1
                  Apr-08 21:52:50 iTunesDAAP DEBUG Speaker Device Found: 0
                  Apr-08 21:52:50 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.GetSpeakers(Double& masterVolume)
                  Apr-08 21:52:50 iTunesDAAP ERROR Cannot get speakers. The operation has timed out
                  Apr-08 21:52:44 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:52:44 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:52:44 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:52:44 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:52:40 iTunesDAAP DEBUG PollDevicesAndSpeakers Begin
                  Apr-08 21:52:40 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.SetMasterVolume(Double volume)
                  Apr-08 21:52:40 iTunesDAAP ERROR Cannot set master volume: The operation has timed out
                  Apr-08 21:52:35 Device Control Device: MediaController Philips TV Volume to Up (1001)
                  Apr-08 21:52:35 Event Event Trigger "Remotes TV volume UP"
                  Apr-08 21:52:35 Device Control Device: AV iTunes DAAP Master Volume to + (-1001)
                  Apr-08 21:52:35 Event Event Trigger "Remotes iTunes volume UP"
                  Apr-08 21:52:28 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.ControlExecuteCommand(String cmd, String query)
                  Apr-08 21:52:28 iTunesDAAP ERROR The operation has timed out
                  Apr-08 21:52:23 Device Control Device: AV iTunes DAAP Status to Next (-2)
                  Apr-08 21:52:23 Event Event Trigger "Remotes iTunes next remote"
                  Apr-08 21:52:20 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.ControlExecuteCommand(String cmd, String query)
                  Apr-08 21:52:20 iTunesDAAP ERROR The operation has timed out
                  Apr-08 21:52:17 SENSOR RECOVERY Sensor Recovery has occurred for Hall PIR
                  Apr-08 21:52:17 NO ECHO No Echo for Hall PIR, Echo (2 mins)
                  Apr-08 21:52:15 Device Control Device: AV iTunes DAAP Status to Next (-2)

                  Comment


                    #54
                    as you can see in the logs all the commands sent between 21:52:15 and 21:53:16 time out, this means iTunes is unresponsive or busy doing something else, so you need to find why:

                    maybe you are sending too many commands at once? maybe another program is sending some other commands to iTunes? Try to simplify your event as much as possible.

                    one thing I noticed in this log is that when it starts working again the log says "Cover Updated" which means the plugin has finished downloading a cover from iTunes. Can you check if that always happen, i.e after the timeout errors you always have a "Cover updated" message, and then it start working again.

                    Comment


                      #55
                      Hey Skinnez,

                      How is it going with this new version?

                      I'm more and more convinced that your problem has something to do with downloading covers from iTunes... Are you using something particular related to that ?

                      I could add a setting to disable the downloads of covers, to confirm that this is the problem.

                      Comment


                        #56
                        Hi Spud,
                        It's going ok, I'll get more time later tonight to give my findings. Need to check a few things first.
                        Mmmmmm maybe so with the covers, you could try a disable to see. I noticed it takes upto 4 secs to say it's updated in the log sometimes. I don't use anything special though.
                        It's certainly different (maybe better, can't tell yet!!), back shortly.
                        Cheers
                        J

                        Comment


                          #57
                          Hi Spud,

                          I have noticed that when Pressing play from the iTunes DAAP Status device it starts to play OK, then pressing pause will pause iTunes but the device still stays on "Playing". Then if I press Next it changes and the state is then blank? Seems difficult to get it to display Pause in the status device, although iTunes does pause and play.
                          Time-outs are still occurring but I haven't had any bad lock-ups yet and no "object reference not set to an instance of an object" errors - which is good.
                          I will try running my AV events later tonight when the coast is clear, and let you know.

                          Cheers

                          J

                          Comment


                            #58
                            Hmmmm
                            Updated iTunes last night - new one just out.
                            Updated HS to .163 also.
                            The iTunes state device seems a little better, but that could be because its had a re-boot. Ill mess around with it thru the day.

                            Cheers

                            J

                            Comment


                              #59
                              Hi Spud,

                              The updates haven't changed anything, but I am thinking the Cover Art might be a good thing to disable (try).
                              Log below shows it unresponsive, for a good 30 secs, then I open up the iTunes remote app and the Cover updates.

                              Cheers

                              J

                              Apr-13 22:30:06 iTunesDAAP DEBUG Cover Updated
                              -------OPENED iTUNES REMOTE APP ON MY iPHONE-----------
                              Apr-13 22:29:44 ECHO Echo for Lounge Aeon PIR, No Echo (16 secs)
                              Apr-13 22:29:37 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.ControlExecuteCommand(String cmd, String query)
                              Apr-13 22:29:37 iTunesDAAP ERROR The operation has timed out
                              Apr-13 22:29:32 Device Control Device: AV iTunes DAAP Status to Next (-2)
                              Apr-13 22:29:32 Event Event Trigger "Remotes iTunes next remote"
                              Apr-13 22:29:28 SENSOR RECOVERY Sensor Recovery has occurred for Lounge Aeon PIR
                              Apr-13 22:29:28 NO ECHO No Echo for Lounge Aeon PIR, Echo (2 mins, 9 secs)
                              Apr-13 22:29:18 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.ControlExecuteCommand(String cmd, String query)
                              Apr-13 22:29:18 iTunesDAAP ERROR The operation has timed out
                              Apr-13 22:29:13 iTunesDAAP DEBUG Stack: at System.Net.HttpWebRequest.GetResponse() at Dmap.ContentFetcher.FetchResponse(String path, Int64 offset, String query, WebHeaderCollection extraHeaders, Int32 requestId, Boolean disableKeepalive, Int32 timeoutInSecs) at Dmap.ContentFetcher.Fetch(String path, String query, WebHeaderCollection extraHeaders, Int32 requestId, Int32 timeoutInsecs) at HSPI_ITUNES_DAAP.DacpClient.ControlExecuteCommand(String cmd, String query)
                              Apr-13 22:29:13 iTunesDAAP ERROR The operation has timed out
                              Apr-13 22:29:12 Device Control Device: AV iTunes DAAP Status to Next (-2)
                              Apr-13 22:29:12 Event Event Trigger "Remotes iTunes next remote"
                              Apr-13 22:29:08 Device Control Device: AV iTunes DAAP Status to Next (-2)
                              Apr-13 22:29:08 Event Event Trigger "Remotes iTunes next remote"

                              Comment


                                #60
                                Originally posted by Skinnez View Post
                                Hi Spud,

                                The updates haven't changed anything, but I am thinking the Cover Art might be a good thing to disable (try).
                                Log below shows it unresponsive, for a good 30 secs, then I open up the iTunes remote app and the Cover updates.

                                Cheers

                                J
                                at least the plugin doesn't crash anymore or make HS3 unresponsive, right?

                                Please try version 3.0.0.17
                                Add the following to your iTunesDAAP.ini in the [GENERAL] section
                                Code:
                                fetch_covers=False
                                then restart the plugin

                                If we confirm the problem is due to fetching the cover art, could you send me some of the covers from your iTunes library, I would like to be able to replicate this problem.
                                Attached Files

                                Comment

                                Working...
                                X