[Issue #1] - Adding UpdateInterval config value to set how long to wait in between each update loop, in seconds
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2026-09-07 00:34:29 -04:00
parent dbbcd4292a
commit c60ef1c093
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,5 +1,9 @@
package main package main
import (
"time"
)
const ( const (
WifiSSID = "My Wifi Name" WifiSSID = "My Wifi Name"
WifiPass = "SecretWifiPassword" WifiPass = "SecretWifiPassword"
@@ -12,4 +16,6 @@ const (
NodeName = "Studio Weather" NodeName = "Studio Weather"
NodeID = "studio_env" NodeID = "studio_env"
ClientID = "pico2w_studio_env" ClientID = "pico2w_studio_env"
UpdateInterval = 30 * time.Second
) )
+1 -1
View File
@@ -346,6 +346,6 @@ func main() {
} }
} }
time.Sleep(30 * time.Second) time.Sleep(UpdateInterval)
} }
} }