timestamp / Forecast in HTML fragen

Discussion about generation of graphs and tables
Post Reply
marco
Posts: 29
Joined: Thu Apr 12, 2012 5:47 pm
Contact:

timestamp / Forecast in HTML fragen

Post by marco » Sun Jan 11, 2015 7:32 am

Hallo
wie kann ich "timestamps" für eigene HTML templates individuell anpassen.

- ich möchte z.B. nur die aktuelle jahreszahl "2015" oder den aktuellen Monat "text" also: Jan oder Januar anzeigen lassen. ich habe das wiki durchforstet, aber ich krieg das nicht gebacken.
- GIbts die texte für [actual_min5_thb0_forecasttext] auch übersetzt auf DE?
- Gibt es auch die langversion vom Forecasttext via meteoplug? wie die von meteohub aus dem "all-sensors.xml"? (resp. denselben text wie auf der davis beim druck auf die froecast taste) oder wäre der weg dies via ajax aus "all-sensors.xml" raus zu lesen, was zwar geht aber ein bisschen umständlich ist/wäre. und dies mit Jquery mobile ein refresh problem darstellt, leider! daher möchte ich alles über Meteoplug machen.

Vielen Dank für eure Unterstützung.

Ich werde nach fertigstellung des templates dies hier zu verfügung stellen.. als ergänzug zu den mobile templates.. fall erwünscht. hier mal ein Printscreen..! handy/hochformat.
Marco
web-app.png
web-app.png (55.18 KiB) Viewed 13906 times
Last edited by marco on Thu Jan 29, 2015 4:51 am, edited 3 times in total.

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

Re: timstamp / Forecast in HTML fragen

Post by admin » Mon Jan 12, 2015 7:43 pm

Text Variables

Fields used for definition of text variable are mainly the same as with numerical variables. Fields "time stamp", "resolution", "sensor id", "selector" are exactly the same. "selector" just needs to be "ts" or something ending with "time" to select a text variable. Fields "precision", "factor" and "offset" are not defined with text variables, but new fields "index" and "length" are added instead.

index: Index defines a position in the text where to start with reading. Default is 0 which is equivalent to start of text.
length: This defines how many character to take from the text. Default is to take the complete string.

An example for a text variable is [actual_day1_th0_tempmaxtime_11_5] which cuts off the "hh:mm" portion of the time stamp of highest temperature reading of recent day. Time stamps do have format "YYYY-MM-DD hh:mm:ss" when reading them from Meteoplug's database.

marco
Posts: 29
Joined: Thu Apr 12, 2012 5:47 pm
Contact:

Re: timestamp / Forecast in HTML fragen

Post by marco » Mon Jan 12, 2015 9:32 pm

OMG :geek:
hi admin
Thanks for the quick and very detailed response. now everything is clear to me...!
many thanks..
marco

marco
Posts: 29
Joined: Thu Apr 12, 2012 5:47 pm
Contact:

Re: timstamp / Forecast in HTML fragen

Post by marco » Wed Jan 14, 2015 6:28 am

Hi Admin
You answered, my first question, thanks agin for that. Can you give me a feedback concerning the other questions above??:
here they are:
- Gibts die texte für [actual_min5_thb0_forecasttext] auch übersetzt auf DE?
- Gibt es auch die langversion vom Forecasttext via meteoplug? wie die von meteohub aus dem "all-sensors.xml"? (resp. denselben text wie auf der davis beim druck auf die froecast taste)
many thanks in advance..
marco

marco
Posts: 29
Joined: Thu Apr 12, 2012 5:47 pm
Contact:

Re: timestamp / Forecast in HTML fragen

Post by marco » Thu Jan 15, 2015 3:02 pm

HI
I found the way after reading the wiki 400times! :geek:
Now answer needed
Marco

waleed222
Posts: 1
Joined: Thu Mar 05, 2015 12:49 pm

Re: timestamp / Forecast in HTML fragen

Post by waleed222 » Thu Mar 05, 2015 12:54 pm

- Gibt es auch die langversion vom Forecasttext via meteoplug? wie die von meteohub aus dem "all-sensors.xml"? (resp. denselben text wie auf der davis beim druck auf die froecast taste)
Our Actual Exams and testking Testking java certifications pass guarantee. You can get access to teas practice test and rasmussen with multiple prep resources ofMiami International University of Art & Design good luck.


Post Reply