Read the statement by Michael Teeuw here.
Difficulty getting MMM-Transitfeed working
-
How to get MMM-transitfeed working on a new installation of MagicMirror (based on @sdetweil’s assistance)
These are the steps I went through to get the module working after encountering version mismatch errors:
Note that I was starting with a clean install of Raspberry PiOS. I made no changes prior to the steps outlined below:
First, I installed MagicMirror using Sam Detweil’s script:
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
Next, I installed the transitfeed module:
{ cd ~/MagicMirror/modules git clone https://github.com/bnitkin/MMM-transitfeed.git }
Then this reset the libraries:
{ cd ~/MagicMirror rm -rf node_modules git checkout package.json git checkout package-lock.json npm run install-mm }
I installed the electron rebuild package:
npm install @electron/rebuild
Next, I reset the module info:
{ cd ~/MagicMirror/modules/MMM-transitfeed rm -rf node_modules git checkout package.json git checkout package-lock.json npm install }
At this point, I installed gtfs:
{ cd ~/MagicMirror/modules/MMM-transitfeed npm install gtfs }
And lastly, I rebuilt sqlite3:
{ cd ~/MagicMirror/modules/MMM-transitfeed ../../node_modules/.bin/electron-rebuild }
Here I added the default config from the module’s github page to my config.js and started the mirror. It worked!
Many thanks to Sam for his patience, knowledge, and caring assistance.
-