-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Description
unfortunately there is a new error. when running this from ipython:
In [12]: %run all-in-one.py
all-in-one.py - Displays readings from all of Enviro plus' sensors
Press Ctrl+C to exit!
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/AIY-projects-python/enviroplus-python/examples/all-in-one.py in <module>
133 variable = "temperature"
134 unit = "C"
--> 135 cpu_temp = get_cpu_temperature()
136 # Smooth out with some averaging to decrease jitter
137 cpu_temps = cpu_temps[1:] + [cpu_temp]
~/AIY-projects-python/enviroplus-python/examples/all-in-one.py in get_cpu_temperature()
87 process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
88 output, _error = process.communicate()
---> 89 return float(output[output.index('=') + 1:output.rindex("'")])
90
91
TypeError: a bytes-like object is required, not 'str'
Metadata
Metadata
Assignees
Labels
No labels