Windfree poller application & jenkins pipeline

This commit is contained in:
Bitó Attila
2026-08-15 23:40:58 +02:00
parent 41f76ae794
commit 9a633abc5c
24 changed files with 1290 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
[Unit]
Description=SmartThings WindFree OAuth linking helper
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=smartthings-poller
Group=smartthings-poller
EnvironmentFile=/etc/smartthings-windfree/oauth-secrets
ExecStart=/opt/smartthings-windfree/venv/bin/smartthings-windfree-oauth --config /etc/smartthings-windfree/oauth.toml
Restart=on-failure
RestartSec=10
StateDirectory=smartthings-windfree
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,22 @@
[Unit]
Description=SmartThings WindFree status poller
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=smartthings-poller
Group=smartthings-poller
EnvironmentFile=-/etc/smartthings-windfree/secrets
EnvironmentFile=-/etc/smartthings-windfree/oauth-secrets
ExecStart=/opt/smartthings-windfree/venv/bin/smartthings-windfree-poller --config /etc/smartthings-windfree/config.toml
Restart=on-failure
RestartSec=15
StateDirectory=smartthings-windfree
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
[Install]
WantedBy=multi-user.target