Skip to content

Commit d799c5e

Browse files
authored
Merge pull request #437 from Stefal/dev
Merge dev branch to master
2 parents 6a5a7ad + 5256c18 commit d799c5e

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# Changelog
22

3+
## [2.6.2] - 2024-10-06
4+
### Added
5+
- Added Rtkbase gnss reverse proxy service in the diagnostic view. #421
6+
### Fixed
7+
- Remove firstboot service on Raspberry Pi image >= 2.5 which was causing services to stay stopped after a reboot. #436
8+
- Reboot autorefresh timeout is now 90s. #426
9+
310
## [2.6.1] - 2024-08-26
411
### Changed
512
- More tests before installing prebuilt RTKLib cli tools.
613
### Fixed
714
- Build rtklib if previous installed release is not working. #418
8-
- Insert new release into settings.conf before restarting services. #411
15+
- Insert new release number into settings.conf before restarting services. #411
916
- Custom web_port setting was not used. #419
1017
- Cellular modem: nmcli connection was not updated after a switch to public ip address.
1118

settings.conf.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[general]
44
# Version
5-
version=2.6.1
5+
version=2.6.2
66
# Rtkbase upgrade mandatory "checkpoint"
77
checkpoint_version=2.7.0
88
# User who runs str2str_file service

tools/rtkbase_update.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,24 @@ upd_2.6.0() {
207207
then
208208
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
209209
fi
210+
upd_2.6.1 "$@"
211+
}
212+
213+
upd_2.6.1() {
214+
#Remove firstboot service from the Raspberry 2.5 and 2.6 images
215+
#This service should have been removed after the first boot, but
216+
# wasn't and was stopping various RTKBase services at each boot.
217+
if [[ -f /etc/os-release ]]
218+
then
219+
source /etc/os-release
220+
fi
221+
222+
if [[ $ID == debian ]] && systemctl list-units firstboot.service
223+
then
224+
systemctl disable --now firstboot.service
225+
rm /lib/systemd/system/firstboot.service
226+
systemctl daemon-reload
227+
fi
210228
}
211229

212230
#check if we can apply the update

web_app/server.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@
102102
{"service_unit" : "str2str_rtcm_svr.service", "name" : "rtcm_svr"},
103103
{'service_unit' : 'str2str_rtcm_serial.service', "name" : "rtcm_serial"},
104104
{"service_unit" : "str2str_file.service", "name" : "file"},
105-
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
105+
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
106106
{'service_unit' : 'rtkbase_archive.service', "name" : "archive_service"},
107107
{'service_unit' : 'rtkbase_raw2nmea.service', "name" : "raw2nmea"},
108+
{'service_unit' : 'rtkbase_gnss_web_proxy.service', "name": "RTKBase Reverse Proxy for Gnss receiver Web Server"}
108109
]
109110

110111
#Delay before rtkrcv will stop if no user is on status.html page
@@ -840,8 +841,8 @@ def getServicesStatus(emit_pingback=True):
840841
"""
841842

842843
#print("Getting services status")
843-
try:
844-
for service in services_list:
844+
for service in services_list:
845+
try:
845846
#print("unit qui déconne : ", service["name"])
846847
service["active"] = service["unit"].isActive()
847848
service["status"] = service["unit"].status()
@@ -853,11 +854,11 @@ def getServicesStatus(emit_pingback=True):
853854
else:
854855
service["state_ok"] = None
855856

856-
except Exception as e:
857-
#print("Error getting service info for: {} - {}".format(service['name'], e))
858-
#TODO manage better the error with rtkbase_archive.service. See https://github.com/Stefal/rtkbase/issues/162
859-
#and try to remove this "pass" without any notification (bad practive)
860-
pass
857+
except Exception as e:
858+
print("Error getting service info for: {} - {}".format(service['name'], e))
859+
#TODO manage better the error with rtkbase_archive.service. See https://github.com/Stefal/rtkbase/issues/162
860+
#and try to remove this "pass" without any notification (bad practive)
861+
pass
861862

862863
services_status = []
863864
for service in services_list:

web_app/static/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ $(document).ready(function () {
714714
$(this).prop("disabled", true);
715715
$("#reboot-cancel-button").prop("disabled", true);
716716
socket.emit("reboot device");
717-
reboot_countdown(60, 0);
717+
reboot_countdown(90, 0);
718718
})
719719

720720
function reboot_countdown(remaining, count) {

0 commit comments

Comments
 (0)