blob: 6f79a5935ecb967b9df8a830905fe71ae07e81a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import random
import time
from rpi_LCD import LCD
import speech_recognition as sr
import sounddevice
import os
LCD = LCD()
VOICE_REC = sr.Recognizer()
MIC = sr.Microphone()
PROCES_LOAD = os.getloadavg()
TIME = current_time.time()
# ERROR CODES
ERROR_BAD_REQUEST = '400'
ERROR_UNAUTHORIZED = '401'
ERROR_NOT_FOUND = '404'
ERROR_TIMEOUT = '408'
def CPU_INFO():
while (True):
LCD.tex(PROCES_LOAD(),1)
def CLOCK():
LCD.text(TIME,1)
|