<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Difficulty getting MMM-Transitfeed working]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/17479/mmm-transitfeed-upcoming-departure-board-for-most-transit-agencies">MMM-transitfeed - upcoming departure board for most transit agencies</a></p>
<p dir="auto">I tried to install this a while back but ran into problems.  I had difficulty initially because when I tried to install it, I got a message back saying the gtfs stuff needed a newer node.js.  I tried updating it and that went…  badly.  I managed to get things back the way they were and gave up for a bit.  (Had a lot going on in my life at the time.)</p>
<p dir="auto">I’ve decided to try again (I want to get it working for my son who goes to school/work on public transit) and this time I set up a fresh install.  New Raspberry PiOS, new MM install, nothing else done.  Here’s what I’ve done so far:</p>
<pre><code># Update system

sudo apt update
sudo apt full-upgrade

# Install MagicMirror

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

# update Node/NPM

sudo npm install -g n
sudo n lts
sudo n latest
sudo n prune

# Install transitfeed

cd ~/MagicMirror/modules
git clone https://github.com/bnitkin/MMM-transitfeed.git

# Install gtfs

cd ~/MagicMirror                     # Enter magicmirror project directory
npm uninstall gtfs-realtime-bindings # Now part of gtfs
npm install gtfs --save-dev          # Force update to latest version

# Update better-sqlite3

cd ~/MagicMirror
rm -r node_modules/better-sqlite3/
npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force

