Skip to content

Commit 1b9aa84

Browse files
committed
setup for buster upgrade
1 parent 12c150a commit 1b9aa84

23 files changed

+113
-879
lines changed

mq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self):
2424

2525
with open("settings.json", "r") as stream:
2626
self.settings = json.load(stream)
27-
self.client = mqtt.Client(client_id=self.configuration.mqtt_clientid, protocol=mqtt.MQTTv311)
27+
self.client = mqtt.Client(client_id=self.settings["mqtt_clientid"], protocol=mqtt.MQTTv311)
2828
self.client.on_connect = self.on_connect
2929
self.client.on_disconnect = self.on_disconnect
3030
self.client.on_message = self.on_message

podcomm/definitions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from enum import IntEnum
2-
import os
31
import logging
4-
from logging.handlers import MemoryHandler
2+
import os
3+
from enum import IntEnum
54

65
DATA_PATH = "./data/"
76

requirements.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
certifi==2020.6.20
2+
chardet==3.0.4
3+
click==7.1.2
4+
crypto==1.4.1
5+
Flask==1.1.2
6+
idna==2.10
7+
itsdangerous==1.1.0
8+
Jinja2==2.11.2
9+
MarkupSafe==1.1.1
10+
Naked==0.1.31
11+
paho-mqtt==1.5.0
12+
pkg-resources==0.0.0
13+
PyYAML==5.3.1
14+
requests==2.24.0
15+
RPi.GPIO==0.7.0
16+
shellescape==3.8.1
17+
simplejson==3.17.2
18+
urllib3==1.25.9
19+
Werkzeug==1.0.1

restapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def update_omnipy():
557557
pdm = _get_pdm()
558558
while pdm.is_busy():
559559
time.sleep(1)
560-
os.system("/bin/bash /home/pi/omnipy/scripts/pi-update.sh")
560+
os.system("/bin/bash /home/pi/omnipy/scripts/update.sh")
561561
return {"update started": time.time()}
562562

563563

scripts/console-ui.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ function DeveloperMenu(){
222222

223223
4)
224224
echo "Stop services"
225-
sudo systemctl stop omnipy.service
225+
sudo systemctl stop omnipy-rest.service
226226
sudo systemctl stop omnipy-beacon.service
227227
sudo systemctl stop omnipy-pan.service
228228

229229
Services_Status=
230230

231-
if $(systemctl -q is-active omnipy.service)
231+
if $(systemctl -q is-active omnipy-rest.service)
232232
then
233233
Services_Status="Failed: Omnipy Service has not been stopped\n"
234234
else
@@ -257,14 +257,14 @@ function DeveloperMenu(){
257257

258258
5)
259259
echo "Restart services"
260-
sudo systemctl restart omnipy.service
260+
sudo systemctl restart omnipy-rest.service
261261
sudo systemctl restart omnipy-beacon.service
262262
sudo systemctl restart omnipy-pan.service
263263

264264

265265
Services_Status=
266266

267-
if $(systemctl -q is-active omnipy.service)
267+
if $(systemctl -q is-active omnipy-rest.service)
268268
then
269269
Services_Status="Success: Omnipy Service has been restarted successfully\n"
270270
else

scripts/hotspot.sh

Lines changed: 0 additions & 174 deletions
This file was deleted.

scripts/image/default.dnsmasq

Lines changed: 0 additions & 33 deletions
This file was deleted.

scripts/image/default.hostapd

Lines changed: 0 additions & 20 deletions
This file was deleted.

scripts/image/dhcpcd.conf

Lines changed: 0 additions & 34 deletions
This file was deleted.

scripts/image/dnsmasq.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)