wsw70;631270 Wrote: 
> THANKS! This is exactly what I was looking for. Would you know if any of
> the .lua files are somewhere documented ?
Not sure there's documentation available anywhere but in the source
code itself, but it's pretty simple to explore and (at least try to)
understand.

Take for example the ScreenSavers.lua file:

Code:
--------------------
    settings = 
{whenOff="Clock:openAnalogClock",whenPlaying="NowPlaying:openScreensaver",timeout=10000,whenStopped="false:false",}
--------------------


It's the settings file for the ScreenSavers applet which is installed
under /usr/share/jive/applets/ScreenSavers:

Code:
--------------------
    
  # ls /usr/share/jive/applets/ScreenSavers/
  ScreenSaversApplet.lua  ScreenSaversMeta.lua    strings.txt
  
--------------------


You'll find defaults settings for this applet defined in the Meta
file:

Code:
--------------------
    function defaultSettings(self)
        return {
                whenStopped = "Clock:openDetailedClock",
                whenPlaying = "NowPlaying:openScreensaver",
                whenOff = "false:false",
                timeout = 30000,
        }
  end
--------------------


Here you find the three screensaver states defined, and the timeout
value in milliseconds to wait after a user action before triggering the
screensaver.

Now, taking the states, you'll have "false:false" meaning no
screensaver, and other values pointing to other applets' methods.
These other applets also live under /usr/share/jive/applets:

Code:
--------------------
    
  # ls
  AboutJive             DebugTouch            LogSettings           
SelectPlayer          SetupNetworking       SlimBrowser           
TestAudioRouting
  AlarmSnooze           Demo                  MacroPlay             SelectSkin  
          SetupSSH              SlimDiscovery         TestDisplay
  BlankScreen           Diagnostics           NowPlaying            
SetupAppletInstaller  SetupSoundEffects     SlimMenus             TestKeypad
  ChooseMusicSource     Experiments           Playback              
SetupDateTime         SetupSqueezebox       Spotify               TestTones
  Clock                 HttpAuth              QVGAbaseSkin          
SetupFactoryReset     SetupTZ               SqueezeNetworkPIN     UdapControl
  CrashLog              ImageViewer           QVGAlandscapeSkin     
SetupFirmwareUpgrade  SetupWallpaper        Squeezebox
  CustomizeHomeMenu     InfoBrowser           ScreenSavers          
SetupLanguage         SetupWelcome          SqueezeboxBaby
  DebugSkin             LineIn                Screenshot            
SetupNetTest          Shortcuts             TestAmbient
  
--------------------


Have fun! ;)


-- 
sebp

'Last.fm' (http://www.last.fm/user/sebp)
------------------------------------------------------------------------
sebp's Profile: http://forums.slimdevices.com/member.php?userid=11768
View this thread: http://forums.slimdevices.com/showthread.php?t=87499

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

Reply via email to