Read the statement by Michael Teeuw here.
MMM-MyCommute not showing
-
@semihbakrac that message says there is a copy of MagicMirror running already
open a terminal window
do
pm2 statuspm2 stop all
pm2 restart xxx
where xxx is the line number or name on the line fo the app you want to restart -
@sdetweil Why are there two? Also Mycommute does not appear on the screen
-
@semihbakrac why are there two… use did the setup manually and created the mm one
and then you used my script and replied yes to pm2, and I created oneyou can delete either
pm2 delete xxx
pm2 save -
@semihbakrac pm2 separates the errors and good output into two different files
and displays them separately when using the pm2 logs command
that is the good output
I always recommend NOT using pm2 when changing config, adding a module
pm2 stop all cd ~/MagicMirror npm start
once you have it running like you want
then pm2 start xxx
-
@sdetweil Only mycommute doesn’t work. npm log is this
semihbakrac@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.27.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2024-05-18 22:59:01.677] [LOG] Starting MagicMirror: v2.27.0 [2024-05-18 22:59:01.735] [LOG] Loading config ... [2024-05-18 22:59:01.743] [LOG] config template file not exists, no envsubst [2024-05-18 22:59:01.755] [LOG] Loading module helpers ... [2024-05-18 22:59:01.758] [LOG] No helper found for module: alert. [2024-05-18 22:59:02.424] [LOG] Initializing new module helper ... [2024-05-18 22:59:02.425] [LOG] Module helper loaded: updatenotification [2024-05-18 22:59:02.427] [LOG] No helper found for module: clock. [2024-05-18 22:59:02.822] [LOG] Initializing new module helper ... [2024-05-18 22:59:02.824] [LOG] Module helper loaded: calendar [2024-05-18 22:59:02.825] [LOG] No helper found for module: weather. [2024-05-18 22:59:03.625] [LOG] Initializing new module helper ... [2024-05-18 22:59:03.626] [LOG] Module helper loaded: MMM-MyCommute [2024-05-18 22:59:04.306] [LOG] Initializing new module helper ... [2024-05-18 22:59:04.307] [LOG] Module helper loaded: MMM-MyPrayerTimes [2024-05-18 22:59:04.308] [LOG] All module helpers loaded. [2024-05-18 22:59:04.322] [LOG] Starting server on port 8080 ... [2024-05-18 22:59:07.200] [LOG] Server started ... [2024-05-18 22:59:07.203] [LOG] Connecting socket for: updatenotification [2024-05-18 22:59:07.205] [LOG] Starting module helper: updatenotification [2024-05-18 22:59:07.207] [LOG] Connecting socket for: calendar [2024-05-18 22:59:07.209] [LOG] Starting node helper for: calendar [2024-05-18 22:59:07.211] [LOG] Connecting socket for: MMM-MyCommute [2024-05-18 22:59:07.213] [LOG] ====================== Starting node_helper for module [MMM-MyCommute] [2024-05-18 22:59:07.215] [LOG] Connecting socket for: MMM-MyPrayerTimes [2024-05-18 22:59:07.217] [LOG] Starting node_helper for: MMM-MyPrayerTimes [2024-05-18 22:59:07.219] [LOG] Sockets connected & modules started ... [2024-05-18 22:59:07.870] [LOG] Launching application. [2024-05-18 22:59:10.593] [INFO] System information: ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false ### OS: platform: linux; distro: Raspbian GNU/Linux; release: 12; arch: arm; kernel: 6.6.28+rpt-rpi-v7 ### VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 20.8.0; npm: 10.1.0; pm2: 5.3.1 ### OTHER: timeZone: Europe/Istanbul; ELECTRON_ENABLE_GPU: undefined [2024-05-18 22:59:13.101] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/semih342bakrac%40gmail.com/private-c2fb4dce86cf995b9f980010988f5bf9/basic.ics - Interval: 604800000 [2024-05-18 22:59:13.397] [INFO] updatenotification: Updater Class Loaded! [2024-05-18 22:59:13.399] [INFO] updatenotification: Checking PM2 using... [2024-05-18 22:59:13.404] [INFO] Checking git for module: MMM-MyCommute [2024-05-18 22:59:13.468] [INFO] Checking git for module: MMM-MyPrayerTimes [2024-05-18 22:59:13.539] [INFO] Checking git for module: MagicMirror [2024-05-18 22:59:13.592] [INFO] updatenotification: [PM2] You are not using pm2 [2024-05-18 22:59:13.811] [LOG] 200[object Object] [2024-05-18 22:59:14.196] [INFO] Calendar-Fetcher: Broadcasting 0 events from https://calendar.google.com/calendar/ical/semih342bakrac%40gmail.com/private-c2fb4dce86cf995b9f980010988f5bf9/basic.ics.
-
@semihbakrac said in MMM-MyCommute not showing:
MMM-MyCommute
your config looks something like this… with proper start and end and the
google api key{ module: 'MMM-MyCommute', position: 'top_left', config: { apikey: 'API_KEY_FROM_GOOGLE', origin: '65 Front St W, Toronto, ON M5J 1E6', startTime: '00:00', endTime: '23:59', hideDays: [0,6], destinations: [ { destination: '14 Duncan St Toronto, ON M5H 3G8', label: 'Air Canada Centre', mode: 'walking', color: '#82E5AA' }, { destination: '317 Dundas St W, Toronto, ON M5T 1G4', label: 'Art Gallery of Ontario', mode: 'transit' }, { destination: '55 Mill St, Toronto, ON M5A 3C4', label: 'Distillery District', mode: 'bicycling' }, { destination: '6301 Silver Dart Dr, Mississauga, ON L5P 1B2', label: 'Pearson Airport', avoid: 'tolls' } ] } }
-
@sdetweil my config
{ module: 'MMM-MyCommute', position: 'top_right', header: 'Tahmin Edilen Varis Suresi', config: { apikey: 'myAPI', origin: 'Menderes, 381. Sk. 13-1, 34225 Esenler/Istanbul', startTime: '00:00', endTime: '23:59', hideDays: [0,6], destinations: [ { destination: 'Sekerpinar, Otomotiv Cd. No:2, 41435 CAYIROVA/Cayirova/Kocaeli', label: 'Araba', mode: 'driving', alternatives: true, }, { destination: 'Sekerpinar, Otomotiv Cd. No:2, 41435 CAYIROVA/Cayirova/Kocaeli', label: 'Toplu Tasima', mode: 'transit' }, { destination: 'Halicioglu, 34445 Beyoglu/Istanbul', label: 'Servis Kalkis Noktasi', mode: 'transit' }, ] } },
-
@semihbakrac said in MMM-MyCommute not showing:
hideDays: [0,6],
so, you hid all the days??
I edited out everything but this module def
-
@sdetweil omg. My brain is not working. I’m sorry to keep you busy :((( . Thanks for support
-
-
-
@sdetweil I can only color the driving icon. I cannot color other icons. Bus,subway etc. The application acts as if the config file does not exist and only the warning screen appears. Do you know anything about this?