lalufu / p1-mqtt Goto Github PK
View Code? Open in Web Editor NEWA gateway from smart meters using the P1 protocol to MQTT
License: GNU General Public License v3.0
A gateway from smart meters using the P1 protocol to MQTT
License: GNU General Public License v3.0
kris@server:/tmp$ git clone [email protected]:isotopp/p1-mqtt.git
Cloning into 'p1-mqtt'...
...
kris@server:/tmp$ cd p1-mqtt/
kris@server:/tmp/p1-mqtt$ python3 -mvenv --prompt=p1-mqtt venv
kris@server:/tmp/p1-mqtt$ source venv/bin/activate
(p1-mqtt) kris@server:/tmp/p1-mqtt$ pip install --upgrade pip
...
(p1-mqtt) kris@server:/tmp/p1-mqtt$ pip install poetry
...
(p1-mqtt) kris@server:~/tmp/p1-mqtt$ poetry install --no-dev
Installing dependencies from lock file
Package operations: 4 installs, 0 updates, 5 removals
• Removing importlib-metadata (3.10.1)
• Removing packaging (20.9)
• Removing platformdirs (2.5.2)
• Removing pyparsing (2.4.7)
• Removing zipp (3.4.1)
• Installing paho-mqtt (1.5.1)
• Installing pyserial (3.5)
• Installing pytz (2020.5)
• Installing typing-extensions (3.10.0.2)
Installing the current project: p1-mqtt (0.1.1)
(p1-mqtt) kris@server:/tmp/p1-mqtt$ poetry run p1-mqtt
Traceback (most recent call last):
File "/tmp/p1-mqtt/venv/bin/poetry", line 5, in <module>
from poetry.console import main
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/console/application.py", line 7, in <module>
from .commands.about import AboutCommand
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py", line 4, in <module>
from .check import CheckCommand
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/console/commands/check.py", line 2, in <module>
from poetry.factory import Factory
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/factory.py", line 18, in <module>
from .repositories.pypi_repository import PyPiRepository
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/repositories/pypi_repository.py", line 33, in <module>
from ..inspection.info import PackageInfo
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/inspection/info.py", line 25, in <module>
from poetry.utils.env import EnvCommandError
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/poetry/utils/env.py", line 23, in <module>
import virtualenv
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/virtualenv/run/__init__.py", line 7, in <module>
from ..app_data import make_app_data
File "/tmp/p1-mqtt/venv/lib/python3.8/site-packages/virtualenv/app_data/__init__.py", line 9, in <module>
from platformdirs import user_data_dir
ModuleNotFoundError: No module named 'platformdirs'
Wiithout --no-dev
it works.
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.