Update install.sh
This commit is contained in:
parent
85b78a03c7
commit
703f12bc8a
|
|
@ -16,7 +16,6 @@ Description=Python APRS WX1
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
#ExecStartPre=/bin/sleep 30
|
|
||||||
ExecStart=/usr/bin/python3 /opt/python-wx/wx1.py
|
ExecStart=/usr/bin/python3 /opt/python-wx/wx1.py
|
||||||
WorkingDirectory=/opt/python-wx/
|
WorkingDirectory=/opt/python-wx/
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
@ -62,6 +61,7 @@ login = f"user {callsign} pass {password} vers emq-TE1 Python APRS WX 1.4"
|
||||||
mlogin = f"{api_key}"
|
mlogin = f"{api_key}"
|
||||||
mid = f"{map_id}"
|
mid = f"{map_id}"
|
||||||
|
|
||||||
|
time.sleep(30)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# Get weather data from OpenWeatherMap API
|
# Get weather data from OpenWeatherMap API
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue