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.
