-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
3,607 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# text files | ||
*.sh text eol=lf | ||
*.py text eol=lf | ||
|
||
# binary files | ||
*.jpg binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,5 @@ dkms.conf | |
|
||
# Ignore code-workspaces | ||
*.code-workspace | ||
|
||
*.pyc |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# image to build MBusPico against pico-sdk | ||
|
||
FROM debian:bookworm-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
PICO_SDK_PATH=/opt/pico-sdk | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
|
||
RUN apt update && apt install -y git cmake gcc-arm-none-eabi python3 g++ curl python3-venv \ | ||
&& apt autoremove -y \ | ||
&& apt clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& git clone --branch "1.5.0" https://github.com/raspberrypi/pico-sdk /opt/pico-sdk \ | ||
&& cd /opt/pico-sdk \ | ||
&& git submodule update --init --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Python runtime image to execute MBusPico | ||
|
||
FROM debian:12-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
PIP_DEFAULT_TIMEOUT=100 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=1 \ | ||
PIP_NO_CACHE_DIR=1 | ||
|
||
RUN set -ex \ | ||
&& apt update && apt install -y python3-pycryptodome python3-serial \ | ||
&& apt autoremove -y \ | ||
&& apt clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY python/dist /opt/mbuspico/ | ||
|
||
WORKDIR /opt/mbuspico | ||
ENTRYPOINT ["python3", "/opt/mbuspico/main.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Loxone integration | ||
|
||
To integrate MBusPico into Loxone and start optimizing your energy management you can import the [HTTP VirtualIn](VI_MBusPico.xml) | ||
or [UDP VirtualIn](VIU_MBusPico.xml) template into Loxone Config. | ||
|
||
[<img src="config.png?raw=true" width="600"/>](config.png?raw=true) | ||
|
||
Visualization in Loxone App: | ||
|
||
[<img src="app.png?raw=true" width="200"/>](app.png?raw=true) | ||
|
||
## Loxberry | ||
|
||
Since MBusPico v2.0 there is also a Python version available. Including a ready-made Python docker container running MBusPico. | ||
|
||
This enables the usage of MBusPico application on your RaspberryPi already running [LoxBerry](https://github.com/mschlenstedt/Loxberry). | ||
|
||
After installing the [Loxberry Docker Plugin](https://wiki.loxberry.de/plugins/docker/start) you can run the MBusPico docker container with the following settings: | ||
|
||
[TODO] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<VirtualInUdp Title="MBusPico" Comment="UDP VirtualIn Template for MBusPico" Address="" Port="0"> | ||
<Info templateType="1" minVersion="14000000"/> | ||
<VirtualInUdpCmd Title="Timestamp" Comment="" Address="" Check=""lxTimestamp": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Voltage L1" Comment="" Address="" Check=""voltageL1": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Voltage L2" Comment="" Address="" Check=""voltageL2": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Voltage L3" Comment="" Address="" Check=""voltageL3": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Current L1" Comment="" Address="" Check=""currentL1": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Current L2" Comment="" Address="" Check=""currentL2": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Current L3" Comment="" Address="" Check=""currentL3": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Power Consumption" Comment="" Address="" Check=""activePowerPlus": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Power Production" Comment="" Address="" Check=""activePowerMinus": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Power Factor" Comment="" Address="" Check=""powerFactor": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Meter Number" Comment="" Address="" Check=""meterNumber": "\v"" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Meter Consumption" Comment="" Address="" Check=""activeEnergyPlus": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
<VirtualInUdpCmd Title="Meter Production" Comment="" Address="" Check=""activeEnergyMinus": \v" Signed="true" Analog="true" SourceValLow="0" DestValLow="0" SourceValHigh="100" DestValHigh="100" DefVal="0" MinVal="-10000" MaxVal="10000"/> | ||
</VirtualInUdp> |
Oops, something went wrong.