Attached is my modified code to get a reasonable approximation of SuperDateTime using CustomClock.
Included is my: Modified SuperDateTime plugin (I had to un-par it) Changes include: - added a JSON SDTstring method. This accepts a SDT string and returns parsed values (%h -> 78% for humidity) - added a JSON SDTicon method. This only returns current conditions icon value (26 -> 26.png, the cloudy icon) Modified CustomClockHelper plugin Changes include: - added weathertext and weatherimage to the dropdown so it would save. Yes, I should have been consistent. I wasn't, sorry! Modified CustomClock.lua plugin - modified parsing so it works for the 2 new weather items - added some code to deal with the random URL extension. It uses the URL stored in prefs, and adds a # + .png extension to get the file. Not 100% it will update as the day goes on, however. - added a method to send prefs stored string to SDT and get back a parsed SDT string. Works reasonably well. PLEASE feel free to make any changes necessary. Between fighting LUA, and hunting for documentation, I did my best. Sample CustomClockHelper.prefs file that works in this case -Dan PS: The PDF is a renamed ZIP, rename it back. It includes my preferred icon set (120x120 pix, high-contrast). +-------------------------------------------------------------------+ |Filename: SDT_CustomClock.pdf | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=9762| +-------------------------------------------------------------------+ -- plympton ------------------------------------------------------------------------ plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955 View this thread: http://forums.slimdevices.com/showthread.php?t=77864 _______________________________________________ jive mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/jive
