PNG-Graphic and Moon
Posted: Mon Jun 11, 2012 2:27 pm
Hi together
Because iOS doesn't support Java and Flash, I've created an PNG-Picture to display my actual weather-data on my iPhone.
As baseline I used the example in meteoplug-wiki, chapter "Gallery", section "Picture Templates".
See: http://wiki.meteoplug.com/Gallery#Picture_Templates
Normally it works properly, but when displaying the visible percentage of the moon, 0.0% ist returned always.
Here my actual code:
When displaying "lunarphasepercentage" in an other way, i.e. in a table (gtype=table), stating:
sid6=misc sunit6=_% sname6=Moon<br>visible ssel6=lunarphasepercentage
it works fine.
Any idea of the problem?
Thanks for your help.
Because iOS doesn't support Java and Flash, I've created an PNG-Picture to display my actual weather-data on my iPhone.
As baseline I used the example in meteoplug-wiki, chapter "Gallery", section "Picture Templates".
See: http://wiki.meteoplug.com/Gallery#Picture_Templates
Normally it works properly, but when displaying the visible percentage of the moon, 0.0% ist returned always.
Here my actual code:
Code: Select all
# Version: 10-06-2012, 16:50
picture=png
debug=0
#
template=inline
-size 318x354 gradient:white-lightgreen
-bordercolor black -border 1
-fill black -pointsize 12
#
-draw "text 85 15 'Wetterdaten von Xxxxxxx'"
-draw "text 5 50 'Datum & Zeit:'"
-draw "text 115 50 '[actual_min5_misc_uploadlocaltime_0_16#3600] '"
#
-draw "text 5 70 'Mond ? / ? :'"
-draw "text 115 70 '[actual_day1_misc_moonriselocaltime] /'"
-draw "text 155 70 '[actual_day1_misc_moonsetlocaltime]'"
#
-draw "text 5 90 'Mond % / Phase:'"
-draw "text 115 90 '[actual_day1_misc_lunarphasepercentage] % /'"
-draw "text 160 90 '[actual_day1_misc_lunarphasetext]'"
#
-fill blue -pointsize 11
-draw "text 60 352 'powered by MeteoPlug, © : xxx, 2012'"
# Ende
sid6=misc sunit6=_% sname6=Moon<br>visible ssel6=lunarphasepercentage
it works fine.
Any idea of the problem?
Thanks for your help.