forked from ps-jay/pyraven-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 1.22 KB
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
version: "3.8"
services:
pyrmqtt:
build: /opt/pyraven-mqtt
image: pyrmqtt
container_name: pyrmqtt
tty: true
restart: always
devices:
# your existing RAVEn USB mapping
- /dev/serial/by-id/usb-Rainforest_RFA-Z106-RA-PC_RAVEn_v2.3.21-if00-port0:/serial
environment:
RAVEN_DEVICE: "/serial"
# --- existing MQTT config used by pyrmqtt.py ---
MQTT_HOST: 192.168.0.0
MQTT_PORT: 1883
MQTT_USERNAME: "yourusername"
MQTT_PASSWORD: "yourpassword"
# --- PVOutput uploader (optional) ---
PVOUTPUT_ENABLED: "true" # set "false" to disable
PVOUTPUT_API_KEY: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
PVOUTPUT_SYSTEM_ID: "12345"
PVOUTPUT_NET: "0" # 0 = gross (v4 only), 1 = net (v2 export + v4 import)
PVOUTPUT_INTERVAL_SECONDS: "300" # 300=5min (PVOutput standard interval)
# --- Telemetry source ---
PVOUTPUT_MQTT_TOPIC: "raven/sensor/telemetry"
# --- Fronius voltage source (optional) ---
FRONIUS_HOST: "192.168.0.0"
FRONIUS_DEVICE_ID: "1"
# FRONIUS_USERNAME: ""
# FRONIUS_PASSWORD: ""
TZ: "Australia/Melbourne" # matches your locale; PVOutput uses system tz