Peter,

Thanks for making the update in the source.

I'm still playing with this, trying to decipher how to import settings.

I can get it to save the settings into SettingsManager.prefs in this
format:

Code:
--------------------
    SM__BedroomBackup: ('server::digitalVolumeControl' => 
1,'server::playingDisplayModes'
  => ['0','1','2','3','4','5','6','7','8','9','10'],'server::lineIn' => 
0,'server::menuItem'
  => 
['NOW_PLAYING','FAVORITES','PLUGIN_SPOTTY_NAME','PLUGIN_RADIOTIME_MODULE_NAME','ALARM','BROWSE_MUSIC','RADIO','GLOBAL_SEARCH','PLUGINS','SETTINGS'],'server::disabled_myMusicArtistsJazzComposers'
  => 1,'server::pitch' => 100,'server::disabled_myMusicAlbumsAudiobooks' => 
1,'server::idleBrightness'
  => 6,'ser .   
  <etc>
--------------------


I figured out this can be pasted back into the "Paste saved settings
here:" field by coding as a JSON encoded string (?) eg.

Code:
--------------------
    {"server::digitalVolumeControl":1}
--------------------


Is that the correct format?  (it works for me)

I guess I'm missing the piece that would convert/export the
SettingsManger.prefs file into a JSON encoded file that could be
cut'n'pasted.  I've tried the Export Settings button - but it never
produces any results.  I can see the URL gets formed:
http://<IPblah>/plugins/Extensions/settings/plugins/SettingsManager/export-bed2.txt?SM_source=SM__bed2&SM_action=Export+settings
But the only output I get on the screen is 
Code:
--------------------
    {}
--------------------


I've had some "bulk" success by taking the text from
SettingsManager.prefs and running it through an online json_encode
routine after adding "array" to the front (though it hasn't been able to
do the full set of prefs.  eg.

Code:
--------------------
    array('server::digitalVolumeControl' => 1,'server::playingDisplayModes'
  => ['0','1','2','3','4','5','6','7','8','9','10'],'server::lineIn' => 
0,'server::menuItem'
  => 
['NOW_PLAYING','FAVORITES','PLUGIN_SPOTTY_NAME','PLUGIN_RADIOTIME_MODULE_NAME','ALARM','BROWSE_MUSIC','RADIO','GLOBAL_SEARCH','PLUGINS','SETTINGS'],'server::disabled_myMusicArtistsJazzComposers'
  => 1,'server::pitch' => 100,'server::disabled_myMusicAlbumsAudiobooks' => 
1,'server::idleBrightness'
  => 6,'ser .   
  <etc>
--------------------


Any further pointers?


------------------------------------------------------------------------
kidhazy's Profile: http://forums.slimdevices.com/member.php?userid=42259
View this thread: http://forums.slimdevices.com/showthread.php?t=109113

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to