-
Notifications
You must be signed in to change notification settings - Fork 8
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
Documentation: more info on usage of the code #5
Comments
All registers are accessible as class properties and are listed even in the REPL on Tab+Tab
On read the values received from the inverter must be set as a value to the respective register e.g.
You can use the group_registers() / map_response() helpers from utils to do that. The actual (human readable) values are returned from a call to the format() method e.g.
For writing the values are set via the set() method e.g.
and then the actual modbus values which must be sent to the inverter are exposed as a property
|
thanks for your answer. |
How ... A call to a DB stored procedure (via asyncpg) with the collected data. The data is stored in the following format:
Each index in the metric arrays corresponds to an hour/minute integer and is defined by:
where the variables are declared as:
This gives you 288 records/24h for each metric (column) and everything is stored in a single row, so you have really quick access to the data for the respective day. |
thanks! Could your script provide output in JSON format? |
Not currently, but could be added easily (assuming we are talking about |
i will think about :) thanks you for openness ! |
JSON output is supported in version 0.1.3. The output is available in the examples dir |
wow. super fast. looks good.
why not:
and i believe will simplify the future reading of JSON data |
Current implementation allows you to read the output like this:
or if filtering by description is required:
I don't see a problem with that. A loop over the ['data'] key would be needed anyway. |
clear. which is the file path? can be changed? |
Currently the output is written directly to Expect an |
cool.good job! |
Do you know how to update from git in order to test this d91f755 :) Just in case: |
done. what's the sintax? |
Sorry. Apparently update directly from git does not update the console scripts. Version 0.1.4 is already on pypi.org
and should be OK. The syntax is
|
it is working as expected! Thanks! |
hello. |
Yes, all generator related registers are missing (saves time when there so many others). I'll try to add them in the next few days. |
Generator registers have been added. The documentation is little fishy about these. Let me know if there are any problems with them. |
ok. i need some good sunny days to test. do feel the need to open a separate issue on this topic? |
is a good approach and i will like to use it in my automation but i need more info on the usage of the code.
i.e in example provided the is a syntax like:
similar for WritableRegisters :)
The text was updated successfully, but these errors were encountered: