Install mqttdpms
dustin/basementhud/pipeline/head This commit looks good Details

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.
pull/1/head
Dustin 2022-05-22 14:12:32 -05:00
parent 51a2324a1c
commit 5083b91871
4 changed files with 16 additions and 1 deletions

5
ci/Jenkinsfile vendored
View File

@ -39,6 +39,11 @@ pipeline {
sh 'rm -rf _build' 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' sh 'make rootfs initramfs'
} }
} }

View 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

View File

@ -0,0 +1 @@
/run/storage/mqttdpms.toml

View File

@ -7,6 +7,6 @@ TZ="$(curl https://ipapi.co/timezone)"
export TZ export TZ
systemctl --user import-environment DISPLAY 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 exec openbox-session