Release v3.0.0

- Bump version to 3.0.0 and update docs

- Fix Debian payload to include TUI and install /usr/bin/sensorpajen-tui wrapper

- Make systemd unit upgrades safer and ignore deb build artifacts
This commit is contained in:
2025-12-29 15:34:03 +01:00
parent 54d55cf0f6
commit fcaaf29307
50 changed files with 963 additions and 2421 deletions

View File

@@ -28,10 +28,10 @@ The easiest way to install on Raspberry Pi OS is using the pre-built Debian pack
```bash
# Download the latest release
wget https://gitea.wahlberg.se/api/v1/repos/fredrik/sensorpajen/releases/download/v2.0.0/sensorpajen_2.0.0_all.deb
wget https://gitea.wahlberg.se/api/v1/repos/fredrik/sensorpajen/releases/download/v3.0.0/sensorpajen_3.0.0_all.deb
# Install
sudo dpkg -i sensorpajen_2.0.0_all.deb
sudo dpkg -i sensorpajen_3.0.0_all.deb
# Configure
sudo nano /etc/sensorpajen/sensorpajen.env # Edit MQTT settings
@@ -82,7 +82,8 @@ The TUI allows you to:
**Keybindings:**
- `a`: Approve selected sensor
- `i`: Ignore selected sensor
- `e`: Edit sensor name
- `e`: Edit sensor name and comment
- `v`: View details (MAC/name/comment)
- `u`: Unignore sensor
- `Delete`: Remove sensor from monitoring
- `r`: Refresh data
@@ -90,17 +91,17 @@ The TUI allows you to:
When you approve a sensor, it's added to your configuration and the service automatically starts monitoring it.
### Legacy CLI Approval
### Legacy CLI Approval (Deprecated)
If you prefer the command line, you can still use:
The recommended workflow is the TUI (`sensorpajen-tui`). A legacy CLI tool still exists:
```bash
sudo sensorpajen approve-sensors
sudo sensorpajen-approve-sensors
```
### MQTT Settings
Edit `config/sensorpajen.env`:
Edit `/etc/sensorpajen/sensorpajen.env`:
```bash
MQTT_HOST=192.168.1.10
@@ -128,6 +129,7 @@ Sensors are automatically managed via the approval workflow. You can also manual
}
]
}
```
## Service Management
@@ -227,11 +229,11 @@ mosquitto_sub -h <MQTT_HOST> -u <USER> -P <PASSWORD> -t "MiTemperature2/#" -v
**Sensor not found:**
```bash
# Run sensor discovery
sudo sensorpajen approve-sensors
# Run the TUI to view/approve newly discovered sensors
sudo sensorpajen-tui
# Check discovered sensors
sudo cat /var/lib/sensorpajen/discovered_sensors.json | jq '.'
# Check recent logs
sudo journalctl -u sensorpajen -n 100
```
### Development Installation