-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Correct Power readings of Nan that are sent in reversed byte order . an edge case where it appears that the solaredge inverter has a minor but irritating bug when encoding data for transmission * Correct inverter Pmax power readings that should be Nan . an edge case where it appears that the solaredge inverter has a minor but irritating bug when encoding data for transmission, namely that readings of Nan that are sent in reversed byte order * Decode battery id to string instead of bytes. . The battery ID in a meters_0x0030 message is 12 characters long. In Python 3.x struct.unpack returns a byte string when the 's' format is used. But byte strings are not accepted as keys for dictionaries, so it is necessary to decode the battery ID byte string to a proper unicode string to avoid problems later on. * First attempt at providing a test for the fix_byte_strings changes. . The 'correct' json file was created under Windows, so there may be problems with CR LF endings, when tests are run under a Linux shell. * Fix value returned from parseData when unknown function encountered. . The previous return value was raising an exception, even though the intent is just to ignore the unknown function part of the message. * Convert Date and Time values in json output to the US/Pacific timezone. . test/test.sh, as run by CircleCI, is setup to generate Date and Time values as per the US/Pacific timezone. Hence my target output json file must also include Date and Time as per that timezone, in order to pass the CI tests. * Add the .rec and .csv files expected by test/test.sh. * Save csv and rec files created by running test/test.sh on Ubuntu
- Loading branch information
Showing
9 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/csv/Geoff99.190801.1135.test/Geoff99.190801.1135.test.batteries_0x0030.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
test/csv/Geoff99.190801.1135.test/Geoff99.190801.1135.test.inverters.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
test/csv/Geoff99.190801.1135.test/Geoff99.190801.1135.test.meters_0x0022.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
test/csv/Geoff99.190801.1135.test/Geoff99.190801.1135.test.optimizers.csv
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown