First of all, thank you all for your feedback.
Garry, I can not parse Lat/Long/Alt from the Airmar device because I'm 
using the 120WX model (that has no GPS builtin).
I've added an u-blox GPS module to provide location and use gpsd to 
retrieve it.
I will look into Tom's suggestion.

Best regards,
José Gonçalves

A quinta-feira, 22 de abril de 2021 à(s) 03:18:54 UTC+1, 
[email protected] escreveu:

> A VERY quick look at the Airmar driver and docs on Airmar website suggests 
> the weather station communicates via NMEA sentences.  If yes, they probably 
> use the standard sentences for GPS position - can’t remember their names 
> but they are well documented.
>
> Anyway, you might be able modify the driver to parse NMEA sentences and 
> write to the variable Tom K mentioned.
>
> Regards,
>
> Garry Lockyer
> C: +1.250.689.0686 <(250)%20689-0686>
> E: [email protected]
>
>
> On Apr 21, 2021, at 19:07, Tom Keffer <[email protected]> wrote:
>
> 
>
> The latitude and longitude are first read from weewx.conf, but then they 
> are held in an instance of weewx.station.StationInfo. Normally, this object 
> is treated as readonly but, off hand, I don't see why you couldn't change 
> the values.
>
> You could write a custom service that reads the GPS, then changes the 
> values there. Thereafter, the updated values would be used.
>
> -tk
>
> On Wed, Apr 21, 2021 at 5:32 PM José Miguel Gonçalves <[email protected]> 
> wrote:
>
>>
>> I'm using weewx in a custom mobile weather station (based on a Airmar 
>> device) which has a GPS device builtin.
>> I would like to set dynamically the weather station's 
>> Latitude/Longitude/Altitude in the weewx web page from the GPS device 
>> instead of the setting it statically from the configuration file.
>> Can anyone give me some pointers on best way(s) to achieve that?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/4395f0db-a7c5-4f6d-9a09-7a634690c075n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/4395f0db-a7c5-4f6d-9a09-7a634690c075n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEB4dgnFTQXybLSQwn0kGbgJOSuJftX%3DFnRG1EOyuvGCKQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEB4dgnFTQXybLSQwn0kGbgJOSuJftX%3DFnRG1EOyuvGCKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8b991333-35cc-4b65-9e4f-ef19bf051407n%40googlegroups.com.

Reply via email to