Announcement

Collapse
No announcement yet.

Set player radiostation?

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

    Set player radiostation?

    I'm still converting some of my old scripts and that's to tenscriptaid I have foud the code to do almost everything except select what to play.

    For example, to play my bedroom speaker I use:
    Code:
    hs.CAPIControlHandler(hs.CAPIGetSingleControl(hs.GetDeviceRefByName("Sonos Master Bedroom Player"),True,"Play",False,False))
    But if I wanted to play a specific radiostation where would I specify that?

    #2
    Originally posted by sifuhall View Post
    I'm still converting some of my old scripts and that's to tenscriptaid I have foud the code to do almost everything except select what to play.

    For example, to play my bedroom speaker I use:
    Code:
    hs.CAPIControlHandler(hs.CAPIGetSingleControl(hs.GetDeviceRefByName("Sonos Master Bedroom Player"),True,"Play",False,False))
    But if I wanted to play a specific radiostation where would I specify that?
    https://forums.homeseer.com/showpost...07&postcount=9

    More examples here:
    https://forums.homeseer.com/showthread.php?t=190219
    https://forums.homeseer.com/showthread.php?t=188246
    https://forums.homeseer.com/showthre...ic#post1287086

    All the best with converting the scripts.

    Dirk

    Comment


      #3
      Thank you!

      I had forgotten about that!

      Comment


        #4
        Looks like the command is giving these errors:

        Code:
        Nov-24 12:34:40 PM	 	Sonos Error	Type = Learned
        Nov-24 12:34:40 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
        Nov-24 12:34:40 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
        Nov-24 12:34:40 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
        Nov-24 12:34:40 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
        Nov-24 12:34:07 PM	 	Sonos Error	Type = Learned
        Nov-24 12:34:07 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
        Nov-24 12:34:07 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
        Nov-24 12:34:07 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
        Nov-24 12:34:07 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked

        Comment


          #5
          Originally posted by sifuhall View Post
          Looks like the command is giving these errors:

          Code:
          Nov-24 12:34:40 PM         Sonos Error    Type = Learned
          Nov-24 12:34:40 PM         Sonos Error    MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
          Nov-24 12:34:40 PM         Sonos Error    URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
          Nov-24 12:34:40 PM         Sonos Error    Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
          Nov-24 12:34:40 PM         Sonos Error    UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
          Nov-24 12:34:07 PM         Sonos Error    Type = Learned
          Nov-24 12:34:07 PM         Sonos Error    MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
          Nov-24 12:34:07 PM         Sonos Error    URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
          Nov-24 12:34:07 PM         Sonos Error    Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
          Nov-24 12:34:07 PM         Sonos Error    UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
          Is there data missing in this posting? Could you post everything with debug log on from the moment you issued your script, including the content of the script or at least the call to the plugin syntax at full.

          What OS are we running this on and which version of the PI are we using? This error is somewhat tangential to what you are trying to do, is this perhaps a port from Windows to Linux (or vice versa) through copy/paste?

          Comment


            #6
            The OS is Windows 7

            PI is 3.1.0.20

            The full command is

            Code:
            	hs.PluginFunction("Sonos", "RINCON_B8E937B4A74001400", "PlayMusic", {"", "","Learned - (Shake, Shake, Shake) Shake Your Booty Radio","","","","","","","",false,0})
            The log is
            Code:
            
            Nov-24 2:33:26 PM	 	Sonos Error	GetPicture called for Zone - Kitchen url= http://https://cont-1.p-cdn.com/images/public/int/7/2/0/4/081227094027_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
            Nov-24 2:33:08 PM	 	Sonos Error	GetPicture called for Zone - Kitchen url= http://https://cont-1.p-cdn.com/images/public/int/7/2/0/4/081227094027_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
            Nov-24 2:33:05 PM	 	Sonos Error	Type = Learned
            Nov-24 2:33:05 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
            Nov-24 2:33:05 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
            Nov-24 2:33:05 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
            Nov-24 2:33:05 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
            Nov-24 2:32:35 PM	 	Sonos Error	Type = Learned
            Nov-24 2:32:35 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
            Nov-24 2:32:35 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
            Nov-24 2:32:35 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
            Nov-24 2:32:35 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
            Nov-24 2:32:03 PM	 	Event	Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/hall_custom.vb("myTest","3")
            Nov-24 2:32:03 PM	 	Event	Event Trigger "Testing Basic Code Test"
            Nov-24 2:32:03 PM	 	Event	Event Testing Basic Code Test triggered by the event page 'Run' button.

            Comment


              #7
              Originally posted by sifuhall View Post
              The OS is Windows 7

              PI is 3.1.0.20

              The full command is

              Code:
                  hs.PluginFunction("Sonos", "RINCON_B8E937B4A74001400", "PlayMusic", {"", "","Learned - (Shake, Shake, Shake) Shake Your Booty Radio","","","","","","","",false,0})
              The log is
              Code:
              
              Nov-24 2:33:26 PM         Sonos Error    GetPicture called for Zone - Kitchen url= http://https://cont-1.p-cdn.com/images/public/int/7/2/0/4/081227094027_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
              Nov-24 2:33:08 PM         Sonos Error    GetPicture called for Zone - Kitchen url= http://https://cont-1.p-cdn.com/images/public/int/7/2/0/4/081227094027_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
              Nov-24 2:33:05 PM         Sonos Error    Type = Learned
              Nov-24 2:33:05 PM         Sonos Error    MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
              Nov-24 2:33:05 PM         Sonos Error    URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
              Nov-24 2:33:05 PM         Sonos Error    Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
              Nov-24 2:33:05 PM         Sonos Error    UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
              Nov-24 2:32:35 PM         Sonos Error    Type = Learned
              Nov-24 2:32:35 PM         Sonos Error    MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
              Nov-24 2:32:35 PM         Sonos Error    URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
              Nov-24 2:32:35 PM         Sonos Error    Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
              Nov-24 2:32:35 PM         Sonos Error    UpdateRadioStationsInfo unable write this record for zoneplayer = Kitchen with error - database is locked database is locked
              Nov-24 2:32:03 PM         Event    Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/hall_custom.vb("myTest","3")
              Nov-24 2:32:03 PM         Event    Event Trigger "Testing Basic Code Test"
              Nov-24 2:32:03 PM         Event    Event Testing Basic Code Test triggered by the event page 'Run' button.
              Can you do this with the PI debug log enabled?
              Is the PI running as administrator?
              Apart from the error, is the command working or nothing is working at all?

              The error you captured is caused when a radiostation is played and the PI writes all info to its database. As you can see from the error, the PI can't write to the DB which could be:
              a/ something went wrong during the install and the database or the SQLLite dlls were not installed properly
              b/ the PI is not running as an admin and therefore can't write in the subdirectory which is embedded under \Program files .. and therefore need admin rights.
              c/ the DB is locked because it is opened by a 3rd party tool or some other issue
              d/ the DB is corrupt and needs to be deleted, which means you need to at least play the radiostations you plan to use in your script to re-learn its info

              Dirk

              Comment


                #8
                Originally posted by sifuhall View Post
                Nov-24 2:33:26 PM Sonos Error GetPicture called for Zone - Kitchen url= http://https://cont-1.p-cdn.com/imag..._500W_500H.jpg caused error: The remote name could not be resolved: 'https
                I would also recommend you upgrade to version .22 to get rid of the error above.

                Dirk

                Comment


                  #9
                  This was after running as admin.

                  I'll try the upgrade in just a bit.

                  Code:
                  Nov-24 3:39:03 PM	 	Sonos	HS updated in TransportChanged for zonePlayer Living Room. HSRef = 601 and updated DeviceValue = False
                  Nov-24 3:39:03 PM	 	Sonos	Checking linked zones for SourceZone = Living Room. MyZoneIsSourceForLinkedZone=False and TargetZones =
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room is the same from the previous event
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room is not tracks and radio Radio
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(AlbumArtURL) = /images/Sonos/NoArt.png
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Album) = Raise!
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Radio) = Radio - Title info = Let's Groove
                  Nov-24 3:39:03 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Artist) = Earth, Wind & Fire
                  Nov-24 3:39:03 PM	 	Sonos Error	GetPicture called for Zone - Living Room url= http://https://mediaserver-cont-dc6-2-v4v6.pandora.com/images/public/int/8/2/8/4/074643754828_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
                  Nov-24 3:39:01 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentPlayMode) = NORMAL
                  Nov-24 3:39:01 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(NumberOfTracks) = 2
                  Nov-24 3:39:01 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrackDuration) = 0:05:36
                  Nov-24 3:39:01 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrack) = 1
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (% played) = 18
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (Queue Position) = 1
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Duration) = 0:05:36
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position Seconds) = 61
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position) = 0:01:01
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (albumArtURI) =
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (title) = Let's Groove
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (album) = Raise!
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo PositionInfo (creator) = Earth, Wind & Fire
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo(Source) = Radio
                  Nov-24 3:39:01 PM	 	Sonos	Living Room TrackInfo () = Internet Radio x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:39:01 PM	 	Sonos	UpdateRadioStationsInfo done for Zone = Living Room
                  Nov-24 3:39:01 PM	 	Sonos	UpdateRadioStationsInfo updated RadioStation = Learned - (Shake, Shake, Shake) Shake Your Booty Radio for Zone = Living Room with QueryResult = 1
                  Nov-24 3:38:49 PM	 	Sonos	CreateRadioStationDatabase called with C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb and Data Source=C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb for zoneplayer = Living Room and DeleteDB = False
                  Nov-24 3:38:49 PM	 	Sonos	UpdateRadioStationsInfo called for Zone = Living Room with CurrentURI x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:49 PM	 	Sonos	Living Room TrackInfo (albumArtURI) =
                  Nov-24 3:38:49 PM	 	Sonos	Living Room TrackInfo (title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:49 PM	 	Sonos	Living Room TrackInfo (MediaInfo/Title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:49 PM	 	Sonos	Living Room TrackInfo (CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:49 PM	 	Sonos	GetcurrentTrackInfo called for zoneplayer - Living Room
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(TransportState) = PLAYING and previous state was = Playing
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room VarName = LastChange
                  Nov-24 3:38:49 PM	 	Sonos	HS updated in TransportChanged for zonePlayer Living Room. HSRef = 601 and updated DeviceValue = True
                  Nov-24 3:38:49 PM	 	Sonos	HS DeviceValue updated in TransportChanged for zonePlayer Living Room. HSRef = 601 and value = Playing
                  Nov-24 3:38:49 PM	 	Sonos	Checking linked zones for SourceZone = Living Room. MyZoneIsSourceForLinkedZone=False and TargetZones =
                  Nov-24 3:38:49 PM	 	Sonos	DeviceTrigger called for Zone - Living Room with Trigger = Sonos Track Change
                  Nov-24 3:38:49 PM	 	Sonos	PlayChangeNotifyCallback called for Zone - Living Room with ChangeType = SongChanged and Changevalue = Playing and SendDeviceTrigger = True
                  Nov-24 3:38:49 PM	 	Sonos	DeviceTrigger called for Zone - Living Room with Trigger = Sonos Player Start Playing
                  Nov-24 3:38:49 PM	 	Sonos	PlayChangeNotifyCallback called for Zone - Living Room with ChangeType = PlayStatusChanged and Changevalue = Playing and SendDeviceTrigger = True
                  Nov-24 3:38:49 PM	 	Sonos	CurrentPlayerState Set for ZoneName = Living Room. Value = Playing
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room is not tracks and radio Radio
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(AlbumArtURL) = /images/Sonos/NoArt.png
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Album) = Raise!
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Radio) = Radio - Title info = Let's Groove
                  Nov-24 3:38:49 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Artist) = Earth, Wind & Fire
                  Nov-24 3:38:49 PM	 	Sonos Error	GetPicture called for Zone - Living Room url= http://https://mediaserver-cont-dc6-2-v4v6.pandora.com/images/public/int/8/2/8/4/074643754828_500W_500H.jpg caused error: The remote name could not be resolved: 'https'
                  Nov-24 3:38:47 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentPlayMode) = NORMAL
                  Nov-24 3:38:47 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(NumberOfTracks) = 1
                  Nov-24 3:38:47 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrackDuration) = 0:05:36
                  Nov-24 3:38:47 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrack) = 1
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (% played) = 8
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (Queue Position) = 1
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Duration) = 0:05:36
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position Seconds) = 28
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position) = 0:00:28
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (albumArtURI) =
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (title) = Let's Groove
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (album) = Raise!
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo PositionInfo (creator) = Earth, Wind & Fire
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo(Source) = Radio
                  Nov-24 3:38:47 PM	 	Sonos	Living Room TrackInfo () = Internet Radio x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:47 PM	 	Sonos	UpdateRadioStationsInfo done for Zone = Living Room
                  Nov-24 3:38:47 PM	 	Sonos	UpdateRadioStationsInfo updated RadioStation = Learned - (Shake, Shake, Shake) Shake Your Booty Radio for Zone = Living Room with QueryResult = 0
                  Nov-24 3:38:47 PM	 	Sonos Error	Type = Learned
                  Nov-24 3:38:47 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
                  Nov-24 3:38:47 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:47 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:47 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Living Room with error - database is locked database is locked
                  Nov-24 3:38:17 PM	 	Sonos	CreateRadioStationDatabase called with C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb and Data Source=C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb for zoneplayer = Living Room and DeleteDB = False
                  Nov-24 3:38:17 PM	 	Sonos	UpdateRadioStationsInfo called for Zone = Living Room with CurrentURI x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo (albumArtURI) =
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo (title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo (MediaInfo/Title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo (CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:17 PM	 	Sonos	GetcurrentTrackInfo called for zoneplayer - Living Room
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(TransportState) = PLAYING and previous state was = Stopped
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room VarName = LastChange
                  Nov-24 3:38:17 PM	 	Sonos	HS updated in TransportChanged for zonePlayer Living Room. HSRef = 601 and updated DeviceValue = False
                  Nov-24 3:38:17 PM	 	Sonos	Checking linked zones for SourceZone = Living Room. MyZoneIsSourceForLinkedZone=False and TargetZones =
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room is not tracks and radio Radio
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(AlbumArtURL) = /images/Sonos/NoArt.png
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Album) = Raise!
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Radio) = Radio - Title info = Let's Groove
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(Artist) = Earth, Wind & Fire
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentPlayMode) = NORMAL
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(NumberOfTracks) = 0
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrackDuration) = 0:00:00
                  Nov-24 3:38:17 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(CurrentTrack) = 0
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (% played) = 0
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (Queue Position) = 1
                  Nov-24 3:38:17 PM	 	Sonos	SetTrackLength set Pair for ZoneName - Living Room Old Max Range = 0 New Max Range = 336
                  Nov-24 3:38:17 PM	 	Sonos	SetTrackLength is setting HS Status Max Position TrackPosition for ZoneName - Living Room and HSRef = 619
                  Nov-24 3:38:17 PM	 	Sonos	SetTrackLength is setting HS Device TrackLength for ZoneName - Living Room with Value = 336 and HSRef = 618
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Duration) = 0:05:36
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position Seconds) = 0
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (Track Position) = 0:00:00
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (albumArtURI) =
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (title) = Let's Groove
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (album) = Raise!
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo PositionInfo (creator) = Earth, Wind & Fire
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo(Source) = Radio
                  Nov-24 3:38:17 PM	 	Sonos	Living Room TrackInfo () = Internet Radio x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:17 PM	 	Sonos	UpdateRadioStationsInfo done for Zone = Living Room
                  Nov-24 3:38:17 PM	 	Sonos	UpdateRadioStationsInfo updated RadioStation = Learned - (Shake, Shake, Shake) Shake Your Booty Radio for Zone = Living Room with QueryResult = 0
                  Nov-24 3:38:17 PM	 	Sonos Error	Type = Learned
                  Nov-24 3:38:17 PM	 	Sonos Error	MetaData = (Shake, Shake, Shake) Shake Your Booty Radioobject.item.audioItem.audioBroadcast.sonos-favoriteSA_RINCON60423_X_#Svc60423-698ef875-Token
                  Nov-24 3:38:17 PM	 	Sonos Error	URI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:38:17 PM	 	Sonos Error	Name = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:38:17 PM	 	Sonos Error	UpdateRadioStationsInfo unable write this record for zoneplayer = Living Room with error - database is locked database is locked
                  Nov-24 3:38:12 PM	 	Z-Wave	Device: Main Bathroom Bathroom Sensor Temperature Set to 76.46 (F)
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = ConfigMode
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = RoomCalibrationState
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = AvailableRoomCalibration
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = LastChangedPlayState
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = Orientation
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = HTBondedZoneCommitState
                  Nov-24 3:37:51 PM	 	Sonos	PlaybarPairingChanged called for Zone = Living Room with HTSatChanMapSet =
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = HTSatChanMapSet
                  Nov-24 3:37:51 PM	 	Sonos	ZonePairingChanged called for Zone = Living Room with ChannelMapSet
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = ChannelMapSet
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = SecureRegState
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = SettingsReplicationState
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = WifiEnabled
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = BehindWifiExtender
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = ChannelFreq
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = HasConfiguredSSID
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = WirelessLeafOnly
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = WirelessMode
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = IsZoneBridge
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = Invisible
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = Configuration
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = Icon
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = ZoneName Value = Living Room
                  Nov-24 3:37:51 PM	 	Sonos	DevicePropertiesStateChange for ZonePlayer Living Room: Var Name = ZoneName
                  Nov-24 3:37:47 PM	 	Sonos	CreateRadioStationDatabase called with C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb and Data Source=C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb for zoneplayer = Living Room and DeleteDB = False
                  Nov-24 3:37:47 PM	 	Sonos	UpdateRadioStationsInfo called for Zone = Living Room with CurrentURI x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:37:46 PM	 	Sonos	Living Room TrackInfo (albumArtURI) =
                  Nov-24 3:37:46 PM	 	Sonos	Living Room TrackInfo (title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:37:46 PM	 	Sonos	Living Room TrackInfo (MediaInfo/Title) = (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:37:46 PM	 	Sonos	Living Room TrackInfo (CurrentURI) = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5
                  Nov-24 3:37:45 PM	 	Sonos	GetcurrentTrackInfo called for zoneplayer - Living Room
                  Nov-24 3:37:45 PM	 	Sonos	TransportChangeCallback for player - Living Room TransportState(TransportState) = STOPPED and previous state was = Stopped
                  Nov-24 3:37:45 PM	 	Sonos	TransportChangeCallback for player - Living Room VarName = LastChange
                  Nov-24 3:37:45 PM	 	Sonos	SetTransportState called for zoneplayer - Living Room with value = Play
                  Nov-24 3:37:45 PM	 	Sonos	PlayURI called for zoneplayer Living Room with strURI = x-sonosapi-radio:ST:3687730719510258524?sid=236&flags=8300&sn=5 and isObjectID = False
                  Nov-24 3:37:45 PM	 	Sonos	SetTransportState called for zoneplayer - Living Room with value = Stop
                  Nov-24 3:37:45 PM	 	Sonos	PlayRadioStation called for Zone Living Room and RadioStation = Learned - (Shake, Shake, Shake) Shake Your Booty Radio
                  Nov-24 3:37:45 PM	 	Sonos	PlayMusic called for Zone - Living Room with Artist= and Album= and Playlist=Learned - (Shake, Shake, Shake) Shake Your Booty Radio and Genre= and Track= and StartWithArtist= and StartWithTrack= and TrackMatch=and Audiobook = and Podcast = and ClearPlayerQueue = False and QueueAction = qaDontPlay
                  Nov-24 3:37:45 PM	 	Sonos	PluginFunction called for instance = RINCON_B8E937B4A74001400 and proc = PlayMusic
                  Nov-24 3:37:45 PM	 	Event	Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/hall_custom.vb("myTest","3")
                  Nov-24 3:37:45 PM	 	Event	Event Trigger "Testing Basic Code Test"
                  Nov-24 3:37:45 PM	 	Event	Event Testing Basic Code Test triggered by the event page 'Run' button.

                  Comment


                    #10
                    Originally posted by sifuhall View Post
                    This was after running as admin.

                    I'll try the upgrade in just a bit.
                    apart from the error, is there anything else NOT working? The log looks fine, not sure why the DB error because it seems to retrieve the info (read) properly. If we can't figure out where the error comes from, could you post the radiostation database file (C:\Program Files (x86)\HomeSeer HS3/html/Sonos/MusicDB/SonosRadioStationsDB.sdb). It could be a race condition that the DB isn't properly closed (from the read) by the time it writes (play the radiostation). The trace seems to indicate a large delay before the error pops up. Does this system have enough memory? CPU (over)loaded? Wonder if this a scripting threading issue, does this script terminate immediately after the call this PI or does it do something else (like wait..)

                    Dirk

                    Comment

                    Working...
                    X