solarDeltaSolMQTT
Project description
Solar controller DeltaSol® BS series MQTT
Installing
You can install solarDeltaSolMQTT directly from PyPI:
sudo pip3 install -U solarDeltaSolMQTT
Config
Insert this snippet to the file /etc/solarDeltaSolMQTT.yml:
---
solar:
device: /dev/ttyUSB1
mqtt:
host: 127.0.0.1
port: 1883
prefix: solar
publish:
S1: collector/temperature
S2: boiler-bottom/temperature
S3: boiler-top/temperature
S4: return/temperature
SpeedRelay1: pump/speed
Errormask: true
Usage
Update /etc/solarDeltaSolMQTT.yml and run
solarDeltaSolMQTT -c /etc/solarDeltaSolMQTT.yml
Systemd
Insert this snippet to the file /etc/systemd/system/solarDeltaSolMQTT.service:
[Unit]
Description=solarDeltaSolMQTT
After=network.target
[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/solarDeltaSolMQTT -c /etc/solarDeltaSolMQTT.yml
Restart=always
RestartSec=5
StartLimitIntervalSec=0
[Install]
WantedBy=multi-user.target
Enable the service start on boot:
sudo systemctl enable solarDeltaSolMQTT.service
Start the service:
sudo systemctl start solarDeltaSolMQTT.service
View the service log:
journalctl -u solarDeltaSolMQTT.service -f
PM2
pm2 start /usr/bin/python3 --name "solarDeltaSolMQTT" -- /usr/local/bin/solarDeltaSolMQTT -c /etc/solarDeltaSolMQTT.yml
pm2 save
Development
git clone git@github.com:blavka/solarDeltaSolMQTT.git
cd solarDeltaSolMQTT
./test.sh
sudo python3 setup.py develop
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file solarDeltaSolMQTT-1.0.0.tar.gz
.
File metadata
- Download URL: solarDeltaSolMQTT-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9339e67e6e7326a112d57813d05e023d873285a630ef75e5a2226ff47b386ecc |
|
MD5 | a448bc0ae6a8b1ca1071dd40e01061e8 |
|
BLAKE2b-256 | 92616c1d6ff1afde1a764092188b23337bf20183e8f9def1c993716c6149785b |