summaryrefslogtreecommitdiff
path: root/script.py
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-05 18:40:27 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-05 18:40:27 +0100
commitfa7007d00c04fc73f668e2b7f339c3f60a64d055 (patch)
tree1c054d4f10759201134d496dbe170e2cfe49bfe5 /script.py
parentd7b8b6ae21c07fe52e691e9090c24de0d09a401f (diff)
did alot :)
Diffstat (limited to 'script.py')
-rw-r--r--script.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/script.py b/script.py
deleted file mode 100644
index 6f79a59..0000000
--- a/script.py
+++ /dev/null
@@ -1,27 +0,0 @@
1import random
2import time
3from rpi_LCD import LCD
4import speech_recognition as sr
5import sounddevice
6import os
7
8LCD = LCD()
9VOICE_REC = sr.Recognizer()
10MIC = sr.Microphone()
11PROCES_LOAD = os.getloadavg()
12TIME = current_time.time()
13
14# ERROR CODES
15ERROR_BAD_REQUEST = '400'
16ERROR_UNAUTHORIZED = '401'
17ERROR_NOT_FOUND = '404'
18ERROR_TIMEOUT = '408'
19
20def CPU_INFO():
21 while (True):
22 LCD.tex(PROCES_LOAD(),1)
23
24def CLOCK():
25 LCD.text(TIME,1)
26
27