I've written a windows application to scan tables in a SQLite backup db and import any new records into a MYSQL db.
This would be useful for anyone who wants to keep records for longer than the Domoticz 7 days limit.
The application can be run in either manual or unattended autorun mode and keeps a basic log of updates in the MYSQL db.
So far I've only run/tested the application on a MYSQL server running on my local network but I suspect that there would be no problems saving to a Maria DB on a NAS as long as the Maria db was configured not "Non-Localhost" access.
I've not compiled any documentation yet and I was wondering if anyone else would be intereted in the application.
SB
MYSQL Data Transfer
Moderator: leecollings
- gizmocuz
- Posts: 2537
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: MYSQL Data Transfer
You can also use docker compose and install a container with InfluxDB and Grafana
Quality outlives Quantity!
-
- Posts: 178
- Joined: Tuesday 07 June 2016 22:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Netherlands
- Contact:
Re: MYSQL Data Transfer
@sjb66: Interesting!
Could this help with my issue?:
https://www.domoticz.com/forum/viewtopi ... ce#p312489
Is there a possibility to copy data from 1 table to an other table?
Can I restore the output as database file into Domoticz?
Could this help with my issue?:
https://www.domoticz.com/forum/viewtopi ... ce#p312489
Is there a possibility to copy data from 1 table to an other table?
Can I restore the output as database file into Domoticz?
- gizmocuz
- Posts: 2537
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: MYSQL Data Transfer
I'm pretty sure you can already do this with 'SQLite Personal Edition'. Open the database, right click on the database and choose 'Attach database'
Quality outlives Quantity!
Who is online
Users browsing this forum: No registered users and 1 guest