bibaldo / MMM-COVID19

MIT License
34 stars 28 forks source link

Not working #24

Closed PierreGode closed 4 years ago

PierreGode commented 4 years ago

Hi! I have installed the module under modules and added to the magic mirror config.js { module: 'MMM-COVID19', config: { updateInterval: 30000, worldStats: true, //countries: [ "USA", "Italy", "Spain" ], headerRowClass: "small", rapidapiKey : "b82151b3d5msh55f3629c1a9**MY -rapidapi-KEY***" } },

But the module is now showing in the mirror. I have several modules that are working.

also I con not see position config in your setup like: ( position: "top_left", )

I guess that I am missing something.

Best regards Pierre

testdruif commented 4 years ago

Hi Pierre,

I notice your api key includes the string "MY -rapidapi-KEY*****" If that's in your live config it might be why no data is displayed

PierreGode commented 4 years ago

Hi no I hid it with purpose! I found the issue! 'MMM-COVID19', should be "MMM-COVID19", I made some changes to your readme file and sent an pull request

PierreGode commented 4 years ago

Solved fixing config.

my config is: ( api key is hidden ) replace rapidapiKey: "get api from https://rapidapi.com/astsiatsko/api/coronavirus-monitor" with api key! { module: "MMM-COVID19", header: "COVID19", position: "top_left", config:{ countries: ["USA", "Sweden", "China", "Spain", "Italy"], delta: true, worldStats: true, updateInterval: 60 60 1000, infoRowClass: "small", headerRowClass: "small", rapidapiKey: "get api from https://rapidapi.com/astsiatsko/api/coronavirus-monitor" } },

PierreGode commented 4 years ago

example image for the "Wecome page" image