Compare commits

..

2 commits

Author SHA1 Message Date
504089427d
bootshorn records use temp file 2025-08-24 13:34:01 +02:00
60f29aab70
fix hue dhcp 2025-08-24 13:33:44 +02:00
2 changed files with 7 additions and 4 deletions

View file

@ -7,6 +7,7 @@ do
# get date in ISO 8601 format with nanoseconds
PROGRAMM=$(test $(uname) = "Darwin" && echo "gdate" || echo "date")
DATE=$($PROGRAMM "+%Y-%m-%d_%H-%M-%S.%6N%z")
FILE="recordings/$DATE.flac"
# record audio using ffmpeg
ffmpeg \
@ -19,5 +20,7 @@ do
-t "3600" \
-c:a flac \
-compression_level 12 \
"recordings/$DATE.flac"
"$FILE.part"
mv "$FILE.part" "$FILE"
done

View file

@ -1,6 +1,6 @@
{
'dummy': True,
'hostname': '10.0.2.100',
'hostname': '10.0.0.143',
'groups': [
'home',
],
@ -8,13 +8,13 @@
'id': '87879bc1-130f-4fca-a8d2-e1d93a794df4',
'network': {
'internal': {
'ipv4': '10.0.2.100/24',
'ipv4': '10.0.0.143/24',
'mac': '00:17:88:67:e7:f2',
},
},
'dns': {
'hue.ckn.li': {
'A': {'10.0.2.100'},
'A': {'10.0.0.143'},
},
},
},