Read the statement by Michael Teeuw here.
MMM-Flights does not work
-
This is the error I see in the log after installing and restarting MagicMirror:
0|mm | [13.10.2023 19:35.37.312] [ERROR] MMM-Flights: unknown error getting data SyntaxError: Unexpected token ‘:’
I use the proposed minimal config setup in config.js
{ module: "MMM-Flights", position: "top_left", config: { laMin: 50.0, laMax: 50.21, loMin: 8.4, loMax: 8.8, }, },
-
can confirm this error, will try to fix it later
-
the problem is caused by changes on the flightradar side, I already opened an issue: https://github.com/derhuerst/flightradar24-client/issues/36
A quick and dirty fix would be to go into the module folder (from mm folder) with
cd modules/MMM-Flights
and then edit the followoing file e.g. with nanonano node_modules/flightradar24-client/lib/radar.js
and replace the line at the beginning of the fileconst endpoint = 'https://data-live.flightradar24.com/zones/fcgi/feed.js'
with
const endpoint = 'https://data-cloud.flightradar24.com/zones/fcgi/feed.js'
Other possibilities:
- wait for a fix
- you can use another provider in MMM-Flights
-
That has worked - thank you!
-
-
issue was fixed upstream so I released a new (fixed) version
-
@karsten13 sorry to jump on this thread with my query, hope you can advise. I added Flights module just now and love it. Only thing is I don’t understand fully the coordinates. If I enter the coordinates of my area and duplicate for min and max it produces a fairly small map of my area. When I try and add a min and max value of areas close to me it defaults to a world map! Can you advise as to what I may be doing wrong? I appreciate this may be difficult without knowing the exact coordinates I am entering.
-
maybe better explained with
laMax: Northern edge latitude laMin: Southern edge latitude loMin: Western edge longitude loMax: Eastern edge longitude
-
@karsten13 That makes much more sense to me now. Will try it tomorrow. Thanks for the quick reply and support, much appreciated.