Giter Club home page Giter Club logo

classicmqtt's People

Contributors

eode avatar fastfrank avatar graham22 avatar markvader avatar mcsarge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

classicmqtt's Issues

Hardware Setup Example

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.

Fail to start in Standalone: No module named pymodbus.client.sync

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?

No way to start in awake mode

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.

image

Palo mqtt

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)

pymodbus.compat

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 !

Sample dashboard not working

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

help setting up for home assistant.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.