plympton;540651 Wrote: > > 1. When using %I, can you set it to convert using tonumber() so that it > truncates the leading 0? (I didn't find a strftime that did that) > I'll add support for %i1 and %h1 and %m1 in next version that does this.
plympton;540651 Wrote: > > I suppose it's too hard to get access to the Server's date & time > format strings? > Should be possible, the only problem is if the perl function uses different % keywords than the lua os.date function. In one of the next versions, the timetext setting in Custom Clock Helper will be a combobox so you can enter your own custom formatting string but you can also select among a number of predefined. I realized that I need the combobox support for the color settings in the new spectrummeter item that also comes in the next version. plympton;540651 Wrote: > > 2. Is there an AM/PM flag in strftime? > I'm using lua's os.date, %p indicates am/pm http://www.lua.org/pil/22.1.html plympton;540651 Wrote: > > 3. Can you add sizing to the Clockimage (closest thing I could find to > an image tag)? I found that zoom is broken, so I was using rotozoom, > so I had to calculate a zoom factor with realWidth/requestedWidth > I need to look into this a bit more to see what's the best way, if we are talking about the weather icons I suspect we might want to see if it's possible to use the rescaling functionality in the server. I'll have to dig a bit more. plympton;540651 Wrote: > > 4. Map each of the SDT weather items to a new WeatherText dropdown, I > suppose, right? > I suspect we probably want to use something similar to the "timetext" item type where you can specify exactly which keywords you like to combine. In that case, it would be great if it was possible to get a list of available keywords from the Super Date Time plugin. This way new keywords could be added without modifying the Custom Clock/Custom Clock Helper code. To make this possible I think the keyword needs to match the attribute names returned in the JSON requests, so Custom Clock would basically: 1. When the user has configured a sdtitem, it would issue a 'SuperDateTime', 'all' request 2. Look in it's configuration formatting string and replace all keywords from the JSON response To make this work, we probably need to use keywords that looks something like: Current: %temperatureC%°C %1.forecastTOD%: %1.forecastTempC%°C Which in the applet would be replaced to: Current: 11°C TONIGHT: 7°C Note! I'm not sure I've understood the structures yet so the above might be completely incorrect. We also need to check what's possible in string.gsub on the lua side regarding replacements, as I've understod it doesn't support all type of regular expressions so we need to make sure the keywords are entered in a way that we can do the replacement fairly easy. If you like to help, you can look at this keyword replacement logic and see if you can come up with something that works. plympton;540651 Wrote: > > I've attached my code - mostly it's in the request/response function. > I've been talking to Greg about some other changes. I'll also attach a > copy of the sample wetdata structure he sent me. > Doesn't SuperDateTime also provide sport events/games scores ? Are these also provided in the JSON response ? Another JSON command maybe ? I wonder how often we need to update these SDT items ? Do we need to do it once a minute ? Once an hour ? -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________ jive mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/jive
