@michbeck100 See http://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode
If you don’t use const in your code it is most likely caused by one of the libraries your code is using.
[pimatic-echo] Control your pimatic devices using Amazon's echo
@michbeck100 See http://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode
If you don’t use const in your code it is most likely caused by one of the libraries your code is using.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
@mwittig That post says that with Node 4.x the error shouldn’t occur. Since I didn’t change anything on the plugin it must be one of the dependencies
@germanuser which Node version are you using?
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 said in [pimatic-echo] Control your pimatic devices using Amazon's echo:
That post says that with Node 4.x the error shouldn’t occur.
Yes, exactly. It is likely@germanuser has an older version of nodeJS installed.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
okay, how to update it ?
first delete node
sudo apt-get purge nodejs
whereis node
.sudo rm -r /usr/local/bin/node /usr/local/bin/npm /usr/local/lib/node_modules
node --version
. It should output command not found.reinstall with
wget https://nodejs.org/dist/v4.7.3/node-v4.7.3-linux-armv7l.tar.gz -P /tmp
cd /usr/local
sudo tar xzvf /tmp/node-v4.7.3-linux-armv7l.tar.gz --strip=1
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
thank you, i try it now
edit :
pi@raspberrypi ~ $ sudo service pimatic start
/etc/init.d/pimatic: 25: /etc/init.d/pimatic: pimatic.js: not found
pls. check this
https://pimatic.org/guide/getting-started/running/
and this
https://pimatic.org/guide/getting-started/autostarting/
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
im sorry, but this dont work
pi@raspberrypi ~ $ sudo node_modules/pimatic/pimatic.js
/home/pi/node_modules/pimatic/node_modules/bluebird/js/main/captured_trace.js:300
var firstStackLines = firstLineError.stack.split("\n");
^
illegal access
@germanuser i would suggest to install pimatic completely new in another directory while using the existing config.json.
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
New PR for tradfri support and “workaround” to improve discovering more than 16 devices (vie multiple scans) by randomizing discovery answers.
https://github.com/michbeck100/pimatic-echo/pull/20
@thex BTW Ikea’s Tradfri is supposed to get an Homekit Update later this year anyway. But thanks for your PR.
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
Hu guys,
i am trying to install this great plugin but i run in some errors i cannot get through.
I am running on a fresh and updatet raspian image on a pi3.
npm -v --> 2.15.11
node -v --> v4.6.2
uname -a --> Linux raspberrypi 4.9.34-v7+ #1013 SMP Sun Jun 25 17:06:40 BST 2017 armv7l GNU/Linux
Config:
<code>
{
"settings": {
"httpServer": {
"enabled": true,
"port": 80
},
"database": {
"deviceAttributeLogging": [
{
"deviceId": "*",
"attributeName": "*",
"type": "*",
"interval": "0",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "*",
"type": "continuous",
"interval": "5min",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "temperature",
"type": "number",
"expire": "1y"
},
{
"deviceId": "*",
"attributeName": "humidity",
"type": "number",
"expire": "1y"
}
],
"messageLogging": [
{
"level": "*",
"tags": [],
"expire": "7d"
},
{
"level": "debug",
"tags": [],
"expire": "0"
}
]
},
"authentication": {
"secret": "5tvZsGjlJZTYYxtl1yriP362v/euT00fQOvbeqPJ2QSXJJMvuRiTp1uyOV0uWrhAIEPhZ8DDO1XfG30e6bZe/g=="
},
"httpsServer": {},
"cors": {},
"gui": {}
},
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "mobile-frontend"
},
{
"plugin": "echo",
"active": true
}
],
"devices": [
{
"id": "sw1",
"name": "SW1",
"class": "DummySwitch",
"echo": {
"name": "EchoSwitch",
"additionalNames": [
"AnotherNameForMyEchoSwitch",
"YetAnotherName"
],
"exclude": true
}
}
],
"rules": [],
"pages": [
{
"id": "favourite",
"name": "Favourites",
"devices": [
{
"deviceId": "sw1"
}
]
}
],
"groups": [],
"users": [
{
"username": "admin",
"password": "admin",
"role": "admin"
}
],
"roles": [
{
"name": "admin",
"permissions": {
"pages": "write",
"rules": "write",
"variables": "write",
"messages": "write",
"events": "write",
"devices": "write",
"groups": "write",
"plugins": "write",
"updates": "write",
"database": "write",
"config": "write",
"controlDevices": true,
"restart": true
}
}
],
"variables": []
and .log output
11:24:35.364 2017-06-26 Monday
11:24:40.292 [pimatic] info: Starting pimatic version 0.9.40
11:24:42.207 [pimatic, ppm] info: 2.15.12
11:24:42.248 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8)
11:24:42.678 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.11)
11:24:43.291 [pimatic] info: Loading plugin: "pimatic-echo" (0.0.6)
11:24:44.566 [pimatic-cron] info: the time is: Mon Jun 26 2017 11:24:44 GMT+0000 (UTC)
11:24:44.574 [pimatic-echo] info: Starting pimatic-echo...
11:24:44.878 [pimatic] info: New device "SW1"...
11:24:44.950 [pimatic] error: Startup error: Error: Cannot add a route without any connections
11:24:44.950 [pimatic] error:> at Object.exports.unique.exports.contain.exports.reachTemplate.exports.assert.condition [as assert] (/home/pi/pimatic-app/node_modules/pimatic-echo/node_modules/hapi/node_modules/hoek/lib/index.js:736:11)
11:24:44.950 [pimatic] error:> at null.module.exports.internals.Plugin.parent.auth.internals.Plugin.register.internals.Plugin.route (/home/pi/pimatic-app/node_modules/pimatic-echo/node_modules/hapi/lib/plugin.js:556:10)
11:24:44.950 [pimatic] error:> at FauxMo.startVirtualDeviceEndpoints (/home/pi/pimatic-app/node_modules/pimatic-echo/lib/server.js:91:16)
11:24:44.950 [pimatic] error:> at FauxMo.init (/home/pi/pimatic-app/node_modules/pimatic-echo/lib/server.js:43:10)
11:24:44.950 [pimatic] error:> at new FauxMo (/home/pi/pimatic-app/node_modules/pimatic-echo/lib/server.js:28:10)
11:24:44.950 [pimatic] error:> at Framework.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-echo/echo.coffee:53:18)
11:24:44.950 [pimatic] error:> at Framework.g (events.js:260:16)
11:24:44.950 [pimatic] error:> at emitOne (events.js:82:20)
11:24:44.950 [pimatic] error:> at Framework.emit (events.js:169:7)
11:24:44.950 [pimatic] error:> at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:948:12
11:24:44.950 [pimatic] error:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
11:24:44.950 [pimatic] error:> at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
11:24:44.950 [pimatic] error:> at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
11:24:44.950 [pimatic] error:> at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10)
11:24:44.950 [pimatic] error:> at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18)
11:24:44.950 [pimatic] error:> at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:133:16)
11:24:44.950 [pimatic] error:> at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
11:24:44.950 [pimatic] error:> at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
11:24:44.950 [pimatic] error:> at processImmediate [as _immediateCallback] (timers.js:383:17)
11:24:44.954 [pimatic] info: exiting...
What is wrong? I am not getting it …
Thanks!
@FritzBox360 You have just one device and it’s set to exclude = true. So you have no devices at all. I didn’t test pimatic-echo without having any devices to be honestly. You could call this a bug, but i would say there’s no point in having no devices .
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 you are my hero! I am sitting here for hours with no luck …
unbelievable that was so simple - Thank you!
Maybe there should be a little hint in the info/readme that you need a device
Now everything is fine
@FritzBox360 I have a better idea: This will be fixed: https://github.com/michbeck100/pimatic-echo/issues/21
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
Hello Guys ,
Hello this plugin works very well, but how can I include more than one Alexa? The one Alexa has the IP address xx.xx.xx.xx which is stored in the plugin. How do I add more echoes?
Thanks for Helping
Greetings from Germany
you dont need to put the ip of your alexa device in the config.
it says:
“The ip address of the system running this plugin.”
it means the ip of the raspberry.
second alexa is just working out of the box. remember its connected over the cloud. all commands are available on all alexa devices.
@Felix-Haverkamp said in [pimatic-echo] Control your pimatic devices using Amazon's echo:
you dont need to put the ip of your alexa device in the config.
it says:
“The ip address of the system running this plugin.”
it means the ip of the raspberry.
second alexa is just working out of the box. remember its connected over the cloud. all commands are available on all alexa devices.
Ok, then I will try again. That would be even easier then … but the two Alexa must be connected with the same account or?
yes same account.