As always, Sam - thanks so much! I did those changes, and it broke MMM-pi-hole which is stuck on loading. It also crashes magicmirror every 5 minutes or so. This happens even if I just change the address and allowed ip whitelist, comment out remote control and pistats. Any ideas?
Read the statement by Michael Teeuw here.
Posts made by nakulbende
-
RE: Help with MMM-Remote control
-
Help with MMM-Remote control
Hello - I am trying to install MMM-remote control to have some control over my raspberry pi. My config file looks like:
{ module: 'MMM-Remote-Control', //position: 'top_bar', config: { apiKey: "XXXXXXXXXXXXXXX", } },
And my header for the config file looks like:
address: "localhost", port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.114"],
I do not get a control page when I go to 192.168.1.15:8080/remote.html (which is my IP for Pi) from my computer (which has .1.14 IP). Is there something I am missing? I have tried this with or without the api key, which I know is optional for basic functionality.
-
RE: Want to display 2 modules side-by-side
Apologies that I cant upload the photos. For some reason, the forum is throwing an error. So I just made 2 instances of the repo - renamed everything from folder, .css and .js files inside the module folder. Then I went to .js file, and changed names to css target. Should that work?
-
Want to display 2 modules side-by-side
Hey all,
I have two MBTA modules in my mirror - made possible by cloning the repo twice with changed name. So, the config.json looks like:
// MBTA - Main x Emerson { module: 'MMM-MBTA', position: 'bottom_left', // This can be any of the regions. header: "MBTA: ", config: { apikey: '69a372ea82d748ad8531f55dd05d8df3', updateInterval: 60, stations: [ "Main St @ Emerson St" ], //[ "Davis Square" ] formatETA: true, maxEntries: 4, showOnly: ["Bus"], colorIcons: true, direction: 'Inbound', } }, // // MBTA - Davis { module: 'MMM-MBTA1', position: 'bottom_left', // This can be any of the regions. header: "MBTA: ", config: { apikey: '69a372ea82d748ad8531f55dd05d8df3', updateInterval: 65, stations: [ "Davis Square" ], formatETA: true, maxEntries: 4, showOnly: ["Subway"], colorIcons: true, direction: 'Inbound', } },
And the bottom of my mirror looks like:
I would like to have these modules side by side (see below). There are pretty complicated answers on this forum, and I could not get a simple straightforward way to do that with css. Is it possible?
PS: Bonus gratitude for solving the desaturation of one of the modules. They have renamed css, folders and .json files. But one shows colors, other appears only white.
-
RE: Issues after update - restoring?
I saw that - the new fitbit module looks great, I am going to try it later today. Thanks!
-
RE: Issues after update - restoring?
I am! It ran overnight without crashing, as soon as I disabled fitbit. Sad that I cant use it.
I am still having issues with ssh. I ran your update script again, but it said it is already on new version. Did my update go well, except that stupid error pi-hole stats threw?
-
RE: Issues after update - restoring?
@sdetweil Thank you so much for your time. If you are ever in Boston area, please let me buy you dinner. You have been a huge help and a great teacher.
I think I fixed the pihole-stats thing as you said. Here is the config.json entry
// Pihole stats { module: 'MMM-pihole-stats', position: 'bottom_bar', config: { apiURL: 'http://pi.hole/admin/api.php' } },
-
RE: MMM-Fitbit throwing an error
It is still giving me an error:
[09:34:25.018] [LOG] Whoops! There was an uncaught exception... [09:34:25.020] [ERROR] TypeError: PythonShell.run is not a function at Class.setCreds (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:32:15) at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:18:9) at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:113:11) at Socket.emit (events.js:182:13) at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12 at process._tickCallback (internal/process/next_tick.js:61:11) [09:34:25.026] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [09:34:25.029] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [09:34:25.136] [LOG] Initial run request recieved. [09:34:25.139] [LOG] Running getData.py [09:34:25.143] [LOG] Whoops! There was an uncaught exception... [09:34:25.146] [ERROR] TypeError: PythonShell is not a constructor at Class.getData (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:43:25) at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:22:9) at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:113:11) at Socket.emit (events.js:182:13) at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12 at process._tickCallback (internal/process/next_tick.js:61:11) [09:34:25.148] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [09:34:25.150] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
This is my output of npm install (usually the log for npm audit fix too):
pi@magicmirror:~/MagicMirror/modules/MMM-fitbit $ sudo npm install python-shell -f npm WARN using --force I sure hope you know what you are doing. npm WARN saveError ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json' npm WARN modules No description npm WARN modules No repository field. npm WARN modules No README data npm WARN modules No license field. + python-shell@1.0.8 updated 1 package and audited 391 packages in 3.359s 1 package is looking for funding run `npm fund` for details found 0 vulnerabilities
I was able to solve this by invoking
npm init
and generating a new package.json file. Now, the output to installing pythoin-shell waspi@magicmirror:~/MagicMirror/modules/MMM-fitbit $ sudo npm install python-shell -f npm WARN using --force I sure hope you know what you are doing. npm notice created a lockfile as package-lock.json. You should commit this file. + python-shell@1.0.8 added 1 package from 1 contributor and audited 1 package in 1.4s found 0 vulnerabilities
No cigar, I still get the above error on
npm install
-
MMM-Fitbit throwing an error
I followed the procedure - the module is reading client id and secret right, but failts in a following way.
[10:59:56.939] [LOG] Set credential request recieved. [10:59:56.945] [LOG] { client_id: 'XXXXXX', client_secret: 'XXXXXXXX' } [10:59:56.968] [LOG] Whoops! There was an uncaught exception... [10:59:56.969] [ERROR] TypeError: PythonShell.run is not a function at Class.setCreds (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:32:15) at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:18:9) at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11) at Socket.emit (events.js:182:13) at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12 at process._tickCallback (internal/process/next_tick.js:61:11) [10:59:56.974] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [10:59:56.977] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
It shows the icons in UI, but does not show stats. Also results in mirror crashing after a while. What am I missing?
-
RE: Issues after update - restoring?
{ "name": "mmm-pihole-stats", "version": "1.0.0", "description": "Pi-Hole stats for MagicMirror2", "repository": { "type": "git", "url": "git+https://github.com/sheyabernstein/mmm-pihole-stats.git" }, "keywords": [ "MagicMirror", "Pi-Hole", ], "author": "sheyabernstein", "license": "MIT", "bugs": { "url": "https://github.com/sheyabernstein/mmm-pihole-stats/issues" }, "homepage": "https://github.com/sheyabernstein/mmm-pihole-stats#readme" }