</code></pre>
<p dir="auto">And here’s the error I’m getting:</p>
<pre><code>[2024-06-21 11:14:44.933] [ERROR] (node:53839) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 116. This version of Node.js requires
NODE_MODULE_VERSION 121. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2214)
    at Module._extensions..node (node:internal/modules/cjs/loader:1343:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2214)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at bindings (/home/pi/MagicMirror/node_modules/bindings/bindings.js:112:48)
    at new Database (/home/pi/MagicMirror/node_modules/better-sqlite3/lib/database.js:48:64)
    at setupDb (file:///home/pi/MagicMirror/node_modules/gtfs/lib/db.js:10:14)
    at openDb (file:///home/pi/MagicMirror/node_modules/gtfs/lib/db.js:31:12)
    at Module.importGtfs (file:///home/pi/MagicMirror/node_modules/gtfs/lib/import.js:676:16)
    at Class.startup (/home/pi/MagicMirror/modules/MMM-transitfeed/node_helper.js:48:29)
    at async Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-transitfeed/node_helper.js:33:52)
(Use `electron --trace-warnings ...` to show where the warning was created)
[2024-06-21 11:14:44.934] [ERROR] (node:53839) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
</code></pre>
<p dir="auto">It seems like I need an even newer version of better_sqlite3?   Or maybe an older version of node.js?</p>
]]></description><link>https://forum.magicmirror.builders/topic/18817/difficulty-getting-mmm-transitfeed-working</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 19:05:48 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18817.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jun 2024 18:36:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 22:14:07 GMT]]></title><description><![CDATA[<p dir="auto">How to get MMM-transitfeed working on a new installation of MagicMirror (based on <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>’s assistance)</p>
<p dir="auto">These are the steps I went through to get the module working after encountering version mismatch errors:</p>
<p dir="auto">Note that I was starting with a clean install of Raspberry PiOS.  I made no changes prior to the steps outlined below:</p>
<p dir="auto">First, I installed MagicMirror using Sam Detweil’s script:</p>
<pre><code>bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
</code></pre>
<p dir="auto">Next, I installed the transitfeed module:</p>
<pre><code>{
  cd ~/MagicMirror/modules
  git clone https://github.com/bnitkin/MMM-transitfeed.git
}
</code></pre>
<p dir="auto">Then this reset the libraries:</p>
<pre><code>{
  cd ~/MagicMirror
  rm -rf node_modules
  git checkout package.json
  git checkout package-lock.json
  npm run install-mm
}
</code></pre>
<p dir="auto">I installed the electron rebuild package:</p>
<pre><code>npm install @electron/rebuild
</code></pre>
<p dir="auto">Next, I reset the module info:</p>
<pre><code>{
  cd ~/MagicMirror/modules/MMM-transitfeed
  rm -rf node_modules
  git checkout package.json
  git checkout package-lock.json
  npm install
}
</code></pre>
<p dir="auto">At this point, I installed gtfs:</p>
<pre><code>{
  cd ~/MagicMirror/modules/MMM-transitfeed
  npm install gtfs
}
</code></pre>
<p dir="auto">And lastly, I rebuilt sqlite3:</p>
<pre><code>{
  cd ~/MagicMirror/modules/MMM-transitfeed
  ../../node_modules/.bin/electron-rebuild
}
</code></pre>
<p dir="auto">Here  I added the default config from the module’s github page to my config.js and started the mirror.  It worked!</p>
<p dir="auto">Many thanks to Sam for his patience, knowledge, and caring assistance.</p>
]]></description><link>https://forum.magicmirror.builders/post/118506</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118506</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Wed, 26 Jun 2024 22:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 21:57:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> ok, another learning thing…</p>
<p dir="auto">find the message that best articulates the solution, click the 3 dots to the lower right and select “Mark this post as the correct answer”</p>
<p dir="auto">you open it, you close it…</p>
]]></description><link>https://forum.magicmirror.builders/post/118503</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118503</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Jun 2024 21:57:47 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 18:37:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/118501">Difficulty getting MMM-Transitfeed working</a>:</p>
<blockquote>
<p dir="auto">is this closeable?</p>
</blockquote>
<p dir="auto">Definitely.  Thanks again!</p>
]]></description><link>https://forum.magicmirror.builders/post/118502</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118502</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Wed, 26 Jun 2024 18:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 18:26:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> said in <a href="/post/118499">Difficulty getting MMM-Transitfeed working</a>:</p>
<blockquote>
<p dir="auto">how to get it to work with my local transit system’s feeds.</p>
</blockquote>
<p dir="auto">that I have no clue on…</p>
<p dir="auto">is this closeable?</p>
]]></description><link>https://forum.magicmirror.builders/post/118501</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118501</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Jun 2024 18:26:57 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 18:26:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> said in <a href="/post/118499">Difficulty getting MMM-Transitfeed working</a>:</p>
<blockquote>
<p dir="auto">My next step is to figure out how to get to the same point with my actual dev system before making the same changes to the production system.</p>
</blockquote>
<p dir="auto">well, you can follow  the steps from</p>
<p dir="auto">npm install @electron/rebuild<br />
onward</p>
<p dir="auto">or you can follow all those steps…  won’t hurt anything</p>
]]></description><link>https://forum.magicmirror.builders/post/118500</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118500</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Jun 2024 18:26:23 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 18:17:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/118479">Difficulty getting MMM-Transitfeed working</a>:</p>
<blockquote>
<p dir="auto">ok, let see if wee can clean up and try again</p>
<p dir="auto">so we are going to reset the MM loaded libs and the module loaded libs</p>
</blockquote>
<p dir="auto">That worked!  Yay!</p>
<p dir="auto">Thank you so very much!  I really appreciate all your help.  You are truly amazing.</p>
<p dir="auto">My next step is to figure out how to get to the same point with my actual dev system before making the same changes to the production system.  That and how to get it to work with my local transit system’s feeds.</p>
]]></description><link>https://forum.magicmirror.builders/post/118499</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118499</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Wed, 26 Jun 2024 18:17:33 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Wed, 26 Jun 2024 18:24:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> ok, let see if we can clean up and try again</p>
<p dir="auto">so we are going to reset the MM loaded libs and the module loaded libs</p>
<pre><code class="language-sh">cd ~/MagicMirror
rm -rf node_modules
git checkout package.json
git checkout package-lock.json
npm run install-mm
</code></pre>
<p dir="auto">when finished</p>
<pre><code class="language-sh">npm install @electron/rebuild
</code></pre>
<p dir="auto">now the module</p>
<pre><code class="language-sh">cd modules/MMM-Transitfeed
rm -rf node_modules
git checkout package.json
git checkout package-lock.json
npm install
</code></pre>
<p dir="auto">when finished</p>
<pre><code class="language-sh">npm install btfs
</code></pre>
<p dir="auto">when finished</p>
<pre><code class="language-sh">../../node_modules/.bin/electron-rebuild
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/118479</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118479</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 26 Jun 2024 18:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 22:12:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
It said “Rebuild Complete” but nothing about sqlite3.</p>
]]></description><link>https://forum.magicmirror.builders/post/118478</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118478</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 22:12:23 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 21:53:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> it’s an npm bug, nothing fatal</p>
<p dir="auto">did you see the rebuild messages?</p>
]]></description><link>https://forum.magicmirror.builders/post/118476</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118476</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 25 Jun 2024 21:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 21:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Still no luck.  8^(</p>
<p dir="auto">I was getting a bunch of errors during the MM install which some googling suggested might be due to insufficient power (which is odd because I was using a big power supply) so I switched to an RPi power supply and still got the same errors.  So maybe they’re somehow related?  The errors are:</p>
<p dir="auto">During MM Install:</p>
<pre><code>(node:27144) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
</code></pre>
<p dir="auto">During the Electron stuff:</p>
<pre><code>(node:42678) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/118475</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118475</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 21:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 20:35:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> correct the module’s folder</p>
]]></description><link>https://forum.magicmirror.builders/post/118472</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118472</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 25 Jun 2024 20:35:57 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 20:03:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">When you say “module folder”, you mean (in this case) <strong>~/MagicMirror/modules/MMM-transitfeed</strong> not <strong>~/MagicMirror/modules/</strong> right?   I’m pretty sure, but better safe than sorry.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/118471</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118471</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 20:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 19:52:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> ok, simpler</p>
<p dir="auto">flash sd card with<br />
use my script to install MM  (do nothing before, it does the update and adds whats needed for MM)<br />
npm start to prove MagicMirror is working<br />
clone the module</p>
<p dir="auto">cd to the module folder and do the npm install and npm install gtfs (in module folder NOT MM folder!!)<br />
npm install gtfs --save-dev</p>
<p dir="auto">now, need electron rebuild<br />
cd …/… # magicmirror folder<br />
npm install @electron/rebuild<br />
cd - # go back to module folder<br />
…/…/node_modules/.bin/electron-rebuild<br />
wait, should show sqlite<br />
rebuild complete<br />
cd - # back to MM folder</p>
<p dir="auto">add the config entry for the module<br />
npm start</p>
<p dir="auto">should work</p>
]]></description><link>https://forum.magicmirror.builders/post/118466</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118466</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 25 Jun 2024 19:52:20 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 19:14:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Could you check that I’m doing things correctly?  These are the commands I’m using to get from a fresh OS to MM with transitfeed:</p>
<pre><code># Update system

{
  sudo apt update
  sudo apt full-upgrade
}

# Install MagicMirror

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

# NOTICE ON INSTALL: npm install -g npm@10.8.1

# update Node/NPM

{
  sudo npm install -g n
  sudo n lts
  sudo n latest
  sudo n prune
}

# Install transitfeed

{
  cd ~/MagicMirror/modules
  git clone https://github.com/bnitkin/MMM-transitfeed.git
}

# Install gtfs

{
  cd ~/MagicMirror                     # Enter magicmirror project directory
  npm uninstall gtfs-realtime-bindings # Now part of gtfs
  npm install gtfs --save-dev          # Force update to latest version
}

# Update better-sqlite3

{
  cd ~/MagicMirror
  rm -r node_modules/better-sqlite3/
  npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force
}

# Rebuild Electron?

{
  cd ~/MagicMirror
  npm install @electron/rebuild
  cd ~/MagicMirror/modules/MMM-transitfeed
  ../../node_modules/.bin/electron-rebuild
  cd ~/MagicMirror
}
</code></pre>
<p dir="auto">Thanks so much for your help!</p>
]]></description><link>https://forum.magicmirror.builders/post/118465</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118465</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 19:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 19:05:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">There is no joy in mudville.</p>
<p dir="auto">Here’s what I did with a fresh install of PiOS (Raspberry Pi 4 2gb):</p>
<pre><code>pi@MagicMirrorDev:~/MagicMirror $ history
    1  {   sudo apt update;   sudo apt full-upgrade; }
    2  bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
    3  sudo nmtui
    4  sudo shutdown -r now
    5  sudo nmtui
    6  sudu shutdown -r now
    7  sudo shutdown -r now
    8  {   cd ~/MagicMirror/modules;   git clone https://github.com/bnitkin/MMM-transitfeed.git; }
    9  cd ..
   10  {   cd ~/MagicMirror                     # Enter magicmirror project directory
           npm uninstall gtfs-realtime-bindings # Now part of gtfs
           npm install gtfs --save-dev          # Force update to latest version
       }
   11  {   cd ~/MagicMirror                     # Enter magicmirror project directory
           npm uninstall gtfs-realtime-bindings # Now part of gtfs
           npm install gtfs --save-dev          # Force update to latest version
       }
   12  {   sudo npm install -g n;   sudo n lts;   sudo n latest;   sudo n prune; }
   13  {   cd ~/MagicMirror                     # Enter magicmirror project directory
           npm uninstall gtfs-realtime-bindings # Now part of gtfs
           npm install gtfs --save-dev          # Force update to latest version
       }
   14  cd $HOME/MagicMirror;
   15  DISPLAY=:0 npm start
   16  npm run config:check
   17  DISPLAY=:0 npm start
   18  npm run config:check
   19  DISPLAY=:0 npm start
   20  npm run config:check
   21  DISPLAY=:0 npm start
   22  {   cd ~/MagicMirror;   rm -r node_modules/better-sqlite3/;   npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force; }
   23  {   cd ~/MagicMirror;   npm install @electron/rebuild; }
   24  {   cd ~/MagicMirror/modules/MMM-transitfeed;   ../../node_modules/.bin/electron-rebuild;   cd ~/MagicMirror; }
   25  DISPLAY=:0 npm start
   26  history
pi@MagicMirrorDev:~/MagicMirror $
</code></pre>
<p dir="auto">The nmtui stuff is to set the IP address (which I did wrong a couple of times) and then I  mucked up the config.js putting in the transitfeed module stuff.</p>
<p dir="auto">Here’s the log from trying to run it at the end (it’s basically the same):</p>
<pre><code>[2024-06-25 11:53:08.617] [LOG]   MMM-transitfeed: Importing with [object Object]
[2024-06-25 11:53:08.649] [ERROR] (node:3464) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 116. This version of Node.js requires
NODE_MODULE_VERSION 121. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2214)
    at Module._extensions..node (node:internal/modules/cjs/loader:1343:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2214)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at bindings (/home/pi/MagicMirror/node_modules/bindings/bindings.js:112:48)
    at new Database (/home/pi/MagicMirror/node_modules/better-sqlite3/lib/database.js:48:64)
    at setupDb (file:///home/pi/MagicMirror/node_modules/gtfs/lib/db.js:10:14)
    at openDb (file:///home/pi/MagicMirror/node_modules/gtfs/lib/db.js:31:12)
    at Module.importGtfs (file:///home/pi/MagicMirror/node_modules/gtfs/lib/import.js:676:16)
    at Class.startup (/home/pi/MagicMirror/modules/MMM-transitfeed/node_helper.js:48:29)
    at async Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-transitfeed/node_helper.js:33:52)
(Use `electron --trace-warnings ...` to show where the warning was created)
[2024-06-25 11:53:08.650] [ERROR] (node:3464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
</code></pre>
<p dir="auto">I’m thinking I might give it another go from scratch without worrying about the IP address and catching all the output from each command.</p>
]]></description><link>https://forum.magicmirror.builders/post/118464</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118464</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 19:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 10:41:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> its  not hardware, but another try wouldn’t hurt</p>
]]></description><link>https://forum.magicmirror.builders/post/118459</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118459</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 25 Jun 2024 10:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Tue, 25 Jun 2024 06:24:16 GMT]]></title><description><![CDATA[<p dir="auto">Could it be hardware related?  I’m not sure I have another Pi4 I can test with but I’ve got a Pi Zero 2 I could try.  Would that be of any use?</p>
]]></description><link>https://forum.magicmirror.builders/post/118458</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118458</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 25 Jun 2024 06:24:16 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Sat, 22 Jun 2024 00:35:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Sadly, no.  Same error.</p>
]]></description><link>https://forum.magicmirror.builders/post/118421</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118421</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Sat, 22 Jun 2024 00:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Sat, 22 Jun 2024 00:19:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> and?  does it run.</p>
]]></description><link>https://forum.magicmirror.builders/post/118420</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118420</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Jun 2024 00:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Sat, 22 Jun 2024 00:16:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Oops.  I did the rebuild again.  Still doesn’t say anything about the sqlite3 but it does say rebuild complete.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/118419</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118419</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Sat, 22 Jun 2024 00:16:50 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Sat, 22 Jun 2024 00:00:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> don’t install sql again, else you have to rebuild again</p>
]]></description><link>https://forum.magicmirror.builders/post/118417</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118417</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Jun 2024 00:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Fri, 21 Jun 2024 23:51:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Nothing about sqlite but it did say “Rebuild Complete”:</p>
<pre><code>pi@MagicMirrorDev:~/MagicMirror $ {
  cd ~/MagicMirror
  npm install @electron/rebuild
  cd ~/MagicMirror/modules/MMM-transitfeed
  ../../node_modules/.bin/electron-rebuild
  cd ~/MagicMirror
}

