@S7EN okay here is a workaround. It is up to you to test it further.
Copy the commands and it should be working.
CD into pimatic node_modules folder;
cd /home/pi/pimatic-app/node_modules/
Download the archive, and it seems the NPM version is outdated;
sudo wget https://git.cryhost.de/crycode/pimatic-netcheck/repository/master/archive.tar.gz
Create the working dir;
sudo mkdir pimatic-netcheck
Extract the archive into the new folder;
sudo tar -xvzf archive.tar.gz -C pimatic-netcheck
Replace files;
cd pimatic*
sudo cp -r * ..
cd ..
sudo rm -r pimatic-netcheck-master*
Install the archive;
sudo npm install
You should get 3 warning messages about peerdependencies, that is no problem.
Wait a couple of minutes… (i think it is downloading pimatic as a dependencie and that takes a while)
If done correct, when you type the command ls
you should now see a node_modules folder that contains “pimatic” and “ping”.
Now start pimatic and check the log, it should build a coffee file without any errors;
sudo pimatic.js
13:33:56.373 [pimatic] Loading plugin: "pimatic-netcheck" (1.0.1)
coffee-cache: compiling coffee-script file "netcheck.coffee"...Done
coffee-cache: compiling coffee-script file "netcheck-config-schema.coffee"...Done
13:34:12.166 [pimatic-sunrise]
If it doesnt apear, enable the plugin under the plugin section of the pimatic gui.
Now, it should work :-d
I dont knop if this is the best way to do this, so if any dev thinks otherwise, please add to this post!