Wow - thanks, Tom!

That actually sound pretty straight forward and almost too easy ;)
Once I have the GPS receiver hooked up to my LTE router; I will try it out!

😇

On Wed, Aug 9, 2023 at 5:54 PM Tom Keffer <tkef...@gmail.com> wrote:

> One way of doing this...
>
> Station altitude, latitude, and longitude are always obtained from an
> instance of StationInfo
> <https://github.com/weewx/weewx/blob/26bbcc56b5939d3e7e102ba21e9e656074714f67/bin/weewx/station.py#L14>,
> held in the engine. From this, various views are constructed, including
> what's used as a tag, such as $station.altitude.
>
> So, with every new archive record you could replace that instance with a
> fresh instance, created in a WeeWX service, using updated values.
> The instance is available as engine.stn_info in the service.
>
> How does your service get its information? One way would be to add new
> observation types altitude, latitude, and longitude to the archive record.
> Then your new service can get the values from there.
>
> If you also want values in the database, add altitude,  longitude, and
> latitude to the schema and they will automatically be populated if the
> archive record holds matching types.
>
> That's off the top of my head. It's a nice approach because it does not
> involve modifying any base weewx code. But, I'm sure I've missed
> something...
>
> -tk
>
>
> On Wed, Aug 9, 2023 at 8:00 AM Stefan Gliessmann <
> stefan.gliessm...@gmail.com> wrote:
>
>> After running into major issues with my LTE router in my RV, weewx and
>> Belchertown w/ MQTT are up and running :)
>> Check it out here: https://t.ly/4icFe
>>
>> My RV router is actually a serious professional LTE router which can
>> provide GPS data, too (once I have a GPs receiver installed).
>> Now, I still have to figure out how to push the GPS data into weewx db
>> and have weewx use it for the weather forecasts using aeris within the
>> Belchertown skin.
>> Since I have MQTT already working and my router can send the GPS data as
>> MQTT packages, maybe that is a way to do so.
>> In weewx.conf the long, latitude and altitude are specified. Is there a
>> way to not update these in the weewx.conf, but have them read from the db
>> and considered accordingly?
>>
>> Thanks for brainstorming this with me ;)
>>
>> TIA,
>> Stefan
>>
>> On Monday, July 31, 2023 at 4:25:05 AM UTC+2 Cameron D wrote:
>>
>>> This would be my suggestion as well.  Certainly use a dedicated DB for
>>> the task, then populate it according to the effort you want to put into it.
>>> Options would be:
>>>
>>>    - custom GPS unit along the lines Vince suggested
>>>    - use a normal in-car GPS unit that records your tracks and
>>>    download/export data each day.  I combine my car and walking gps tracks 
>>> for
>>>    geotagging photos.
>>>    - manually enter data once a day
>>>
>>> When I do long trips, I often take a simple handheld temp/RH logger that
>>> I download occasionally - every few days.
>>> I also have a second table with one row per day, where I manually enter
>>> comments about where the device was located and anything unusual that might
>>> have influenced the results.  Probably less necessary in an RV with fixed
>>> locations, but my logger might end up left inside the tent, outside the
>>> tent, or left inside the car on different days.  This table could also
>>> double as a more general diary.
>>>
>>> On Sunday, 30 July 2023 at 6:39:28 am UTC+10 vince wrote:
>>>
>>>> On Saturday, July 29, 2023 at 1:11:25 PM UTC-7 Stefan Gliessmann wrote:
>>>>
>>>> That would work. But I would miss out on the location and elevation
>>>> data … I would like to include location in a database …
>>>>
>>>>
>>>> Sure. Get a GPS module for your pi and write a little script to seed a
>>>> custom field in the db.   Shouldn't be a big deal.  Just write to a
>>>> secondary sqlite db.
>>>>
>>>>
>>>>
>>> --
>> 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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/c0a89ba0-e981-4e58-8a3b-9412bbd0b1c4n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/c0a89ba0-e981-4e58-8a3b-9412bbd0b1c4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/Fwd1BvCfCoM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zECNoy6YbZTHN7DvwhN0n0SEJF5AR4GYEWEjf0hdkomcAA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zECNoy6YbZTHN7DvwhN0n0SEJF5AR4GYEWEjf0hdkomcAA%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACXWM9T4Z56oWHcwDMiLgU9XTU1Tt4CsRj3O33eb3MAyFvQ5EA%40mail.gmail.com.

Reply via email to