Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite and mysql #48

Closed
juancabrio opened this issue Dec 13, 2022 · 4 comments
Closed

Multisite and mysql #48

juancabrio opened this issue Dec 13, 2022 · 4 comments
Labels
Will not be fixed This will not be worked on

Comments

@juancabrio
Copy link

I love this utility and the tweaks made here. I'm thinking I could use this across all my sites if I had multisite support and MySQL.
I imagine an RPI at every site, all reporting home to a single DB. That would be cool !

@leiweibau
Copy link
Owner

Yes, would be cool, but would significantly increase complexity. I will not implement it, at least from today's perspective :D

@leiweibau
Copy link
Owner

leiweibau commented Dec 13, 2022

This is not even about replacing sqlite3 with MySQL. The challenge is how Pi.Alert works in the database (single user vs. multiuser). The current way of working is not designed for multiuser database transactions.

The only "quick" approach I can think of here would be an extra database for each Pi.Alert on the MySQL server. But then you need a special interface to look at the data of all databases. And also this special case would mean a lot of work, which I can't do as a small hobby developer.

@leiweibau leiweibau added the Will not be fixed This will not be worked on label Dec 13, 2022
@juancabrio
Copy link
Author

Yep, I agree. It would almost need a rewrite from scratch. I will remain content querying my remote sites with some scripts and such.

@jokob-sk
Copy link

Sorry to comment on a closed issue, just thought of a possible workaround - You could use a Home Assistant instance as your hub - I noticed @leiweibau added support for HA so if you @juancabrio are already using HA, this might be a way forward. I did something similar in my fork with MQTT as well. Just food for thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Will not be fixed This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants