Hello Matteo,
I think it is quite possible to have your own code filling the weewx DB and 
running weewx simply to create the plots and calculate the long term 
summaries.

It would be a huge task to have weewx directly read your db format, so 
maintaining both DBs (your original one and weewx)  side by side would be 
the best way to go. Simply adjust your php code to update the weewx DB at 
the same time as it updates your own DB.  Note that weewx records the 
date/time rounded to exact multiples of the time interval.

Transferring your old data might be something as a simple as a single 
INSERT ... SELECT  statement run on the server, depending on your DB 
format. This would depend on aligning the units being used. I presume you 
would use some form of metric system, so configure weewx to use a 
non-default unit system.

In my case I just run "weectl report"  via a cron job, however in your case 
you might need to run the weewx daemon to generate the day summaries - I 
don't know if the report generator will do that for you.


On Wednesday 24 April 2024 at 10:16:00 pm UTC+10 matteo pirazzi wrote:

> Dear Peter,
> thanks for your reply, I have found the correct table name and I have 
> found the columns; my personal approach for inserting the data into the 
> database is simpler: since the data is at my home and MariaDB is online, it 
> is better for me to modify the local data storage script to insert new 
> records into the table of the weewx online database.
> In simulation mode the system automatically inserts a record every few 
> seconds but this, for me, is not necessary and I need to stop this but I 
> cannot find where, could you help me? 
> thanks in advance.
> respect
> matteo
>
>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/885ca30f-ecc5-47a2-b2e5-1a47015a915fn%40googlegroups.com.

Reply via email to