Can you not simply add that snow depth DB as another data binding in weewx.conf 
and read the data from it as needed?

>From the docs <http://weewx.com/docs/customizing.htm#The_database>:
> Binding names
> While most users will only need the one weather database that comes with 
> WeeWX, the reporting engine allows you to use multiple databases in the same 
> report. For example, if you have installed the cmon 
> <https://github.com/weewx/weewx/wiki/cmon> computer monitoring package, which 
> uses its own database, you may want to include some statistics or graphs 
> about your server in your reports, using that database.
> 

> On 11 Sep, 2023, at 11:10, DR <wxe...@gmail.com <mailto:wxe...@gmail.com>> 
> wrote:
> 
> I'm just thinking about another project, and wonder how WeeWx uses the 
> default database.
> 
> 
> When it is running does it open and leave open the database all the time?
> 
> If so, is the database able to have another program add records to the 
> database while WeeWx has it open?
> 
> The reason I ask, is that I would like to have another program running which 
> reads snow depth from a Campbell Scientific table, then add that value to the 
> standard database at say 15 minute intervals with a field defined and added 
> to the schema.
> 
> In some days past, I know some databases would prevent more than one attempt 
> to access it, even if not in the traditional deadly embrace situation.
> 
> If WeeWx is busy stuffing new values in every 2 seconds during loop 
> functions, can I also access it simultaneously as long as I don't try to 
> touch the fields that WeeWx is writing to?
> 
> 
> Or is it necessary to shut down, briefly, access, then have the snow depth 
> program open it, write the value, close it and then let WeeWx go merrily on 
> it's way?
> 
> I hope this question is within the scope of this user discussion.  Dale
> 
> 
> -- 
> 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 
> <mailto:weewx-user+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/918b02a3-72d7-f7f7-2e77-a3a374489a85%40gmail.com
>  
> <https://groups.google.com/d/msgid/weewx-user/918b02a3-72d7-f7f7-2e77-a3a374489a85%40gmail.com>.

-- 
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/83F1032C-699A-4DC3-9D4A-850BE12B0150%40gmail.com.

Reply via email to