I’m running Raspbian GNU/Linux 9 (stretch) on a Raspi 3B.
-
Pimatic & Node 8.0
-
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
don’t know. after my fail with v10, I try v4.9.1 and there was an error with some stuff.
I just read something need node >=6.
then I try successful v8 and after i retry v10.15.3 agian.
I notice with v8 and v10 I need to start piratic two times. second time to install sqlite.
with the first run I get many errors. -
okay with v10.15.3 hap doesn’t work correct. I get for every device an error “hap is not property” and there is no “hap-database” bouild.
i will try now v8.9.4.I’m slowly losing my motivation for pimatic. I use it for three years now and run from time to time over and over again into trouble. and that’s not a buster thing now. I don’t know how pimatic could be interesting for a beginner.
-
This post is deleted!
-
@00lex said in Pimatic & Node 8.0:
I’m slowly losing my motivation for pimatic. I use it for three years now and run from time to time over and over again into trouble.
I think you’re far too negative here which I find rather disappointing. Your are running on a new SBC which is on the market just a few days with a new OS version which has not yet 100% adapted to the hardware. Several reports like the Heise review already indicated that early adopters may expect issues in the first weeks as drivers support is immature.
I must also say that remarks like “there was an error with some stuff” and “many plugin do not work” or making “predictions” are not helpful at all to the community.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
youre right. its hot and I actually want to enjoy my free time. however v4.9.1 works as on my rpi3 @stretch on a rpi4@buster. im happy again
-
My RPI4 arrived today and I started a tested a quick test drive. Observations:
- I started with Raspbian Buster Lite as I am running the system headless mode anyway. The system image already is outdated and needs to be upgraded (
sudo apt update && sudo apt upgrade -y
). The upgrade contains various driver and kernel updates. - As you already reported the sqlite3 installation failed due to a build error. I have updated the package to use the latests sqllite3 release and the build succeeded. Following this a new version of pimatic has been published
- There are still some hiccups when running pimatic node v10 like I had “undefined” error when trying to add the first device to the group view. My advice is to clear the cache before running a new pimatic setup in the browser to avoid such issues.
Btw, Pimatic is running super-fast on RPI4. In particular, network and memory IO is a lot faster. Plugin installation is just a matter of seconds
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
- I started with Raspbian Buster Lite as I am running the system headless mode anyway. The system image already is outdated and needs to be upgraded (
-
what I learned in the past years is to make a backup before update pimatic. todays backup breaks my installation
root@home:~# service pimatic status
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic; generated)
Active: failed (Result: exit-code) since Thu 2019-06-27 21:11:17 CEST; 48s ago
Docs: man:systemd-sysv-generator(8)
Process: 368 ExecStart=/etc/init.d/pimatic start (code=exited, status=1/FAILURE)Jun 27 21:11:17 home pimatic[368]: at require (internal/module.js:12:17)
Jun 27 21:11:17 home pimatic[368]: at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/pimatic.js:3:19)
Jun 27 21:11:17 home pimatic[368]: at Module._compile (module.js:409:26)
Jun 27 21:11:17 home pimatic[368]: at Object.Module._extensions…js (module.js:416:10)
Jun 27 21:11:17 home pimatic[368]: at Module.load (module.js:343:32)
Jun 27 21:11:17 home pimatic[368]: at Function.Module._load (module.js:300:12)
Jun 27 21:11:17 home pimatic[368]: at Function.Module.runMain (module.js:441:10)
Jun 27 21:11:17 home systemd[1]: pimatic.service: Control process exited, code=exited, status=1/FAILURE
Jun 27 21:11:17 home systemd[1]: pimatic.service: Failed with result ‘exit-code’.
Jun 27 21:11:17 home systemd[1]: Failed to start LSB: pimatic service. -
before I recover my sd card, I try something.
backup pimatic-database.sqlite hap-database and config.json, delte pimatic-app, reinstall and copy files back. everything works and its the new version.
It would be great if we can chose between stable and testing for updates.
btw. do you installed hap on your rpi4? and which version of node v10 do you use?
-
@00lex said in Pimatic & Node 8.0:
service pimatic status
The error output of the service wrapper is always truncated to a few lines and in your case only contains an excerpt of a stack trace. Please check the pimatic-daemon.log and post the the full error message. Thanks
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@00lex said in Pimatic & Node 8.0:
btw. do you installed hap on your rpi4? and which version of node v10 do you use?
I don’t use hap and I am using node v10.16.0 which is in the current LTS version.
See also https://pimatic.teamemo.com/Guide/Getting-Started"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hi, I would like also to jump in here.
Just installed also Buster on my 3B Test-Raspi. This happend more accidentially, as I took the noobs image with GNU/Linux 9 (stretch), which then seems to update, without confirming it, during the installation, to Buster, … however I’m definitely not an expert on this install-routines
I followed then again the Installation Wiki, which first worked fine, incl. a test start with a fresh config.json.
So directly installed node 10.16.0 and pimatic 0.9.49.
Also all additions have been installed (~10 min), exactly like the last time.
Did a test and pimatic runs and was also available via WEB frontend.But at the point, where pimatic should have become globally, the problems seems to start:
The result fromsudo npm link
looks as follows:npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated jayschema@0.3.2: this project is no longer maintained npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead npm WARN deprecated superagent@2.3.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released. npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3 npm WARN deprecated coffee-script@1.11.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated samsam@1.1.3: This package has been deprecated in favour of @sinonjs/samsam npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm ERR! code 128 npm ERR! Command failed: git clone --depth=1 -q -b master https://github.com/sweetpi/cassert.git /root/.npm/_cacache/tmp/git-clone-021bf075 npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-021bf075' nicht erstellen.: Keine Berechtigung npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-27T19_45_15_323Z-debug.log
Especially the ‘ERR!’ in the end definitely have not been shown in my installation last weekend (3B, Stretch, pimatic 0.9.48 on node 10.15.3).
The named log file in the last line, I couldn’t have a look at yet, as I’m not able to go bycd ./npm
into the directory, although I changed rights withsudo -s
. The answer isDatei oder Verzeichnis nicht gefunden
However, after the ERR messages I tried to start pimatic, but that doesn’t work.
Response onsudo pimatic.js start
issudo: pimatic.js: Befehl nicht gefunden
I stop here for today I hope for some advise. It is not urgent, as it is my Test Raspi, but I was going to implement there the first time a ConBee II stic
Regards
Pedder -
@pedder said in Pimatic & Node 8.0:
Especially the ‘ERR!’ in the end definitely have not been shown in my installation last weekend
Seems to be a permission problem. Try
cd ./node_modules/pimatic sudo npm link --unsafe-perm
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
ok I try for fun v10.16.0 on a fresh sd card and hap definitely doesn’t work on anything other than v.4.
just for understanding. why someone make a plugin which he doesn’t even use? -
@00lex said in Pimatic & Node 8.0:
just for understanding. why someone make a plugin which he doesn’t even use?
I’m developing pimatic-hap, and I’m also using it. But I didn’t use node 10, yet. And you are the first AFAIK, who complains that it doesn’t work with node 10.
So if you have problems using it, please file an issue at GitHub, but please don’t run around and rage against pimatic or single developers. You are always invited to fix the problems by yourself. Thats the idea of open source. If you want to have more support you better stick to paid solutions, which are BTW much more expensive than free.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 -
is it today hot in your location?
I sad “just for understanding”! it wasn’t a rant and we have already seen us on git.
but the combination of bugs, plugin doesnt run on v10, last update in 2017, ists not mentioned in this thread (https://forum.pimatic.org/topic/4509/node-v8-plugin-compatibility) and the dev say he doesnt use it is a legit reason to ask this question. okay, now I know you just use it not yet on v10weitermachen!
ps. but when you use this plugin general, its unnecessary to open a issue on git
-
okay got it!
Cannot find module ‘hap-nodejs/node_modules/debug’
I just copied this folder from my 4.9.1 installation and everything works with v10.16.0.
…hap-database is build correctlyif someone have issues with node upgrades follows the unlink section from
https://pimatic.teamemo.com/Guide/Getting-Started
and this instructions to remove node
http://amcositsupport.blogspot.com/2016/07/to-completely-uninstall-node-js-from.htmlafter reinstallation you can use your old config and hap-database
-
@mwittig said in Pimatic & Node 8.0:
Seems to be a permission problem. Try
cd ./node_modules/pimatic
sudo npm link --unsafe-permTested it: Sorry, same result
npm ERR! code 128 npm ERR! Command failed: git clone --depth=1 -q -b master https://github.com/sweetpi/cassert.git /root/.npm/_cacache/tmp/git-clone-f34fe294 npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-f34fe294' nicht erstellen.: Keine Berechtigung npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-28T12_55_31_166Z-debug.log
… als wondering about the result to start pimatic, as pimatic.js definitely is in the directory:
pi@raspberrypi:~/pimatic-app/node_modules/pimatic $ dir -all insgesamt 132 drwxr-xr-x 7 pi pi 4096 Jun 27 21:28 . drwxr-xr-x 310 pi pi 12288 Jun 27 21:39 .. -rw-r--r-- 1 pi pi 384 Jun 27 13:27 blacklist.json -rw-r--r-- 1 pi pi 5704 Jun 27 13:27 coffee-cache.js -rw-r--r-- 1 pi pi 1106 Jun 27 13:27 config_default.json -rw-r--r-- 1 pi pi 18662 Jun 27 13:27 config-schema.coffee -rwxr-xr-x 1 pi pi 6666 Jun 27 13:27 device-config-schema.coffee -rw-r--r-- 1 pi pi 2924 Jun 27 13:27 Gruntfile.coffee -rw-r--r-- 1 pi pi 1883 Jun 27 13:27 HISTORY.md drwxrwxrwx 3 root root 4096 Jun 27 21:40 .js drwxr-xr-x 2 pi pi 4096 Jun 27 21:24 lib -rw-r--r-- 1 pi pi 17990 Jun 27 13:27 LICENSE drwxr-xr-x 2 pi pi 4096 Jun 27 21:24 locales -rw-r--r-- 1 pi pi 3624 Jun 27 21:25 package.json -rwxr-xr-x 1 pi pi 944 Jun 27 13:27 pimatic.js drwxr-xr-x 2 pi pi 4096 Jun 27 21:24 ppm -rwxr-xr-x 1 pi pi 2253 Jun 27 13:27 ppm.js -rw-r--r-- 1 pi pi 4481 Jun 27 13:27 README.md -rw-r--r-- 1 pi pi 3727 Jun 27 13:27 startup.coffee drwxr-xr-x 2 pi pi 4096 Jun 27 21:24 test
-
@pedder said in Pimatic & Node 8.0:
_cacache
Too bad. Please try th following:
sudo -s npm cache clean
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law