I am switching from HS2 to HS3 and understand that the PI has pretty much been completely rewritten.
Is there any scripting examples available for the HS3 version? I am using the HS3 Linux and Windows SONOS PI version (if that matters) on Windows.
While I can do most desired functions with the standard plugin GUI. in HS2 I scripted the capability to enable/disable the wake alarm and set the time and playlist via HSTouch using scripting.
I was using the Plugin("SONOSCONTROLLER") to get the player and then a GetMusicAPI("$zone_id") to get the zone object.
I was then able to set the alarm params using the following (please excuse the perl syntax)
$zone->SetAlarmParms("$set{AlarmID}","$set{StartTimeLocal}","$set{ Duration}","$set{Recurrence}","$set{Enabled}","$set{ROOMUUID }","$set{ProgramURI}","$set{ProgramMetaData}","$set{PlayMode }","$set{Volume}","$set{IncludeLinkedZones}");
If I understand correctly, the same logic behind this really does not exist anymore (musicAPI).
Is there anyway to access the alarm parameters using the new HS3 plugin (using scripting)? Or should I just give up on getting this functionality working in the "new world"?
I appreciate any thoughts on this.
Thanks,
Lou
Is there any scripting examples available for the HS3 version? I am using the HS3 Linux and Windows SONOS PI version (if that matters) on Windows.
While I can do most desired functions with the standard plugin GUI. in HS2 I scripted the capability to enable/disable the wake alarm and set the time and playlist via HSTouch using scripting.
I was using the Plugin("SONOSCONTROLLER") to get the player and then a GetMusicAPI("$zone_id") to get the zone object.
I was then able to set the alarm params using the following (please excuse the perl syntax)
$zone->SetAlarmParms("$set{AlarmID}","$set{StartTimeLocal}","$set{ Duration}","$set{Recurrence}","$set{Enabled}","$set{ROOMUUID }","$set{ProgramURI}","$set{ProgramMetaData}","$set{PlayMode }","$set{Volume}","$set{IncludeLinkedZones}");
If I understand correctly, the same logic behind this really does not exist anymore (musicAPI).
Is there anyway to access the alarm parameters using the new HS3 plugin (using scripting)? Or should I just give up on getting this functionality working in the "new world"?
I appreciate any thoughts on this.
Thanks,
Lou
Comment