dcl777 / sensors2mqtt Goto Github PK
View Code? Open in Web Editor NEWUniversal Sensor data transporter over MQTT. Sensor like water flow sensor (=pulse-counter), DS18B20 , INA219, 4-20mA, PMS5003, ...
License: GNU General Public License v3.0
Universal Sensor data transporter over MQTT. Sensor like water flow sensor (=pulse-counter), DS18B20 , INA219, 4-20mA, PMS5003, ...
License: GNU General Public License v3.0
Is it possible to add support for the JSN-SR04T Ultrasonic sensor ? I created a new file for this sensor, could you merge it?
Thanks
Describe the bug
If you try to use Generic_SystemInfo sensor shows the same error:
AttributeError: module 'platform' has no attribute 'dist'
Error messages and traceback:
2022-07-19 20:15:01,799 - DEBUG - --> CLASS: sensors.Generic_SystemInfo.LINUX_Generic_SystemInfo
Traceback (most recent call last):
File "/home/pi/sensors2mqtt/sensors2mqtt.py", line 204, in <module>
sens2mqtt.run()
File "/home/pi/sensors2mqtt/sensors2mqtt.py", line 138, in run
myClass = aClass(client,aSensor,mqtt_top_dir_name)
File "/home/pi/sensors2mqtt/sensors/Generic_SystemInfo/LINUX_Generic_SystemInfo.py", line 51, in __init__
dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'
System:
Raspbian 11, Python 3.9.2
Possible workaround
Line 53 of file "sensors/Generic_SystemInfo/LINUX_Generic_SystemInfo.py"
import distro
dist = platform.dist()
to
dist = distro.like()
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.