Welcome, Python uses indents instead of brackets, which means the indents/spacing of the code on each line needs to be exactly correct. I've noticed that sometimes if you copy and paste the code into a new script file that you end up with spaces that aren't the same. I can't really help you with this other than to say look at the original script I uploaded and check the spacing is the same.
Hi All, Do any of you know which nodejs is compatible with the renogy-rover npm package? I tried installing it using nodejs version 9.0.0 and it just blew up.. I loaded the dependencies serial and modbus-serial beforehand and it looked as though they worked ok. I'd like to write some Java code for a website to show my battery voltage and solar voltage but am having a heck of a time getting it installed. my background is not Linux, so i'm wondering if anyone could tell me what i'm doing wrong here.