Comments (3)
Have you tried adjusting the slave address? I had to change it to get mine to work for some unknown reason. I temporarily changed the code to find the correct slave address:
if __name__ == "__main__":
slaveaddress = 1
while slaveaddress < 256 :
try:
print( 'Trying slaveaddress: ', slaveaddress )
rover = RenogyRover('/dev/ttyUSB0', slaveaddress)
print('Model: ', rover.model())
print('Battery %: ', rover.battery_percentage())
print('Battery Type: ', rover.battery_type())
print('Battery Capacity: ', rover.battery_capacity())
print('Battery Voltage: ', rover.battery_voltage())
battery_temp = rover.battery_temperature()
print('Battery Temperature: ', battery_temp, battery_temp * 1.8 + 32)
controller_temp = rover.controller_temperature()
print('Controller Temperature: ', controller_temp, controller_temp * 1.8 + 32)
print('Load Voltage: ', rover.load_voltage())
print('Load Current: ', rover.load_current())
print('Load Power: ', rover.load_power())
print('Charging Status: ', rover.charging_status_label())
print('Solar Voltage: ', rover.solar_voltage())
print('Solar Current: ', rover.solar_current())
print('Solar Power: ', rover.solar_power())
print('Power Generated Today (kilowatt hours): ', rover.power_generation_today())
print('Charging Amp/Hours Today: ', rover.charging_amp_hours_today())
print('Discharging Amp/Hours Today: ', rover.discharging_amp_hours_today())
break
except minimalmodbus.NoResponseError:
slaveaddress = slaveaddress + 1
from solarshed.
Is your test setup the same computer you run the working solarshed on? Make sure the serial port, /dev/ttyUSB4, is correct for your test setup.
from solarshed.
Thank you, it worked! I used 16 as slaveaddress
, which I identified as device_id
using this software
from solarshed.
Related Issues (20)
- How can i install this on Debian ? Any Support for Grafana Dashboard? HOT 2
- Renogy Rover Simulator
- systemd solarshed server service HOT 1
- provide example grafana dashboard JSON
- How do i use this? HOT 6
- add configuration file for solarshed.server HOT 1
- Awesome Project! Is there any chance you could add configuration management for the Renogy Rover Controller HOT 1
- Failing to find module when run HOT 2
- Renogy DCC50S B2B and Solar Controller HOT 1
- Does this work with 60A Renogy Rover? HOT 3
- Suddenly Stopped Working HOT 2
- RJ12 to USB cable in the part list? HOT 7
- Renogy Wanderer Series?
- " No communication with the instrument " error HOT 1
- Connecting from server to Grafana
- Add RJ12 RS232 to USB Cable to Amazon Parts List HOT 1
- Disable/Enable Load HOT 1
- is there a way discover the id through the uart rather than through bluetooth
- load enable/disable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solarshed.