When setting up Alexa it comes a point it asks for client id, secret client number, and device id. I have used security profile name, security profile id, and Amazon id. none work. where do I find device id?
Read the statement by Michael Teeuw here.
Posts
-
Device ID for Alexa
-
RE: Google Assistant w/ Magicmirror
@cowboysdude Ok got mic and speakers today got them working, now im down to
Then execute this on your MagicMirror terminal.(not via SSH)
cd /modules/MMM-Assistant
node google-auth.jsin the instructables. does this mean from the screen that is attached to pi, not vnc from the laptop?
-
RE: Google Assistant w/ Magicmirror
going to give it a try. I get the mic and speaker monday, so ill wait to try anything again.
-
Google Assistant w/ Magicmirror
http://www.instructables.com/id/Hands-Free-Google-Assistant-for-Raspberry-Pi/
This starts with a dev raspian, and adds Google assistant, Question is, if I do this then add magic mirror, will they work together? Or will it pop up a browser when asked for something. Then can I ask it to close the browser if it does that? Any one used this before?
I have tried three different tutorials for Alexa and cant get anything to work. So looking for other routes to have voices activated.
-
Module placement
Am I right in saying that middle_center, lower_third, bottom_center, bottom_bar all will list in order if you have something in each location?
-
RE: added new module/not showing up
@Mykle1 Thanks everyone, got it all together, got the New York Times feed at the bottom, interesting quotes in the middle. Time, date, calendar on left top. Weather top right. Now on to find a screen.
-
RE: added new module/not showing up
ok got that one to work, now trying to get stocks put in. the following is the config file,
/* Magic Mirror Config Sample
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
- For more information how you can configurate this file
- See https://github.com/MichMich/MagicMirror#configuration
*/
var config = {
address: “localhost”, // Address to listen on, can be:
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - “”, “0.0.0.0”, “::” to listen on any interface
// Default, when address config is left out, is “localhost”
port: 8080,
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],language: "en", timeFormat: 24, units: "imperial", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" },{
module: “calendar”,
header: “US Holidays”,
position: “top_left”,
config: {
calendars: [
{
symbol: "calendar-check-o ",
url: “webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics”
}
]
}
},{
module: “currentweather”,
position: “top_right”,
config: {
location: “Lompoc, US”,
locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
appid: “6ed9d867d3ba972c013edecdef1e685a”
}
},
{
module: “weatherforecast”,
position: “top_right”,
header: “Weather Forecast”,
config: {
location: “Lompoc,US”,
locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
appid: “6ed9d867d3ba972c013edecdef1e685a”
}
},
{
module: ‘stocks’,
position: ‘middle_center’,
config: {
stocks: ‘.DJI,MSFT,AAPL,GOOG,INTC,CICS,TSLA,FB’, // stock symbols
updateInterval: 37000 // update interval in milliseconds
}
},
{
module: “newsfeed”,
position: “bottom_bar”,
config: {
feeds: [
{
title: “New York Times”,
url: “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”
}
],
showSourceTitle: true,
showPublishDate: true
}
},
]};
[
{
module: “currentweather”,
position: “top_right”, // This can be any of the regions.
// Best results in left or right regions.
config: {
// See ‘Configuration options’ for more information.
location: “Amsterdam,Netherlands”,
locationID: “”, //Location ID from http://openweathermap.org/help/city_list.txt
appid: “abcde12345abcde12345abcde12345ab” //openweathermap.org API key.
}
}
]/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== “undefined”) {module.exports = config;}And the node start
Starting MagicMirror: v2.1.3
Loading config …
Loading module helpers …
No helper found for module: alert.
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper …
Module helper loaded: calendar
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper …
Module helper loaded: stocks
Initializing new module helper …
Module helper loaded: newsfeed
All module helpers loaded.
Starting server on port 8080 …
Server started …
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: stocks
stocks helper started …
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started …Ready to go! Please point your browser to: http://localhost:8080
Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
. it looks like it has started the stock helper and socket, but not showing on node screen, I changed the position to middle_center -
RE: added new module/not showing up
@Mykle1 no the weather module. used the link on the main page , I copied the code and inserted it in the config.js. and its not showing up. I can copy it and put it on here later tonight.
But I think i dropped the jeopardy one in there to, so i will check and up date when I get back to that project tonight. -
RE: added new module/not showing up
@Sean That module is not showing up on the screen though. I put the code in the config file with the { } on either end. so will have to look into it further when I have time.
-
RE: Setting up Magic Mirror remotely?
@Sean It ended up being one of the changes I made to set up the pi for the screensaver edit. I did try passwd though. thanks eveyone. I got it up and running. I have another post for a module problem, once I get that figured out, I will start on the hardware.
-
added new module/not showing up
Added the module to the config file, it shows in the list below that is there, but says no helper, What is this and how do I fix it?
Starting MagicMirror: v2.1.3
Loading config …
Loading module helpers …
No helper found for module: alert.
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper …
Module helper loaded: calendar
No helper found for module: compliments.
No helper found for module: MMM-JEOPARDY.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper …
Module helper loaded: newsfeed
All module helpers loaded.
Starting server on port 8080 …
Server started …
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started …Ready to go! Please point your browser to: http://localhost:8080
Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 -
RE: Setting up Magic Mirror remotely?
fixed the light display thing by rebooting with hdmi unplugged, then repluging it in, then rebooting, but the ssh message still there
-
RE: Setting up Magic Mirror remotely?
I got it to work, but then I went through the pi setup stuff to turn on the screensaver and wifi sleep, now when i tried to reboot, it says
[FAILED] Failed to start Light Display Manager
SSH is enabled and the default password for the ‘pi’ user has not been changed. This is a security risk - please login as the ‘pi’ user and type passwd to set a new password.
pi@raspberrypi: $How do i get it to continue to the desktop screen?
-
RE: Setting up Magic Mirror remotely?
ok read some on the repository, was able to run the serveronly and got this
Magic Mirror2
Please create a config file.
See README for more information.
If you get this message while your config file is already
created, your config file probably contains an error.
Use a JavaScript linter to validate your file.what next?
-
RE: Setting up Magic Mirror remotely?
Went back to the website and read, and found something about npm install, so ran that, it looked like it installed something, then ran npm start again and got:
magicmirror@2.1.3 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:570:32)
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.3 start:sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/MagicMirror/npm-debug.log
pi@raspberrypi:~/MagicMirror $npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
2 info using npm@3.10.10
3 info using node@v6.11.5
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, 'sh run-start.sh "dev$
12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
14 verbose stack Error: magicmirror@2.1.3 start:sh run-start.sh "dev"
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
[ Read 45 lines ] -
RE: Setting up Magic Mirror remotely?
tried again today with the hdmi screen, it got to where it said something about it was loading a file that had 715 at the end and froze. so restarted removed the folder, and restarted installing remotely. it got to loading depandencies and gave me this :
Installing dependencies …
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global jsonlint@1.6.2 should be installed with -guws@0.14.5 install /home/pi/MagicMirror/node_modules/uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0
Unable to install dependencies!tried starting npm remotely got this:
pi@raspberrypi:~ $ npm start
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.logtried starting from the hdmi screen same thing.
tried starting from with the magicmirror folder, got this:
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.1.3 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:570:32)
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.3 start:sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/MagicMirror/npm-debug.log
pi@raspberrypi:~/MagicMirror $
Can anyone point me in the direction to correct? I have already upgraded Node.js so i know it cant be that.npm-bug.log:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
2 info using npm@3.10.10
3 info using node@v6.11.5
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, ‘sh run-start.sh’ ]
12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
14 verbose stack Error: magicmirror@2.1.3 start:sh run-start.sh
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
[ Read 45 lines ] -
RE: Setting up Magic Mirror remotely?
@yawns Via VNC, It froze when it did the two warnings. the pi prompt never returned. I just shut it down. Had to leave. Will try again when I have time, next time via the hdmi screen.
-
Setting up Magic Mirror remotely?
Today I tried setting up my pi remotely from a laptop, It went thru a lot of stuff then all of a sudden gave two warnings, something about something needed loaded with -g. I didnt screen capture it. Do I have to have the hdmi screen hooked up and do it from there, or is doing it remotely ok?