INSTALL korrigiert, Python Versionsprüfung
This commit is contained in:
parent
d4ac504e08
commit
8d75782ae8
2
INSTALL
2
INSTALL
|
@ -5,7 +5,7 @@ Python muß mindestens Version 3.10 sein.
|
||||||
|
|
||||||
apt-get install python3-cairo python3-gi python3-gi-cairo gir1.2-rsvg-2.0 \
|
apt-get install python3-cairo python3-gi python3-gi-cairo gir1.2-rsvg-2.0 \
|
||||||
python3-serial python3-nmea2 python3-smbus2 python3-bme280 python3-astral \
|
python3-serial python3-nmea2 python3-smbus2 python3-bme280 python3-astral \
|
||||||
python3-can python3-paho-mqtt
|
python3-can python3-paho-mqtt python3-setproctitle gir1.2-gtk3.0
|
||||||
|
|
||||||
Zusätzlich zu diesem Programm muß auch die zugehörige NMEA2000-Bibliothek
|
Zusätzlich zu diesem Programm muß auch die zugehörige NMEA2000-Bibliothek
|
||||||
für Python vorhanden sein. Diese kann momentan am besten parallel zu dem
|
für Python vorhanden sein. Diese kann momentan am besten parallel zu dem
|
||||||
|
|
|
@ -51,6 +51,7 @@ mqtt_ssl = false
|
||||||
mqtt_user = demo
|
mqtt_user = demo
|
||||||
mqtt_pass = 123456
|
mqtt_pass = 123456
|
||||||
trace = false
|
trace = false
|
||||||
|
interval = 15
|
||||||
|
|
||||||
[boat]
|
[boat]
|
||||||
name = My boat
|
name = My boat
|
||||||
|
|
|
@ -83,6 +83,10 @@ Version Datum Änderung(en) von
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
if sys.version_info < (3, 10):
|
||||||
|
print("Python version not compatible!")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
import logging, logging.handlers
|
import logging, logging.handlers
|
||||||
from setproctitle import setproctitle, setthreadtitle
|
from setproctitle import setproctitle, setthreadtitle
|
||||||
|
|
Loading…
Reference in New Issue