The `mqttdpms` tool will allow the screens to be turned off and on using Home Assistant. We'll install it into the rootfs image by copying the artifact from its Jenkins build into the overlay tree before building the image.
This commit is contained in:
5
ci/Jenkinsfile
vendored
5
ci/Jenkinsfile
vendored
@@ -39,6 +39,11 @@ pipeline {
|
||||
sh 'rm -rf _build'
|
||||
}
|
||||
}
|
||||
copyArtifacts \
|
||||
filter: 'aarch64/mqttdpms',
|
||||
projectName: 'mqttdpms/master',
|
||||
selector: lastSuccessful()
|
||||
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
|
||||
sh 'make rootfs initramfs'
|
||||
}
|
||||
}
|
||||
|
||||
9
overlay/etc/systemd/user/mqttdpms.service
Normal file
9
overlay/etc/systemd/user/mqttdpms.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=MQTT DPMS Control
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/mqttdpms
|
||||
Environment=RUST_LOG=info
|
||||
Restart=always
|
||||
StandardInput=null
|
||||
StandardOutput=journal
|
||||
1
overlay/home/user/.config/mqttdpms/config.toml
Symbolic link
1
overlay/home/user/.config/mqttdpms/config.toml
Symbolic link
@@ -0,0 +1 @@
|
||||
/run/storage/mqttdpms.toml
|
||||
@@ -7,6 +7,6 @@ TZ="$(curl https://ipapi.co/timezone)"
|
||||
export TZ
|
||||
|
||||
systemctl --user import-environment DISPLAY TZ
|
||||
systemctl --user start firefox-marionette.socket firefox
|
||||
systemctl --user start firefox-marionette.socket firefox mqttdpms
|
||||
|
||||
exec openbox-session
|
||||
|
||||
Reference in New Issue
Block a user