PNG-Graphic and Moon

Discussion about generation of graphs and tables
Post Reply
Ce-De-Ha
Posts: 2
Joined: Mon Jun 11, 2012 2:07 pm

PNG-Graphic and Moon

Post by Ce-De-Ha » 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:

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 
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.

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: PNG-Graphic and Moon

Post by admin » Sat Jun 16, 2012 5:20 pm

Is just this value impacted or the other variables you use as well?
BTW, did you give the new javascript charts a try? They should work fine with iOS.

Ce-De-Ha
Posts: 2
Joined: Mon Jun 11, 2012 2:07 pm

Re: PNG-Graphic and Moon

Post by Ce-De-Ha » Tue Jun 19, 2012 12:07 pm

It's just this variable where this
problem occus.
I will try the new Java-Scripts in the next
time with my iPhone (iOS).
Thanks for the tip.

Post Reply