Page 1 of 1

values time & date **solved**

Posted: Fri Nov 20, 2015 11:46 pm
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

Re: values time & date

Posted: Sat Nov 21, 2015 9:47 am
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

Re: values time & date

Posted: Sun Nov 22, 2015 12:08 am
by assenzuid
Wim,

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