For all who still struggle with installing the test version, I’ve created a small script which basically follows my instructions. It installs to the directory pimatic-test
and it sets the pimatic password to admin
and the port to 8080
. I did test this on my Mac, but it should also work on your raspberry.
Please don’t forget to make it executable: chmod +x install-pimatic.sh
, before running.
#!/bin/sh
INSTALL_DIR=pimatic-test
PIMATIC_DIR=$INSTALL_DIR/node_modules/pimatic
mkdir ${INSTALL_DIR}
npm install pimatic-mobile-frontend@test --prefix ${INSTALL_DIR}
sed -i -e 's/"pimatic": "0\.9\.\*"//g' ${INSTALL_DIR}/node_modules/pimatic-mobile-frontend/package.json
npm install pimatic@test --prefix ${INSTALL_DIR} --production
sed -i -e 's/0\.9\.44-a/0.9.44/g' ${PIMATIC_DIR}/package.json
wget https://raw.githubusercontent.com/pimatic/pimatic/master/ppm.js
chmod +x ppm.js
mv ppm.js ${PIMATIC_DIR}/ppm.js
cp ${PIMATIC_DIR}/config_default.json ${INSTALL_DIR}/config.json
sed -i -e 's/"port": 80/"port": 8080/g' ${INSTALL_DIR}/config.json
sed -i -e 's/"password": ""/"password": "admin"/g' ${INSTALL_DIR}/config.json
After running you should be able to run pimatic with sudo node node_modules/pimatic/pimatic.js
as usual. If this works for you you can also use your own config.json. This script uses the default config.
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten