classicdiy / classicmqtt Goto Github PK
View Code? Open in Web Editor NEWModbus to MQTT publisher for the Midnite Solar Classic Charge Controller
License: Apache License 2.0
Modbus to MQTT publisher for the Midnite Solar Classic Charge Controller
License: Apache License 2.0
All 3 temperatures metrics are in C or F?
Is it possible to add support for TLS Certificates?
hello,
this is a really interesting project. I was wondering if it can be integrated to home assistant. I do have an esp32 wemos d1 mini. does this board works?
im really green will need help with hardware and software setup. idk id mosquitto broker will work and i have never used before.
any help will be mos appreciated
thanks
M.
I recently went through the iotstack setup and i think i have everything setup correctly except i noticed that grafana isnt showing anything on the imported dashboard. when looking at the data connections i noticed i was getting the following message when i clicked save& test
datasource is working. 0 measurements found
based on everythign else it appears to be working
I would like to try this out. While I can take care of the programming aspect, I am kind of clueless what components for the complete hardware setup do I need. Would you mind listing an example of all parts (besides the Midnight Classic, and WiFi router) that I would need? Perhaps with Power Over Ethernet, or a separate Power Supply. I am not sure how would the Classic supply power to this chip, and what kind of device do I need to plug this chip into. Any recommended brand/type?
Thank you in advance.
I cannot get it to work. I run it in ubuntu 20.04 AMD64 in a python virtualenv
I get it running and can send commands to it:
# python3 ClassicMQTT/ClassicMQTT/code/Python/classic_mqtt.py --classic [IP] --classic_name classic-150-1 --mqtt [IP] --mqtt_root /midnite --mqtt_user midnite --mqtt_pass *******
2021-09-04 16:09:46,253:INFO:classic_mqtt:classic_mqtt starting up...
2021-09-04 16:09:46,256:INFO:classic_mqtt:classicHost = [IP]
2021-09-04 16:09:46,257:INFO:classic_mqtt:classicPort = 502
2021-09-04 16:09:46,257:INFO:classic_mqtt:classicName = classic-150-1
2021-09-04 16:09:46,257:INFO:classic_mqtt:mqttHost = [IP]
2021-09-04 16:09:46,257:INFO:classic_mqtt:mqttPort = 1883
2021-09-04 16:09:46,257:INFO:classic_mqtt:mqttRoot = midnite
2021-09-04 16:09:46,257:INFO:classic_mqtt:mqttUser = midnite
2021-09-04 16:09:46,257:INFO:classic_mqtt:mqttPassword = **********
2021-09-04 16:09:46,257:INFO:classic_mqtt:awakePublishRate = 5
2021-09-04 16:09:46,257:INFO:classic_mqtt:snoozePublishRate = 300
2021-09-04 16:09:46,257:INFO:classic_mqtt:awakePublishLimit = 60
2021-09-04 16:09:46,257:DEBUG:classic_mqtt:snoozeCycleLimit: 60
2021-09-04 16:09:46,257:INFO:classic_mqtt:Connecting with clientId=midnite_mqttclient_589
2021-09-04 16:09:46,258:INFO:classic_mqtt:Connecting to MQTT 10.39.199.28:1883
2021-09-04 16:09:46,264:DEBUG:classic_mqtt:MQTT connected OK Returned code=0
2021-09-04 16:09:46,265:DEBUG:classic_mqtt:Subscribed to /midnite/classic-150-1/cmnd/#
2021-09-04 16:09:46,266:DEBUG:classic_mqtt:Starting main loop...
2021-09-04 16:12:02,902:DEBUG:classic_mqtt:Received MQTT message {"WAKEPUBLISHRATE":3000, "STAYAWAKE":TRUE}
2021-09-04 16:12:02,902:DEBUG:classic_mqtt:{'wakePublishRate': 3000, 'stayAwake': True}
2021-09-04 16:12:02,902:DEBUG:classic_mqtt:StayAwake received, setting stayAwake to True
2021-09-04 16:12:02,903:DEBUG:classic_mqtt:wakePublishRate message received, setting rate to 3
2021-09-04 16:12:02,903:DEBUG:classic_mqtt:Updating snoozeCycleLimit to 100
But it doesn't seem to send stats to the mqtt, it stays as it forever. I also don't understand that snooze thing, it doens't seem documented.
I found issue 35 and adjusted the import as described. I now see a new error:
ile "/home/schroew/ClassicMQTT-master/code/Python/classic_mqtt.py", line 17, in
from support.classic_modbusdecoder import getModbusData
File "/home/schroew/ClassicMQTT-master/code/Python/support/classic_modbusdecoder.py", line 13, in
from pymodbus.compat import iteritems
ModuleNotFoundError: No module named 'pymodbus.compat'
Any advice would be appreciated !
It looks like the new version of paho breaks the classic script. I resolved by changing line 480:
#mqttClient = mqttclient.Client(clientId)
mqttClient = mqttclient.Client(mqttclient.CallbackAPIVersion.VERSION1, clientId)
I'm getting a failure trying to run this for testing... when I run it, I'm getting ModuleNotFoundError: No module named 'pymodbus.client.sync'.
I have already tried re-running 'pip install pymodbus', and it claims the requirement is already satisfied.
Any idea as to what I'm doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.