Community Support
Hi Pierre and Weather Station plugin community,
We have on our website several stations using the stickertag protocol. I'd want (like another stations that uses realtime.txt, WeatherLink API, etc.) if these stations could obtain easily a "Last Seen" (latest update time, not the time that Weather Station checks the time) shortcode. I tested changing manually the shortcode and it works. It's all, and I tkink that it is an easy fix.
Best regards and thanks in advance.
David
David Aguilera-Riquelme (@davidagriq).
https://redmeteo.cl - an Open Chilean hobbyist weather network
Hello David.
Which shortcode did you change?
If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...
Hi Pierre,
I used the Last refresh shortcode (Located in Text Shortcode > Station > Last Refresh), and replaced the "last_refresh" string by "last_seen".
Saludos!
David Aguilera-Riquelme (@davidagriq).
https://redmeteo.cl - an Open Chilean hobbyist weather network
An example:
[live-weather-station-textual device_id='zx:00:00:00:00:0d' module_id='zx:00:00:00:00:0d' measure_type='last_refresh' element='measure_value' format='local-date' fx='none' color='#000000' speed='2000']
Changed to
[live-weather-station-textual device_id='zx:00:00:00:00:0d' module_id='zx:00:00:00:00:0d' measure_type='last_seen' element='measure_value' format='local-date' fx='none' color='#000000' speed='2000']
David Aguilera-Riquelme (@davidagriq).
https://redmeteo.cl - an Open Chilean hobbyist weather network
Ah ok. I see: what you want to say is it would be better to have a "last seen" value for the base station (it exists for all modules except for base station).
Initially, I did not do it because I found it redundant with the other modules (all have the same timestamp). I'll see if I can add it in 3.8.6 - released tomorrow if all go well 😉
If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...
Hello David.
Version 3.8.6 (released this night) implements your suggestion. I have added, too, a system to display last seen time in maps (when available for the station). Could you confirm it's what you have in mind?
Thanks.
If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...
Oh yeah Pierre. It was just the thing that I was looking for.
I'm going to look forward the v3.8.6 update.
Best regards
David Aguilera-Riquelme (@davidagriq).
https://redmeteo.cl - an Open Chilean hobbyist weather network
Cool!
If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...