Community Support

Notifications
Clear all

[This post is marked as unsolved] Last_seen time

8 Posts
2 Users
2 Reactions
3,975 Views
daguilera
(@daguilera)
Posts: 39
Eminent Member
Topic starter
 

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

 
Posted : 04/05/2019 4:57 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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...

 
Posted : 09/05/2019 11:53 am
daguilera
(@daguilera)
Posts: 39
Eminent Member
Topic starter
 

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

 
Posted : 09/05/2019 4:20 pm
daguilera
(@daguilera)
Posts: 39
Eminent Member
Topic starter
 

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

 
Posted : 09/05/2019 4:22 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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...

 
Posted : 09/05/2019 4:29 pm
daguilera reacted
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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...

 
Posted : 10/05/2019 12:27 pm
daguilera
(@daguilera)
Posts: 39
Eminent Member
Topic starter
 

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

 
Posted : 10/05/2019 2:44 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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...

 
Posted : 10/05/2019 2:45 pm