Colly wrote:Not sure if there is any link to LM's problem - I regularly find that the playing status doesn't get updated and just shows stopped. Once I restart the plugin everything is good again. I haven't paid too much attention to it but I'd say it goes out of sync on a daily basis.
cd /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin
python ./lib/test_SOCO.py [ZonePlayerIP] [Indigo ServerIP]
Londonmark wrote:Hi Nick,
Still getting this behaviour. If anything it's got worse, because once it loses track of statuses, I cannot control volumes, skip tracks etc. The only option is to force the plugin to reload (so I have a reload plugin button on all Sonos related pages and have been wondering about a schedule to reload it every 30 mins or so). Anything else I can try?
LM
nlagaros wrote:Again I have put out an update. There is a test script you should run alongside the plugin that should spit out an error that may lead us to the problem. I know you've tried it before, but ask that you try it once again.
From a terminal window:
- Code: Select all
cd /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin
python ./lib/test_SOCO.py [ZonePlayerIP] [Indigo ServerIP]
Once you start this in a terminal window, restart the plugin and do what you normally do. Since the happens so frequently, we should see something here. If not and only the plugin stops updating, I am going to add more logic to the test script.Londonmark wrote:Hi Nick,
Still getting this behaviour. If anything it's got worse, because once it loses track of statuses, I cannot control volumes, skip tracks etc. The only option is to force the plugin to reload (so I have a reload plugin button on all Sonos related pages and have been wondering about a schedule to reload it every 30 mins or so). Anything else I can try?
LM
nlagaros wrote:LM - I am going to publish another update today or tomorrow that may really (for real this time) help with this issue. Stand by and wait for v1.0.8!nlagaros wrote:Again I have put out an update. There is a test script you should run alongside the plugin that should spit out an error that may lead us to the problem. I know you've tried it before, but ask that you try it once again.
From a terminal window:
- Code: Select all
cd /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin
python ./lib/test_SOCO.py [ZonePlayerIP] [Indigo ServerIP]
Once you start this in a terminal window, restart the plugin and do what you normally do. Since the happens so frequently, we should see something here. If not and only the plugin stops updating, I am going to add more logic to the test script.Londonmark wrote:Hi Nick,
Still getting this behaviour. If anything it's got worse, because once it loses track of statuses, I cannot control volumes, skip tracks etc. The only option is to force the plugin to reload (so I have a reload plugin button on all Sonos related pages and have been wondering about a schedule to reload it every 30 mins or so). Anything else I can try?
LM
mrothroc wrote:I've been plagued by the status issue as well so I just tested 1.0.8. It fails immediately with this error:
Nov 22, 2017, 3:35:28 PM
Sonos Adding ZonePlayer: 10.110.5.21, RINCON_949F3E21E9EC01400, LivingRoomSonos
Sonos Error Error in plugin execution ServerReplacedElem:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 1175, in deviceUpdated
File "plugin.py", line 55, in deviceStartComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 300, in deviceStartComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 470, in initZones
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 525, in socoSubscribe
File "./lib/soco/services.py", line 499, in subscribe
File "./lib/soco/events.py", line 488, in subscribe
ValueError: need more than 0 values to unpack
Sonos Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 47, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 365, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 481, in socoSubTest
KeyError: (1147512752,)
Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
LivingRoom
'AVTransport'
{u'alarm_running': '0',
u'av_transport_uri': 'x-rincon-queue:RINCON_B8E937E9C7E001400#0',
u'av_transport_uri_meta_data': '',
u'current_crossfade_mode': '1',
u'current_media_duration': 'NOT_IMPLEMENTED',
u'current_play_mode': 'SHUFFLE_NOREPEAT',
u'current_record_quality_mode': 'NOT_IMPLEMENTED',
u'current_section': '0',
u'current_track': '8',
u'current_track_duration': '0:03:17',
u'current_track_meta_data': <DidlMusicTrack 'M?nilmontant' at 0x10d6abe10>,
u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a0SvDOIxI7siZO2amGr471O?sid=9&flags=8224&sn=1',
u'current_transport_actions': 'Set, Stop, Pause, Play, X_DLNA_SeekTime, Next, Previous, X_DLNA_SeekTrackNr',
u'current_valid_play_modes': 'SHUFFLE,REPEAT,REPEATONE,CROSSFADE',
u'direct_control_account_id': '',
u'direct_control_client_id': '',
u'direct_control_is_suspended': '0',
u'enqueued_transport_uri': 'x-rincon-cpcontainer:10062a6cspotify%3auser%3alondonmark%3aplaylist%3a3wE2q0NVkPEm7JvxBbZOpr',
u'enqueued_transport_uri_meta_data': <DidlPlaylistContainer 'Discover Archive' at 0x10d6ab050>,
u'muse_sessions': '',
u'next_av_transport_uri': '',
u'next_av_transport_uri_meta_data': '',
u'next_track_meta_data': <DidlMusicTrack 'Hammond Song' at 0x10d6abb50>,
u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a3cPtZw0oqMEkKlGSF0SLkc?sid=9&flags=8224&sn=1',
u'number_of_tracks': '2500',
u'playback_storage_medium': 'NETWORK',
u'possible_playback_storage_media': 'NONE, NETWORK',
u'possible_record_quality_modes': 'NOT_IMPLEMENTED',
u'possible_record_storage_media': 'NOT_IMPLEMENTED',
u'record_medium_write_status': 'NOT_IMPLEMENTED',
u'record_storage_medium': 'NOT_IMPLEMENTED',
u'restart_pending': '0',
u'sleep_timer_generation': '0',
u'snooze_running': '0',
u'transport_play_speed': 'NOT_IMPLEMENTED',
u'transport_state': 'PLAYING',
u'transport_status': 'OK'}
'RenderingControl'
{u'bass': '0',
u'headphone_connected': '0',
u'loudness': {'Master': '1'},
u'mute': {'LF': '0', 'Master': '1', 'RF': '0'},
u'output_fixed': '0',
u'preset_name_list': 'FactoryDefaults',
u'sonar_calibration_available': '0',
u'sonar_enabled': '1',
u'speaker_size': '5',
u'sub_crossover': '0',
u'sub_enabled': '1',
u'sub_gain': '0',
u'sub_polarity': '0',
u'treble': '0',
u'volume': {'LF': '100', 'Master': '9', 'RF': '100'}}
'AVTransport'
{u'current_crossfade_mode': '1',
u'current_play_mode': 'SHUFFLE_NOREPEAT',
u'current_section': '0',
u'current_track': '9',
u'current_track_duration': '0:05:45',
u'current_track_meta_data': <DidlMusicTrack 'Hammond Song' at 0x10d6bba50>,
u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a3cPtZw0oqMEkKlGSF0SLkc?sid=9&flags=8224&sn=1',
u'enqueued_transport_uri': 'x-rincon-cpcontainer:10062a6cspotify%3auser%3alondonmark%3aplaylist%3a3wE2q0NVkPEm7JvxBbZOpr',
u'enqueued_transport_uri_meta_data': <DidlPlaylistContainer 'Discover Archive' at 0x10d6bbf90>,
u'next_track_meta_data': <DidlMusicTrack 'Sascha' at 0x10d6bbd50>,
u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a0C3F7IL6s87CQxVTQsu8xf?sid=9&flags=8224&sn=1',
u'number_of_tracks': '2500',
u'transport_state': 'PLAYING'}
'AVTransport'
{u'current_crossfade_mode': '1',
u'current_play_mode': 'SHUFFLE_NOREPEAT',
u'current_section': '0',
u'current_track': '10',
u'current_track_duration': '0:03:08',
u'current_track_meta_data': <DidlMusicTrack 'Sascha' at 0x10d689f50>,
u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a0C3F7IL6s87CQxVTQsu8xf?sid=9&flags=8224&sn=1',
u'enqueued_transport_uri': 'x-rincon-cpcontainer:10062a6cspotify%3auser%3alondonmark%3aplaylist%3a3wE2q0NVkPEm7JvxBbZOpr',
u'enqueued_transport_uri_meta_data': <DidlPlaylistContainer 'Discover Archive' at 0x10d6bbcd0>,
u'next_track_meta_data': <DidlMusicTrack 'Oblivion' at 0x10d6bbad0>,
u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a4fFtuEMOTN1wxF701HPjcq?sid=9&flags=8224&sn=1',
u'number_of_tracks': '2500',
u'transport_state': 'PLAYING'}
'AVTransport'
{u'current_crossfade_mode': '1',
u'current_play_mode': 'SHUFFLE_NOREPEAT',
u'current_section': '0',
u'current_track': '11',
u'current_track_duration': '0:03:36',
u'current_track_meta_data': <DidlMusicTrack 'Oblivion' at 0x10d6ab550>,
u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a4fFtuEMOTN1wxF701HPjcq?sid=9&flags=8224&sn=1',
u'enqueued_transport_uri': 'x-rincon-cpcontainer:10062a6cspotify%3auser%3alondonmark%3aplaylist%3a3wE2q0NVkPEm7JvxBbZOpr',
u'enqueued_transport_uri_meta_data': <DidlPlaylistContainer 'Discover Archive' at 0x10d6abc90>,
u'next_track_meta_data': <DidlMusicTrack 'Massenet: Tha?s: M?ditation' at 0x10d6ab150>,
u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a7t51ADHtrw9RRRj1K1xhzS?sid=9&flags=8224&sn=1',
u'number_of_tracks': '2500',
u'transport_state': 'TRANSITIONING'}
'AVTransport'
{u'current_crossfade_mode': '1',
u'current_play_mode': 'SHUFFLE_NOREPEAT',
u'current_section': '0',
u'current_track': '11',
u'current_track_duration': '0:03:36',
u'current_track_meta_data': <DidlMusicTrack 'Oblivion' at 0x10d6cd790>,
u'current_track_uri': 'x-sonos-spotify:spotify%3atrack%3a4fFtuEMOTN1wxF701HPjcq?sid=9&flags=8224&sn=1',
u'enqueued_transport_uri': 'x-rincon-cpcontainer:10062a6cspotify%3auser%3alondonmark%3aplaylist%3a3wE2q0NVkPEm7JvxBbZOpr',
u'enqueued_transport_uri_meta_data': <DidlPlaylistContainer 'Discover Archive' at 0x10d6cdd50>,
u'next_track_meta_data': <DidlMusicTrack 'Massenet: Tha?s: M?ditation' at 0x10d6cdb10>,
u'next_track_uri': 'x-sonos-spotify:spotify%3atrack%3a7t51ADHtrw9RRRj1K1xhzS?sid=9&flags=8224&sn=1',
u'number_of_tracks': '2500',
u'transport_state': 'PLAYING'}
Londonmark wrote:The Sonos app.
Users browsing this forum: No registered users and 2 guests