I was really only suggesting that you use the simulator driver to allow weewx to create its default MySQL/Mariadb database. It is probably not the best model or basis for your working code. While I am sure that it is easy to modify your local data storage script to use the weewx database, this doesn't (without further coding) give weewx meaningful access to your real-time data, and I am not sure that weewx 'expects' new data to appear in its database in real time other than through its own mechanisms. I would again suggest that you look at the code of the fileparse driver in /examples. It should be fairly easy for you to modify this either to get new data directly from your sensors at your chosen interval or (my original suggestion) to read a text file written at intervals by your data storage script. weewx will then be able to process and store the new data as if it came directly from the sensors.
On Wednesday, April 24, 2024 at 8:16:00 AM UTC-4 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/e60f1b90-0616-4693-9074-2c5d0d4c3ce7n%40googlegroups.com.
