services: Remove flipdot
This commit is contained in:
parent
fd6cc59b48
commit
7eea8662da
7 changed files with 0 additions and 84 deletions
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
powerbar-switch {{ flipdot_powebar_num }} off
|
||||
powerbar-switch {{ flipdot_powebar_num }} on
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Managed by Ansible
|
||||
|
||||
set -eu
|
||||
|
||||
HOST={{ flipdot_host }}
|
||||
|
||||
while true; do
|
||||
time=`date +%H:%M`
|
||||
tmp=/tmp/flipdot.gray
|
||||
|
||||
convert -size 336x16 xc:black -density 800x240 -font Liberation-Mono -pointsize 6 -fill white -gravity Center -annotate +0+1 `date +%H:%M` -draw "line 0,15,$(((`date +1%S`-100)*56/10)),15" -depth 8 $tmp
|
||||
(echo -ne "\x00\x00\x15\x00" ; dd if=$tmp bs=5376 count=1 2>/dev/null) | nc -q1 -w1 $HOST 7890
|
||||
sleep 1
|
||||
convert -size 336x16 xc:black -density 800x240 -font Liberation-Mono -pointsize 6 -fill white -gravity Center -annotate +0+1 "`date "+%H %M"`" -draw "line 0,15,$(((`date +1%S`-100)*56/10)),15" -depth 8 $tmp
|
||||
(echo -ne "\x00\x00\x15\x00" ; dd if=$tmp bs=5376 count=1 2>/dev/null) | nc -q1 -w1 $HOST 7890
|
||||
sleep 1
|
||||
|
||||
if [ $time != `date +%H:%M` ]
|
||||
then
|
||||
convert -size 336x16 xc:white -density 800x240 -font Liberation-Mono -pointsize 6 -fill black -gravity Center -annotate +0+1 `date +%H:%M` -depth 8 $tmp; (echo -ne "\x00\x00\x15\x00" ; dd if=$tmp bs=5376 count=1 2>/dev/null) | nc -q1 -w1 $HOST 7890
|
||||
sleep 2
|
||||
fi
|
||||
done
|
|
@ -1,16 +0,0 @@
|
|||
# Managed by Ansible
|
||||
|
||||
[Unit]
|
||||
Description=Big flipdot display
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/flipdot-time.sh
|
||||
ExecStopPost=/usr/local/bin/flipdot-reboot.sh
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue