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
Global Unit/Conversion System #506
Comments
I'm working on a way to preserve the 6.x database and still accomplish 1. I'll be adding to this list as I think of feature additions and updating my progress with the unit/conversion system. |
I figured out how to modify database entries to rename to the new naming convention used in the new measurement/unit system. I'm now going through the system making changes and testing stability. |
Additionally, what I meant to mention in the last comment was that as a result, a database deletion will not be necessary when upgrading to the next release, and it will not be a major version jump (7.x), but rather only to 6.2, |
With 6.2.0, I'll also introduce the ability to add new measurements, units, and unit conversions. For an example of how this would be used, let's say, as a user, I had weight sensors. Since no weight sensors are currently supported in Mycodo, I would need to create a script to read the weight measurement and configure a Command Input in Mycodo to execute that script and store the measurement. To make a new measurement and unit available to be selected in the Command Input, I would then need to add the "weight" measurement, "gram" and "kilogram" units, and the conversions "g_to_kg" = "x/1000", "kg_to_g" = "x*1000". Once this is done, the measurement and units are available via dropdown in the Command Input. This will be able to be done for any new type of measurement and/or unit that's not currently built-in to Mycodo. |
I think I have the custom measurement system in its final stages. I've ironed out most of the bugs in the system and refined the Measurement Settings page. Now I need to test a bunch of (pre-6.2.0) database configurations through the database upgrade script and hope everything gets modified correctly. This is the most complex database data upgrade I've performed in Mycodo yet. I hope everyone appreciates not having to delete your database and start from scratch 😉 |
This is awesome Thank you Kyle for making this change... and also all the database work you have done recently for upgrades. I've been distracted by other projects lately but these changes are compelling enough to squeeze in some Mycodo time to kick the tires a bit and stand up a controller or two with the new code. Nice work! |
Thanks! I'm also experimenting with PID autotuning, so I may be releasing that soon, depending how the testing goes. |
Changes with version 7.0 that will break current functionality (upgrade will fail, need to recreate database).
The text was updated successfully, but these errors were encountered: