From f189d88af4e56eeaedffa072a22e565b73093013 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 9 Jan 2022 02:55:46 +0100 Subject: ... --- files/files/etc/config/dayled.sops | 6 +++--- files/files/usr/local/sbin/dayled.sh | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/files/etc/config/dayled.sops b/files/files/etc/config/dayled.sops index ad89426..fa8e853 100644 --- a/files/files/etc/config/dayled.sops +++ b/files/files/etc/config/dayled.sops @@ -1,13 +1,13 @@ { - "data": "ENC[AES256_GCM,data:hOZtsaVLwayRsA1vSdN0Rp6V6shQe0sQp1mGnKiwhR3SsSitYmGohzt+sfXER4YKRaMjE1QwdeSFcX3kjthvgHiOqscirKBdodTxYQvwrr8iog1FgmWCLlNAy4ymu4w=,iv:boQ8RbTFCUPAmzr6dW/q2mg6/Hj8Z3oN9y79gdSMLvQ=,tag:f/suZzHXTpS7RWVQQw1D/g==,type:str]", + "data": "ENC[AES256_GCM,data:QcdL23Ja9zy6v9VC8bQS5AoMrY1J++ricJMRP64q6AKa8Ve9TWUzq/UEpOwh3BEgk6jD6CVTF64QjQiySjekqKXeteEb+lDJUGRjr0qpXQXhcyu00+6OG+uvafRQha5npRlsC60dieJpcPIhFVrq3Udouq8l1Kqb4Q==,iv:JXmVIG5wF6WzirvMAJVVkQ9GRzxRmJzCm09jIGr9NNM=,tag:2Nq9nsiMflCp4ZPrB2l2uQ==,type:str]", "sops": { "kms": null, "gcp_kms": null, "azure_kv": null, "hc_vault": null, "age": null, - "lastmodified": "2022-01-09T01:15:26Z", - "mac": "ENC[AES256_GCM,data:hwXoKGTfNQAydB1dW5z8OOIngWPtgpuoNA/cUE7Fp7pk0qfepkasAI3Ia5pbnTelwEdEA8WIUkspsWMTsHSsSfGCaK1nlUoJaFEPp2WfAlYMlv72hpYSPCMliEqzZlVEKErHEntzmKEKkzIEZgvRdcXlKkuaoVqw4BLOq7D7GMY=,iv:oUhIWjYBRp+IG/CGQ0Di53O9p1IThTUZZFtOnyrC210=,tag:6URfy7eJE7UyfLfo5cw6Ng==,type:str]", + "lastmodified": "2022-01-09T01:55:01Z", + "mac": "ENC[AES256_GCM,data:XpCj6sjUD7MH+ehB6KY/yWx86chE5i4bdo0ux2xvDyxTSMfy2XPQSgSAcwkiqZqFK+VhTgIhire0KfKtZO+kR2VH2mabBVOqkFfafkiORwTPuoIKm+jkQA+6ETbyVT1Pprrm8eEKPOloX2YIiZ3fyFUP7vgaFRgO2FA8Fs4l3ok=,iv:La8hXG7N5gQJpzKKPQxlwNtr96sJHQLyW6VxgInoOTY=,tag:myzDq4pWEKjKIEA9JrDYiA==,type:str]", "pgp": [ { "created_at": "2022-01-09T01:06:05Z", diff --git a/files/files/usr/local/sbin/dayled.sh b/files/files/usr/local/sbin/dayled.sh index 8a30b4e..07f9dc8 100644 --- a/files/files/usr/local/sbin/dayled.sh +++ b/files/files/usr/local/sbin/dayled.sh @@ -3,9 +3,10 @@ local latitude="$(uci get dayled.@dayled[0].latitude)" local longitude="$(uci get dayled.@dayled[0].longitude)" local offset="$(uci get dayled.@dayled[0].offset)" +local twilight="$(uci get dayled.@dayled[0].twilight)" function act() { - sunwait $1 $offset $latitude $longitude >/dev/null + sunwait $1 $twilight $offset $latitude $longitude >/dev/null local state=$? if [ "$state" -eq 2 ]; then cat /sys/class/leds/blue\:dome/max_brightness > /sys/class/leds/blue\:dome/brightness -- cgit v1.2.3