values time & date **solved**

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

values time & date **solved**

Post by assenzuid »

MeteoBridge has the possibility to report only time stamps, see example below

[th11temp-dmin:--]° om [th11temp-dmintime.ij:--]:[th11temp-dmintime.kl:--] -->Result: 7.8° om 22:44

In MeteoHub I can define it as
[last24h_th0_tempmin_c] om [last24h_th0_tempmin_time] -->.7.8 om 20151120224433

Is there a way to use only the time stamp (22:44) for a sensor?

Regards,
Martijn
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 606
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: values time & date

Post by wvdkuil »

assenzuid wrote:MeteoBridge has the possibility to report only time stamps, see example below

[th11temp-dmin:--]° om [th11temp-dmintime.ij:--]:[th11temp-dmintime.kl:--] -->Result: 7.8° om 22:44

In MeteoHub I can define it as
[last24h_th0_tempmin_c] om [last24h_th0_tempmin_time] -->.7.8 om 20151120224433

Is there a way to use only the time stamp (22:44) for a sensor?

Regards,
Martijn
Good morning,
http://www.meteohub.de/files/meteohub-v4.7en.pdf page 72 explains the use of # for a substring of the returned value.

If [last24h_th0_tempmin_time] returns 20151120224433 the following
[last24h_th0_tempmin_time#IJ]:[last24h_th0_tempmin_time#KL] returns 22:44

It is also explained in this discussion: viewtopic.php?f=8&t=10298&p=17601&hilit ... ate#p17602

All this is only necessary when HTML is used. In most cases it is far more easier to use PHP statements to convert the string to a unix time field and use the DATE() formatting.

Wim
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: values time & date

Post by assenzuid »

Wim,

Thanks.
I have read that, but incorrectly interpreted the mean exactly.
Post Reply