erland;541565 Wrote:
> Dan, when you handled the answer from SDTstring (macroString) in your
> version of the applet you had this code:
> >
Code:
--------------------
> >
> local text = os.date(chunk.data.SDTstring,time)
> self.items[no]:setWidgetValue("itemno",text)
> log:debug("Result from SDTString: "..text)
>
--------------------
> >
> Is there a reason why you call os.date here ?
>
> Won't this collide with the %H (wu_humidity) and %M (wu_dewpointC)
> replaced by the plugin ?
>
> It feels like we should have a separate syntax if we like to be able
> to mix os.date keywords with SDT keywords in the same formatting
> string. Maybe we could use %%M and let the applet replace %% with %
> before it pass it to os.date ?
True. My thinking was that if there's a date-code that wasn't
supported by SDT, that you take the SDT result and pass it to os.date
for one more shot. Bad idea? I figured it wouldn't HURT anything, but
yeah, looks weird.
An easier thing to do would be to have a box with weather items, and
another box with date items next to it.
[weather info box] [date info box]
-Dan
--
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