Testing prerelease OTA updates
Pages 40
Clone this wiki locally
Post-1.0
Starting with version 1.0, users can now set the updates.allowPrerelease
config flag in ~/webthings/gateway/config/default.js
in the source. After doing so, restart the gateway to allow updating via the UI (Settings -> Updates). The automatic OTA updater will also pick up prerelease updates after setting this flag. The config file may get overwritten after an update has been applied.
Note: You should also be able to override the value in ~/.webthings/config/local.json
but it's not currently working.
Pre-1.0
There is one code change required on your local gateway to test the prerelease OTA update.
Remove !release.prerelease
from tools/check-for-update.js
(line 17) making it look like:
return !release.draft;
Now run:
cd /home/pi/mozilla-iot/gateway
/home/pi/mozilla-iot/gateway/tools/check-for-update.sh
Please report any issues you encounter with this process on GitHub. Note that this process does take around 7-10 minutes to complete depending on your Raspberry Pi's processor power and time it takes to download the update.