Solved Gmailfeed
-
Hello everyone
Looking for help with Gmailfeed . Everything was working perfectly until I decided to add Google assistant when I upgraded to the newest v3 is when I ran into a problem.
when I put Gmailfeed back in the config file and start magicmirror. I get a black screen
I’m using Linux mintAny help would be appreciated
-
Hi, are you sure that is related to GA ?
do you have some logs with GA error ?but … I don’t think that it’s possible to have a black screen with GA because there is some protection for this
So, I try this solution for inspect:
she does not answer meCan you tell me more please ?
-
I actually fixed the problem by uninstalled GA completely and then I had to do a npm install in the magicmirror directory
then I got my magicmirror back.
then I proceeded to reinstall GA and everything is working perfectly now.
so I don’t know what happened but the procedures I did above seem to fix itBut just so you know. All I did was the first time install GA and the detector and when I did that everything went crazy
-
I don’t know do you says by uninstalling
After, if you delete the directory to take the same source (because source is … the source and no change on it), it’s a lost time
just use npn tool (npm run update or npm run rebuild) but without log… I can’t see what happen
All modules send log on start ! just read it (you can have warn, error, info,…) -
Well like I said I’m confused. I don’t know what happened. I have done the run updates run rebuild. I did all that and I couldn’t get it to stop giving me a black screen.
I think something just went wrong when I was installing GA and it corrupted magic mirror. That’s the only thing I can think of. I could be wrong. I’m not an expert. I am a beginner trying to learn all this
the only thing that restored my magic mirror was npm install . After that I was able to reinstall GA I did check all my logs and could not find any errors but again I am a beginner so I am learning -
Let me look in Gmail feed and see if there’s a login there. That might explain something
-
I did find this that might help
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘view’ ]
2 info using npm@6.14.13
3 info using node@v14.17.2
4 verbose npm-session c82d50e93b789ca6
5 http fetch GET 404 https://registry.npmjs.org/MMM-GoogleAssistant 314ms
6 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/MMM-GoogleAssistant - Not found
6 verbose stack at /usr/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:117:15
6 verbose stack at processTicksAndRejections (internal/process/task_queues.js:95:5)
7 verbose statusCode 404
8 verbose pkgid MMM-GoogleAssistant@latest
9 verbose cwd /home/ray/MagicMirror/modules/MMM-GoogleAssistant
10 verbose Linux 5.4.0-77-generic
11 verbose argv “/usr/bin/node” “/usr/bin/npm” “view”
12 verbose node v14.17.2
13 verbose npm v6.14.13
14 error code E404
15 error 404 ‘MMM-GoogleAssistant’ is not in the npm registry.
15 error 404 name can no longer contain capital letters
16 error 404
17 error 404 ‘MMM-GoogleAssistant@latest’ is not in the npm registry.
18 error 404 Your package name is not valid, because
19 error 404 1. name can no longer contain capital letters
20 error 404 Note that you can also install from a
21 error 404 tarball, folder, http url, or git url.
22 verbose exit [ 1, true ]
-
This error happen when you search MMM-GoogleAssistant on NPM …
I think, you use this command:npm install MMM-GoogleAssistant
So… i think you use some bad command
-
Could be
I just found a typo in the config file that I’m going to change. It is as follows
let config should be var config . Is that correctlet config = {
address: “localhost”, // Address to listen on, can be:
electronOptions: { // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
webPreferences: { // - another specific IPv4/6 to listen on a specific interface
webviewTag: true // - “0.0.0.0”, “::” to listen on any interface
} // Default, when address config is left out or empty, is “localhost”
},
port: 8080, -
I use 4 platforms (2 RPI3b+, 1 RPI4, 1 Debian linux) don’t worry about this
1 RPI 3b+ at work, running mm2.14
1 RPI 3b+ at secondary home, running mm2.15
1 RPI 4 at home, running mm2.16
my dev platform, running all dev branch (mm too)note: strange your comments
-
So I fixed the error. I’m assuming that I was correct. It should be (var) and everything is working correctly
-
I appreciate you taking the time and helping me out
-
var
andlet
is +/- the sameThe main differance is the propagation inside the file.
in this case for config.js file, this are no problem about this -
Okay thanks for the input