Hi,
On Sunday 13 August 2006 13:52, Michael Reinelt wrote:
> A further improvement comes to my mind: give different areas of the bar
> different colors? (say: 0-50% green, 51-80% yellow, 81-100% red)
Hmm ... I'll think about that ...
> Another great idea, which I already improved: I removed all the BOLD
> stuff (sorry, Till :-) an re-added this as a text-widget specific
Yes, i am currently working on a new plugin and i am seeing patches
coming in at quite a high rate ... but fortunately cvs/patch are able
to manage this ...
> btw, there's a 'truetype' widget for graphic displays on my wishlist....
Cool ...
I am currently writing a kvv plugin. KVV is the "Karlsruher Verkehrsverbund"
and you can get access via web interface to the train/bus timings usually
displayed at the stations (things like "Linie 3, Karlsruhe Hbf. in 5
Minuten"). I am extracting this information and use it to reconstruct
this again for use on my LED display. You can then specify the interesting
station in lcd4linux.conf and have the next 4 trains displayed in real
time just like the real display at the station does.
Now my question: My plugin currently returns single strings for
each line (like kvv(0) will return the train that will arrive next,
kvv(1) the train that will arive second etc ect). Can i somehow include
color information in this? I'd like to specify an additional time
(the time it takes me to get to the station) and then have the trains
displayed in red (if i can't reach them anymore) in yellow (if i have
to hurry) and green (if i'll reach them easily). How would this be done?
Till
--
Dr.Ing. Till Harbaum <ti...@ha...>
http://www.harbaum.org/till
|