Skip to content

Commit

Permalink
Merge pull request #437 from Stefal/dev
Browse files Browse the repository at this point in the history
Merge dev branch to master
  • Loading branch information
Stefal authored Oct 6, 2024
2 parents 6a5a7ad + 5256c18 commit d799c5e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 11 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Changelog

## [2.6.2] - 2024-10-06
### Added
- Added Rtkbase gnss reverse proxy service in the diagnostic view. #421
### Fixed
- Remove firstboot service on Raspberry Pi image >= 2.5 which was causing services to stay stopped after a reboot. #436
- Reboot autorefresh timeout is now 90s. #426

## [2.6.1] - 2024-08-26
### Changed
- More tests before installing prebuilt RTKLib cli tools.
### Fixed
- Build rtklib if previous installed release is not working. #418
- Insert new release into settings.conf before restarting services. #411
- Insert new release number into settings.conf before restarting services. #411
- Custom web_port setting was not used. #419
- Cellular modem: nmcli connection was not updated after a switch to public ip address.

Expand Down
2 changes: 1 addition & 1 deletion settings.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[general]
# Version
version=2.6.1
version=2.6.2
# Rtkbase upgrade mandatory "checkpoint"
checkpoint_version=2.7.0
# User who runs str2str_file service
Expand Down
18 changes: 18 additions & 0 deletions tools/rtkbase_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,24 @@ upd_2.6.0() {
then
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
fi
upd_2.6.1 "$@"
}

upd_2.6.1() {
#Remove firstboot service from the Raspberry 2.5 and 2.6 images
#This service should have been removed after the first boot, but
# wasn't and was stopping various RTKBase services at each boot.
if [[ -f /etc/os-release ]]
then
source /etc/os-release
fi

if [[ $ID == debian ]] && systemctl list-units firstboot.service
then
systemctl disable --now firstboot.service
rm /lib/systemd/system/firstboot.service
systemctl daemon-reload
fi
}

#check if we can apply the update
Expand Down
17 changes: 9 additions & 8 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@
{"service_unit" : "str2str_rtcm_svr.service", "name" : "rtcm_svr"},
{'service_unit' : 'str2str_rtcm_serial.service', "name" : "rtcm_serial"},
{"service_unit" : "str2str_file.service", "name" : "file"},
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
{'service_unit' : 'rtkbase_archive.service', "name" : "archive_service"},
{'service_unit' : 'rtkbase_raw2nmea.service', "name" : "raw2nmea"},
{'service_unit' : 'rtkbase_gnss_web_proxy.service', "name": "RTKBase Reverse Proxy for Gnss receiver Web Server"}
]

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

#print("Getting services status")
try:
for service in services_list:
for service in services_list:
try:
#print("unit qui déconne : ", service["name"])
service["active"] = service["unit"].isActive()
service["status"] = service["unit"].status()
Expand All @@ -853,11 +854,11 @@ def getServicesStatus(emit_pingback=True):
else:
service["state_ok"] = None

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

services_status = []
for service in services_list:
Expand Down
2 changes: 1 addition & 1 deletion web_app/static/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ $(document).ready(function () {
$(this).prop("disabled", true);
$("#reboot-cancel-button").prop("disabled", true);
socket.emit("reboot device");
reboot_countdown(60, 0);
reboot_countdown(90, 0);
})

function reboot_countdown(remaining, count) {
Expand Down

0 comments on commit d799c5e

Please sign in to comment.