added 81 packages in 11s

253 packages are looking for funding
  run `npm fund` for details
✔ Rebuild Complete
pi@MagicMirrorDev:~/MagicMirror $ 
</code></pre>
<p dir="auto">This time around, I didn’t do the sqlite update:</p>
<pre><code>{
  cd ~/MagicMirror
  rm -r node_modules/better-sqlite3/
  npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force
}
</code></pre>
<p dir="auto">But I don’t think it worked any better when I did.  I’ll try that and then do the rebuild.</p>
]]></description><link>https://forum.magicmirror.builders/post/118415</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118415</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Fri, 21 Jun 2024 23:51:12 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Fri, 21 Jun 2024 23:43:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> and when the electron-rebuild ran it should have said<br />
something about sqllite<br />
and rebuild complete, like mine above</p>
]]></description><link>https://forum.magicmirror.builders/post/118414</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118414</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 21 Jun 2024 23:43:07 GMT</pubDate></item><item><title><![CDATA[Reply to Difficulty getting MMM-Transitfeed working on Fri, 21 Jun 2024 23:31:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">The MMM-transitfeed module directory:</p>
<pre><code>{
  cd ~/MagicMirror
  npm install @electron/rebuild
  cd ~/MagicMirror/modules/MMM-transitfeed
  ../../node_modules/.bin/electron-rebuild
  cd ~/MagicMirror
}
</code></pre>
<p dir="auto">I basically copy-and-pasted that.</p>
]]></description><link>https://forum.magicmirror.builders/post/118413</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118413</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Fri, 21 Jun 2024 23:31:13 GMT</pubDate></item></channel></rss>