riego/prod/: riego-0.16.0 metadata and description

Simple index

Plants watering system

author_email Stephan Winter <s.winter@riego.cloud>
description_content_type text/markdown
license MIT
requires_dist
  • gmqtt>=0.7.0
  • ConfigArgParse>=1.7
  • aiohttp[speedups]>=3.11.11
  • aiohttp-jinja2>=1.6
  • jinja2>=3.1.5
  • aiohttp-debugtoolbar>=0.6.1
  • bcrypt>=4.2.1
  • asyncssh>=2.19.0
  • setuptools>=75.6.0
  • pip>=24.3.1
  • aiohttp-session[secure]>=2.12.1
  • uvloop>=0.21.0
requires_python >=3.12

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
riego-0.16.0-py3-none-any.whl
Size
246 KB
Type
Python Wheel
Python
3
riego-0.16.0.tar.gz
Size
228 KB
Type
Source

Riego - Garden-Watering-System

Einstellungen im Dashboard:

Installation

vorbereitungen unter debian

./reboot-to-writable-mode.sh

Memcached

sudo apt install -y memcached
sudo systemctl enable memcached.service
sudo systemctl restart memcached.service

Mosquitto

sudo apt install -y mosquitto mosquitto-clients

sudo bash -c "cat > /etc/mosquitto/mosquitto.conf" <<'EOT'
listener 1883 0.0.0.0
protocol mqtt
allow_anonymous true
persistence true
persistence_location /mnt/usb1/mosquitto/
persistent_client_expiration 2m
include_dir /etc/mosquitto/conf.d
EOT

cp -a /var/lib/mosquitto /mnt/usb1/

sudo systemctl enable mosquitto.service
sudo systemctl restart mosquitto.service

mDNS Discovery für MQTT

sudo apt install -y avahi-daemon
sudo bash -c "cat > /etc/avahi/services/mqtt.service" <<'EOT'

MQTT on %h _mqtt._tcp 1883 EOT

sudo systemctl enable avahi-daemon
sudo systemctl restart avahi-daemon

sudo adduser --system --group --home /mnt/usb1/riego --shell /bin/bash riego
sudo chown -R riego:riego /mnt/usb1/riego
sudo chmod 2775 /mnt/usb1/riego

Python venv with venv

Python venv with uv

Build Dependencie for crypthography from aiohttp[secure]

apt install libssl-dev
curl https://sh.rustup.rs -sSf | sh pip install --upgrade riego uvloop
echo "source .venv/bin/activate" >.profile
exit

Linux Service installieren

sudo bash -c "cat > /etc/systemd/system/riego.service" <<'EOT'
[Unit]
Description=Riego Rain-System
After=mnt-usb1.mount mosquitto.service

[Service]
Nice=-9
IOSchedulingClass=best-effort
IOSchedulingPriority=0
Environment="PYTHONUNBUFFERED=1"
Type=simple
User=riego
WorkingDirectory=/mnt/usb1/riego
ExecStart=/mnt/usb1/riego/.venv/bin/riego
Restart=always

[Install]
WantedBy=multi-user.target
EOT

systemctl daemon-reload
systemctl enable riego
systemctl restart riego