Compare commits
1 Commits
5083b91871
...
3b4d9c0109
Author | SHA1 | Date |
---|---|---|
|
3b4d9c0109 |
|
@ -1 +1,2 @@
|
||||||
/_build
|
/_build
|
||||||
|
overlay/home/user/.config/mqttdpms/config.toml
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -1,7 +1,9 @@
|
||||||
SHELL ?= /bin/sh
|
SHELL ?= /bin/sh
|
||||||
|
|
||||||
.PHONY: rootfs
|
.PHONY: rootfs
|
||||||
rootfs:
|
rootfs: \
|
||||||
|
overlay/usr/local/bin/mqttdpms \
|
||||||
|
overlay/home/user/.config/mqttdpms/config.toml
|
||||||
$(SHELL) mkrootfs.sh _build/rootfs
|
$(SHELL) mkrootfs.sh _build/rootfs
|
||||||
|
|
||||||
.PHONY: initramfs
|
.PHONY: initramfs
|
||||||
|
@ -15,3 +17,7 @@ _build/rootfs/boot/initramfs.img: \
|
||||||
.PHONY: publish
|
.PHONY: publish
|
||||||
publish:
|
publish:
|
||||||
$(SHELL) publish.sh _build/rootfs
|
$(SHELL) publish.sh _build/rootfs
|
||||||
|
|
||||||
|
overlay/home/user/.config/mqttdpms/config.toml: \
|
||||||
|
overlay/home/user/.config/mqttdpms/config.toml.in
|
||||||
|
sed "s:@PASSWORD@:${MQTTDPMS_PASSWORD}:" < $< > $@
|
||||||
|
|
|
@ -39,7 +39,18 @@ pipeline {
|
||||||
sh 'rm -rf _build'
|
sh 'rm -rf _build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sh 'make rootfs initramfs'
|
copyArtifacts \
|
||||||
|
filter: 'aarch64/mqttdpms',
|
||||||
|
projectName: 'mqttdpms/master',
|
||||||
|
selector: lastSuccessful()
|
||||||
|
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
|
||||||
|
withCredentials([usernamePassword(
|
||||||
|
usernameVariable: 'MQTTDPMS_USERNAME',
|
||||||
|
passwordVariable: 'MQTTDPMS_PASSWORD',
|
||||||
|
credentialsId: 'mqttdpms-basementhud',
|
||||||
|
)]) {
|
||||||
|
sh 'make rootfs initramfs'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
name = "Basement HUD"
|
||||||
|
|
||||||
|
[mqtt]
|
||||||
|
host = 'homeassistant.pyrocufflink.blue'
|
||||||
|
port = 8883
|
||||||
|
tls = true
|
||||||
|
username = 'basementhud'
|
||||||
|
password = "@PASSWORD@"
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue