UPDATE: Luis Chatriot has released a version (neDB 1.5) that fixes the power-cycle database purging issue. I tested on my own Pi and can confirm the database is not lost any longer. However this latest commit in the github master has yet to be published to NPM so until then, whoever wants to upgrade will need to do the following process manually:
-
cd /home/pi/moteino/node_modules/nedb - change folder to nedb package location
-
npm update - updates nedb and dependencies
- issue a
pkill node to recycle the gateway node app
-
npm outdated - this will show your current installed version is up to date (note this screenshot shows WANTED as 1.4.0 because 1.5 wasn't published to NPM yet):