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
values time & date **solved**
Moderator: Mattk
Re: values time & date
Good morning,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
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
- assenzuid
- Expert Boarder
- Posts: 94
- Joined: Sat May 03, 2014 10:15 pm
- Location: The Netherlands
- Contact:
Re: values time & date
Wim,
Thanks.
I have read that, but incorrectly interpreted the mean exactly.
Thanks.
I have read that, but incorrectly interpreted the mean exactly.