daily-psk: wait to be fully connected

This commit is contained in:
Christian Hesse 2020-05-27 00:21:30 +02:00
parent 7ecda2204f
commit 7597911672
4 changed files with 10 additions and 4 deletions

View file

@ -15,8 +15,9 @@
:global SendNotification;
:global UrlEncode;
:global WaitForFile;
:global WaitFullyConnected;
:local Seen [ :toarray "" ];
$WaitFullyConnected;
# return pseudo-random string for PSK
:local GeneratePSK do={
@ -48,6 +49,7 @@
($DailyPskSecrets->2->$WeekDay));
}
:local Seen [ :toarray "" ];
:local Date [ / system clock get date ];
:local NewPsk [ $GeneratePSK $Date ];