Announcement
Collapse
No announcement yet.
Write to database options
Collapse
X
-
What I posted in this thread is for your testing with HS4. There is also the myself dll that you will likely need that was also mentioned in this thread.
-
Ok, cool. I'll be happy to do some testing as soon as you have a version ready
Leave a comment:
-
I creates them. You just need to have mySQL server available.
Leave a comment:
-
Thank you. Does this create the tables on first run or do those need to be set up manually first?
Leave a comment:
-
The setup I used for my testing is a mySQL install on the same computer as HS. I also added an additional field later "Ref". For mySQL I forced all schema names to be lower case, but the data in table can be any case. All additional fields are handled as text even if they may be a number.
Leave a comment:
-
The HS4 version of the plugin that supports multiple external databases is attached for your evaluation. I have not tested SQL Server. I am now going to port the implementation to HS3 plugin.
A radio has been added to the top of the History page for long term database to select among the four available. I suggest completing the database parameters of Database name, Table name, Username and Password before selecting MySQL as the database so that when the database is created it will have all the info it needs. It should not need a plugin restart, but if you have issue then give that a try.
I have tested storage of DeviceValue to the database. Reading the table of values for a given date range. Charting for a Device for a date range.
When viewed from MySQL Workbench the following schema is what should be expected to be created by the plugin.
Leave a comment:
-
I cleared my backlog and now will be able to start testing the mySQL implementation tomorrow. I did post the required dll that supports mySQL. When I do post the mcsMQTT dll you will also need to capture this support file. Updates are at https://forums.homeseer.com/forum/hs...ge-log-hs4-hs3
Leave a comment:
-
I have it implemented for mySQL and SQL Server. Just need to test now. Should be done in a day or two.
Leave a comment:
-
So is this something you are planning on adding or not? If not it's fine, just want to know so I can go a different direction if that is the case
Leave a comment:
-
Originally posted by Michael McSharry View PostI am a novice with InfluxDB, but I have not observed any difference in ability to query data from it vs. a traditional relational database as long as one of the fields in the database is a timestamp of when the record was inserted or updated. I know that InfluxDB 2.x and flux query language has additional capabilities beyond the InfluxDB 1. x and other databases SQL, but since I was never lacking in ability to do what I wanted with SQL, I have never tried to look at what else flux query can do.
Leave a comment:
-
I saw in the mcsmqtt change log there was a change for databases, is there a version you would like me to test?
Leave a comment:
-
I am a novice with InfluxDB, but I have not observed any difference in ability to query data from it vs. a traditional relational database as long as one of the fields in the database is a timestamp of when the record was inserted or updated. I know that InfluxDB 2.x and flux query language has additional capabilities beyond the InfluxDB 1. x and other databases SQL, but since I was never lacking in ability to do what I wanted with SQL, I have never tried to look at what else flux query can do.
Leave a comment:
-
Originally posted by kenm View PostDweber85rc - For energy data, you should consider using a time-series centric DB such as InfluxDB. MySQL is a relational database and while it can store TS data, the queries can be a bit more complex. I run MySQL, Django, Apache, InfluxDB, and Grafana all on the same Intel Atom box with no performance issues.
Just my 2 cents.
Leave a comment:
-
Dweber85rc - For energy data, you should consider using a time-series centric DB such as InfluxDB. MySQL is a relational database and while it can store TS data, the queries can be a bit more complex. I run MySQL, Django, Apache, InfluxDB, and Grafana all on the same Intel Atom box with no performance issues.
Just my 2 cents.
Leave a comment:
Leave a comment: