Funktioniert auch am Tag nicht:
Code
Python 2.7.9 (default, Mar 8 2015, 00:52:26)
[GCC 4.9.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
['853', '511', '5.75', '625', '228', '0.78', '282', '469', '228', '0.79', '286', '229', '284']
Traceback (most recent call last):
File "/home/pi/Downloads/collect_kostal.py", line 93, in <module>
main()
File "/home/pi/Downloads/collect_kostal.py", line 87, in main
data = get_data()
File "/home/pi/Downloads/collect_kostal.py", line 54, in get_data
dc_i_3 = data[13]
IndexError: list index out of range
>>>
Alles anzeigen
Es liegt daran das ich keinen 3. String habe.
Also muss das angepast werden. Die Frage ist nur wie.