Skip to content

Added more registers and support for total energy generated#1

Open
ToeTag wants to merge 3 commits into
plopp:masterfrom
ToeTag:master
Open

Added more registers and support for total energy generated#1
ToeTag wants to merge 3 commits into
plopp:masterfrom
ToeTag:master

Conversation

@ToeTag

@ToeTag ToeTag commented Apr 24, 2021

Copy link
Copy Markdown

No description provided.

@plopp plopp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission! Please see my comments.

Comment thread readreg.py
#Support functions

def convertToFloat(input_int):
#read_long returns a 32-bit int, convert to float...

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to be correct. From the datasheet the integer returned should be divided by 100 to get the floating point value.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread readreg.py
BAT_SOC = 0x311A
BAT_RATED_VOLTAGE = 0x9067

BAT_VOLTAGE_MAX_DAY = 0x3302# 00: 00 Refresh every day V 100

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be some copy/paste garbage? Please remove.

Comment thread readreg.py
print("Batt. temp:\t" + str(temperature) + "C")

gen_energy_day=instrument.read_long(
GEN_ENERGY_TODAY_L, 4, False, 0) # Registernumber, number of decimals

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeated comment. Please remove.

@plopp

plopp commented Apr 28, 2021

Copy link
Copy Markdown
Owner

@ToeTag If you need anything, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants