vcgencmd measure_temp ; uptime every 60 s
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Dec 2023 15:40:04 +0000 (16:40 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 3 Dec 2023 09:26:16 +0000 (10:26 +0100)
wait.py

diff --git a/wait.py b/wait.py
index 311f37e..ca12ee0 100755 (executable)
--- a/wait.py
+++ b/wait.py
@@ -5,6 +5,7 @@ from signal import pause
 import pygame
 import glob
 import time
+import os
 
 GPIO.setmode(GPIO.BCM)
 
@@ -24,7 +25,10 @@ GPIO.add_event_detect(26, GPIO.FALLING, callback=play, bouncetime=300)
 
 try:
     play(42)
-    pause()
+    while(1):
+        os.system('vcgencmd measure_temp ; uptime')
+        time.sleep(60)
+    #pause()
 except KeyboardInterrupt:
     GPIO.cleanup()