There is another thread currently talking about using weewx-wd to 'generate' the file, but Gary is saying there's no way currently he knows of to 'ingest' it. You might want to take a look in the other thread about weewx-wd. On Wednesday, March 9, 2022 at 11:04:45 PM UTC-8 [email protected] wrote:
> Could weewx be configured to generate an e.g. realtime.txt / clientraw.txt > or something like that, and another weewx system to access and read it live > (into its own loop packets/archive records)? > > [email protected] schrieb am Samstag, 5. März 2022 um 18:04:51 UTC+1: > >> Nope. Won't work. Unfortunately, the state machine is tangled up in the >> archiving service. For example, the decision on when to pause the LOOP >> packets and generate archive records is done by StdArchive. Having two >> instances would probably result in chaos. >> >> They really should be separated, but that's a scary project that could >> lead to a lot of subtle bugs. >> >> On Sat, Mar 5, 2022 at 8:16 AM matthew wall <[email protected]> wrote: >> >>> On Saturday, March 5, 2022 at 10:33:26 AM UTC-5 [email protected] wrote: >>> >>>> I had an Idea: If I understand the strategies wiki right: can I save to >>>> the local sqlite database and to an external mysql database >>>> simultaneously? >>>> >>> >>> weewx is designed to save to only one database >>> >>> i have no idea whether this would work, but you might try putting two >>> instances of StdArchive into the service list. that *might* let you save >>> to two different databases. create your own archiving service by deriving >>> from the StdArchive class, and put it in the weewx user directory. should >>> not be necessary to define any methods. then refer to it in your weewx >>> config file: >>> >>> archive_services = weewx.engine.StdArchive, user.MyArchive >>> >>> If so, I could send it to a mysql database on my webhosting and then >>>> access it with another weewx installation on another computer and let the >>>> heavier skins run there? So: >>>> >>>> raspberry Pi A [sqlite local reports] --> webserver [mysql] <--> >>>> raspberry Pi B (or other computer) [skin reports] >>>> >>>> Could I access the mysql database simultaneously with weewx on system >>>> B? Would it run reports automatically without an attached weather station? >>>> >>> >>> this is the 'standard' way to do it. make weewx save to a mysql >>> database, either on the computer doing the collection, or on the computer >>> doing the aggregated reports. then make the reporting instance of weewx >>> pull data from the mysql database. >>> >>> >>> -- >>> 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/e2c101ac-464c-412d-8daa-e32752e98effn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/e2c101ac-464c-412d-8daa-e32752e98effn%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/01bdbbcf-495f-4d85-b8a6-3fe34b299a00n%40googlegroups.com.
