optiz0r / energy-usage Goto Github PK
View Code? Open in Web Editor NEWRealtime energy usage reporting from Bright MQTT feed (SEP) into InfluxDB/VictoriaMetrics
License: MIT License
Realtime energy usage reporting from Bright MQTT feed (SEP) into InfluxDB/VictoriaMetrics
License: MIT License
Hi Ben - thanks for your work on this, but Im having some basic trouble trying to install.
EDIT: In order to progress, I copied the files down to my linux box, maintaining the directory structure.
I ran the PIP3 install with requirements.txt
I then executed the setup.py script; I had to comment out the lines referring to VERSION as this was not defined anywhere, and no import file that was apparent.
This allowed the build to apparently work, but then trying to run the energy-usage module generates errors:
[root@centos8-agnet energyusage]# python3 setup.py install --verbose
running install
running bdist_egg
running egg_info
writing energy_usage.egg-info/PKG-INFO
writing dependency_links to energy_usage.egg-info/dependency_links.txt
writing entry points to energy_usage.egg-info/entry_points.txt
writing top-level names to energy_usage.egg-info/top_level.txt
reading manifest file 'energy_usage.egg-info/SOURCES.txt'
writing manifest file 'energy_usage.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
installing package data to build/bdist.linux-x86_64/egg
running install_data
copying config.yaml.example -> /etc/energy-usage/config.yaml.example
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying energy_usage.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/energy_usage-0.0.0-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing energy_usage-0.0.0-py3.6.egg
removing '/usr/local/lib/python3.6/site-packages/energy_usage-0.0.0-py3.6.egg' (and everything under it)
creating /usr/local/lib/python3.6/site-packages/energy_usage-0.0.0-py3.6.egg
Extracting energy_usage-0.0.0-py3.6.egg to /usr/local/lib/python3.6/site-packages
energy-usage 0.0.0 is already the active version in easy-install.pth
Installing energy-usage script to /usr/local/bin
Installed /usr/local/lib/python3.6/site-packages/energy_usage-0.0.0-py3.6.egg
Processing dependencies for energy-usage==0.0.0
Finished processing dependencies for energy-usage==0.0.0
[root@centos8-agnet energyusage]# energy-usage
Traceback (most recent call last):
File "/usr/local/bin/energy-usage", line 11, in
load_entry_point('energy-usage==0.0.0', 'console_scripts', 'energy-usage')()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2700, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2318, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2324, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ModuleNotFoundError: No module named 'energy_usage'
Hi,
I have been trying to get this running but having some issues, I have desktop docker installed on windows10.
I have done the docker build successfully and I have copied config.yaml.example
to config.yaml
and filled in my MQTT login details.
The folder path is set up as below
C:\Users\Mark\energy-usage
with the config.yaml in this location, however I get the error below error,
C:\Users\Mark>docker run -v config.yaml:/energy-usage/config.yaml energy-usage:latest
Traceback (most recent call last):
File "/usr/local/bin/energy-usage", line 33, in
sys.exit(load_entry_point('energy-usage==0.4', 'console_scripts', 'energy-usage')())
File "/usr/local/lib/python3.10/site-packages/energy_usage-0.4-py3.10.egg/energy_usage/main.py", line 72, in main
config = load_config(args)
File "/usr/local/lib/python3.10/site-packages/energy_usage-0.4-py3.10.egg/energy_usage/main.py", line 36, in load_config
validate_config(config)
File "/usr/local/lib/python3.10/site-packages/energy_usage-0.4-py3.10.egg/energy_usage/main.py", line 50, in validate_config
key.get(datatype)
File "/usr/local/lib/python3.10/site-packages/confuse/core.py", line 351, in get
return templates.as_template(template).value(self, template)
File "/usr/local/lib/python3.10/site-packages/confuse/templates.py", line 64, in value
return self.get_default_value(view.name)
File "/usr/local/lib/python3.10/site-packages/confuse/templates.py", line 69, in get_default_value
raise exceptions.NotFoundError(u"{} not found".format(key_name))
confuse.exceptions.NotFoundError: mqtt.username not found
I have tried placing the config.yml file in different locations with no luck,
Please can you help me with the correct location for this file ?
Many thanks
Mark
Travis stopped doing free builds for opensource projects. Need to migrate build+publish to github actions instead.
0.5 has been pushed to https://hub.docker.com/r/optiz0r/energy-usage.
Hildebrand have added support to the CAD to support local MQTT brokers instead of their cloud one. Verify that energy-usage
can properly fetch data from a local broker when used.
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.