I tried globalizing again:
pi@raspberrypi:~/pimatic-app/node_modules/pimatic $ sudo npm link
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated coffee-script@1.11.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
grunt-bump@0.8.0 node_modules/grunt-bump
coffee-errors@0.8.6 node_modules/coffee-errors
sinon@1.17.7 node_modules/sinon
├── formatio@1.1.1
├── samsam@1.1.2
├── lolex@1.3.2
└── util@0.10.3 (inherits@2.0.1)
blanket@1.2.3 node_modules/blanket
├── isarray@0.0.1
├── foreach@2.0.5
├── xtend@4.0.1
├── object-keys@1.0.11
├── falafel@1.2.0
└── acorn@1.2.2
grunt-mocha-test@0.13.3 node_modules/grunt-mocha-test
├── hooker@0.2.3
└── mkdirp@0.5.1 (minimist@0.0.8)
mocha@3.5.3 node_modules/mocha
├── browser-stdout@1.3.0
├── escape-string-regexp@1.0.5
├── growl@1.9.2
├── json3@3.3.2
├── he@1.1.1
├── supports-color@3.1.2 (has-flag@1.0.0)
├── commander@2.9.0 (graceful-readlink@1.0.1)
├── diff@3.2.0
├── debug@2.6.8 (ms@2.0.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── glob@7.1.1 (path-is-absolute@1.0.1, inherits@2.0.3, fs.realpath@1.0.0, inflight@1.0.6, once@1.4.0, minimatch@3.0.4)
└── lodash.create@3.1.1 (lodash._isiterateecall@3.0.9, lodash._basecreate@3.0.3, lodash._baseassign@3.2.0)
grunt-cli@1.2.0 node_modules/grunt-cli
├── grunt-known-options@1.1.0
├── nopt@3.0.6 (abbrev@1.1.1)
├── findup-sync@0.3.0 (glob@5.0.15)
└── resolve@1.1.7
grunt-coffeelint@0.0.16 node_modules/grunt-coffeelint
├── coffeelint-stylish@0.1.2 (text-table@0.2.0, chalk@1.1.3)
└── coffeelint@1.16.2 (ignore@3.3.7, strip-json-comments@1.0.4, coffee-script@1.11.1, resolve@0.6.3, glob@7.1.2, optimist@0.6.1)
supertest@2.0.1 node_modules/supertest
├── methods@1.1.2
└── superagent@2.3.0 (cookiejar@2.1.1, component-emitter@1.2.1, extend@3.0.1, mime@1.6.0, formidable@1.2.1, qs@6.5.1, debug@2.6.9, readable-stream@2.3.5, form-data@1.0.0-rc4)
jsonlint@1.6.2 node_modules/jsonlint
├── nomnom@1.8.1 (underscore@1.6.0, chalk@0.4.0)
└── JSV@4.0.2
grunt@1.0.2 node_modules/grunt
├── grunt-known-options@1.1.0
├── path-is-absolute@1.0.1
├── eventemitter2@0.4.14
├── rimraf@2.2.8
├── exit@0.1.2
├── nopt@3.0.6 (abbrev@1.1.1)
├── iconv-lite@0.4.19
├── coffeescript@1.10.0
├── minimatch@3.0.4 (brace-expansion@1.1.11)
├── glob@7.0.6 (inherits@2.0.3, fs.realpath@1.0.0, inflight@1.0.6, once@1.4.0)
├── findup-sync@0.3.0 (glob@5.0.15)
├── js-yaml@3.5.5 (esprima@2.7.3, argparse@1.0.10)
├── dateformat@1.0.12 (get-stdin@4.0.1, meow@3.7.0)
├── grunt-legacy-util@1.0.0 (getobject@0.1.0, async@1.5.2, hooker@0.2.3, which@1.2.14, underscore.string@3.2.3, lodash@4.3.0)
└── grunt-legacy-log@1.0.1 (hooker@0.2.3, underscore.string@3.3.4, grunt-legacy-log-utils@1.0.0, lodash@4.17.5)
/usr/local/bin/pimatic.js -> /usr/local/lib/node_modules/pimatic/pimatic.js
/usr/local/lib/node_modules/pimatic -> /home/pi/pimatic-app/node_modules/pimatic
status now seems ok
pi@raspberrypi:~ $ sudo service pimatic status
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic; generated; vendor preset: enabled)
Active: active (exited) since Wed 2018-03-21 17:39:26 CET; 45s ago
Docs: man:systemd-sysv-generator(8)
Process: 1695 ExecStart=/etc/init.d/pimatic start (code=exited, status=0/SUCCE
Mär 21 17:39:25 raspberrypi systemd[1]: Starting LSB: pimatic service...
Mär 21 17:39:26 raspberrypi pimatic[1695]: Started.
Mär 21 17:39:26 raspberrypi systemd[1]: Started LSB: pimatic service.
but the daemon.log
17:45:42.049 [pimatic] info: Starting pimatic version 0.9.42
17:45:42.512 [pimatic] error: Startup error: Error: Authentication is enabled, but no password has been defined for the user "admin". Please define a password for "admin" in the users section of the config.json file or disable authentication.
17:45:42.512 [pimatic] error:> at Framework._setupExpressApp (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:307:19)
17:45:42.512 [pimatic] error:> at new Framework (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:87:8)
17:45:42.512 [pimatic] error:> at /home/pi/pimatic-app/node_modules/pimatic/startup.coffee:94:17
17:45:42.512 [pimatic] error:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
17:45:42.512 [pimatic] error:> at Function.Promise.attempt.Promise.try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/method.js:39:29)
17:45:42.512 [pimatic] error:> at Object.startup (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:93:10)
17:45:42.512 [pimatic] error:> at run (/home/pi/pimatic-app/node_modules/pimatic/pimatic.js:15:24)
17:45:42.512 [pimatic] error:> at /home/pi/pimatic-app/node_modules/pimatic/lib/daemon.coffee:87:9
17:45:42.512 [pimatic] error:> at FSReqWrap.oncomplete (fs.js:82:15)
17:45:42.515 [pimatic] info: exiting...