bibaldo / MMM-COVID19

MIT License
34 stars 28 forks source link

Covid-19 displays at the top but no other data loads #44

Closed Delfairen closed 4 years ago

Delfairen commented 4 years ago

Covid-19 displays at the top but no other data loads. Rapidapi.com displays data for world_total_stat and cases_by_country.

Startup

pi@MagicMirror1:~/MagicMirror/modules $ npm start

magicmirror@2.11.0 start /home/pi/MagicMirror DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[2020-04-27 23:24:18.678] [LOG] Starting MagicMirror: v2.11.0 [2020-04-27 23:24:18.709] [LOG] Loading config ... [2020-04-27 23:24:18.733] [LOG] Loading module helpers ... [2020-04-27 23:24:18.749] [LOG] No helper found for module: alert. [2020-04-27 23:24:18.965] [LOG] Initializing new module helper ... [2020-04-27 23:24:18.968] [LOG] Module helper loaded: updatenotification [2020-04-27 23:24:18.970] [LOG] No helper found for module: clock. [2020-04-27 23:24:20.450] [LOG] Initializing new module helper ... [2020-04-27 23:24:20.452] [LOG] Module helper loaded: calendar [2020-04-27 23:24:20.455] [LOG] No helper found for module: currentweather. [2020-04-27 23:24:20.458] [LOG] No helper found for module: weatherforecast. [2020-04-27 23:24:20.468] [LOG] Initializing new module helper ... [2020-04-27 23:24:20.470] [LOG] Module helper loaded: MMM-COVID19 [2020-04-27 23:24:20.471] [LOG] All module helpers loaded. [2020-04-27 23:24:20.921] [LOG] Starting server on port 8080 ... [2020-04-27 23:24:20.987] [LOG] Server started ... [2020-04-27 23:24:20.993] [LOG] Connecting socket for: updatenotification [2020-04-27 23:24:20.998] [LOG] Connecting socket for: calendar [2020-04-27 23:24:21.002] [LOG] Starting node helper for: calendar [2020-04-27 23:24:21.005] [LOG] Connecting socket for: MMM-COVID19 [2020-04-27 23:24:21.009] [LOG] Starting node helper for: MMM-COVID19 [2020-04-27 23:24:21.012] [LOG] Sockets connected & modules started ... [2020-04-27 23:24:21.361] [LOG] Launching application. [2020-04-27 23:24:27.463] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [2020-04-27 23:25:07.913] [LOG] Shutting down server... [2020-04-27 23:25:07.923] [LOG] Stopping module helper: updatenotification [2020-04-27 23:25:07.927] [LOG] Stopping module helper: calendar [2020-04-27 23:25:07.930] [LOG] Stopping module helper: MMM-COVID19

config

            {
                    module: "MMM-COVID19",
                    position: "top_left",
                    config: {
                            updateInterval: 300000,
                            worldStats: true,
                            delta: true,
                            lastUpdateInfo: true,
                            countries: [ "Argentina", "China", "Italy", "Spain" ],
                            headerRowClass: "small",
                            rapidapikey: "e99ae7dff7msh8b3a800f28e7d00p173351jsnd1b85b148dc4"
                    }
            },
Tatroxitum commented 4 years ago

Your rapidapiKey is not good. Are you sure you followed theses steps to subscribe to "cases_by_country" and "worldstat endpoints" ? (test end-point)

Delfairen commented 4 years ago

I did create an account and I went to the second URL. At the top of the screen I am showing as subscribed.

image

Delfairen commented 4 years ago

Tested in postman with the api key and this returns results.

sherwood65633 commented 4 years ago

Same here, No data. The API is receiving calls at the host. But not printing. http://prntscr.com/s8449a

sherwood65633 commented 4 years ago

Please ignore. My error

Delfairen commented 4 years ago

Still battling this. I do not even have the headers but I am unable to see why.

image

Delfairen commented 4 years ago

Removed the folder and repulled. Seems to be working now.

diegoshh commented 3 years ago

what do you mean you removed the folder and repulled? Im new at this