This howto is intended mainly for (plugin) developers, who are willing to test the node upgrade with their plugins. And if you find errors then you should fix them .
To install pimatic using node version 8 or higher I used my spare raspberry. You should do this, too, as you shouldn’t use your production system for these tests.
- Install node version manager (nvm) from here
pi@raspberrypi:~ $ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash pi@raspberrypi:~ $ source .bashrc
- Install node v8
pi@raspberrypi:~ $ nvm install 8
To check if node was installed:
pi@raspberrypi:~ $ node --version v8.14.1
- Install essentials as advised in the pimatic installation wiki
pi@raspberrypi:~ $ sudo apt-get install build-essential git
- Install pimatic branch from GitHub
pi@raspberrypi:~ $ npm install https://github.com/michbeck100/pimatic.git#node_v8 --prefix pimatic-app
- Copy config.json or use your own
pi@raspberrypi:~ $ cp node_modules/pimatic/config_default.json config.json
- Run pimatic
pi@raspberrypi:~ $ node node_modules/pimatic/pimatic.js
I will extend this howto, as I find additional steps that are needed.
It would be great, if you could not bloat this thread with “I get an error on installing” messages, but use another post for this, maybe this one.