@vivathan as stated in the first post of this thread support for nodejs < 8 was dropped. Not sure which version you are using. There is no version 0.10.29
-
pimatic-hap@0.13.0
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 -
@michbeck100 this version is shown if I enter nodejs -v as v0.10.29 - so I assume this is version 10.29 and > 8.
-
@vivathan actually no, your version is from 2014: https://nodejs.org/en/blog/release/v0.10.29/
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 -
@michbeck100 shame over me . Yes - you are right.
I did a complete new installation as described in the Getting Started Guide. I installed node version v12.19.0 as described. After I installed pimatic (also as described) I started pimatic with the default config file. As soon as the database was build, I got the following error message. Any idea what’s going wrong? Also what’s strange is sqlite3@4.0.9 node_modules…in the log?
15:58:51.848 [pimatic, ppm] sqlite3@4.0.9 node_modules/sqlite3
15:58:51.849 [pimatic, ppm] ├── nan@2.14.2
15:58:51.851 [pimatic, ppm] └── node-pre-gyp@0.11.0 (semver@5.7.1, detect-libc@1.0.3, mkdirp@0.5.5, tar@4.4.13, nopt@4.0.3, rc@1.2.8, npm-packlist@1.4.8, rimraf@2.7.1, needle@2.5.2, npmlog@4.1.2)
Knex: run
$ npm install sqlite3 --save
Error: Cannot find module 'sqlite3’
Require stack:- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js
- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/index.js
- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/knex.js
- /home/pi/pimatic-app/node_modules/pimatic/lib/database.coffee
- /home/pi/pimatic-app/node_modules/pimatic/startup.coffee
- /home/pi/pimatic-app/node_modules/pimatic/pimatic.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._resolveFilename (/home/pi/pimatic-app/node_modules/pimatic/node_modules/module-alias/index.js:49:29)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Client_SQLite3._driver (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js:75:12)
at Client_SQLite3.initializeDriver (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/client.js:219:26)
at Client_SQLite3.Client (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/client.js:113:10)
at new Client_SQLite3 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js:58:20)
at Knex (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/index.js:60:34)
at /home/pi/pimatic-app/node_modules/pimatic/lib/database.coffee:79:17
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate (internal/timers.js:461:21)*
-
@vivathan sqlite3 is installed during startup. So you don’t have to install it on your. Normally pimatic will install it automatically.
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 -
@michbeck100 I didn’t install sqlite3 by myself. This is the error log as soon i have started pimatic the first time with sudo node_modules/pimatic/pimatic.js
-
@bertreb this one: Pimatic Installation
-
@bertreb with 10.22.1 the installation process finished. Will now use my old config.json I used before…