sdetweil / MyCovid19

monitor COV ID 19 status
9 stars 5 forks source link

Data not automatically updating #11

Closed waldmeisterx closed 3 years ago

waldmeisterx commented 3 years ago

Hi Sam, installed the module with "git clone" and "npm install", applied my config an it displays the (two configued) graphs. The only problem is, it doesn't update the data!? Somewhere i read, it is updating only once a day, what would be ok. But it doesn't update. Only at restart of mm it updates (downloads) the current data file. Am I missing something? Should it update at a specific time? Or does it check or a new data file and updates then? If one could help, this would be fine.

This is one of my two configs: { module: "MyCovid19", position: "bottom_left", config: { countries: ['Germany','Austria'], line_colors: ['red','green','yellow','blue','orange','pink','white',], chart_type: "cases", // or "deaths" chart_title: "Fälle/Tag", // however u want to label startDate: '03/01/2020', ranges:{min:0,max:40000,stepSize:10000}, xAxisLabel: 'Datum', yAxisLabel: 'Infektionen', width: 500, height: 350, debug: false, } },

Regards Dirk

sdetweil commented 3 years ago

should update daily, the time depends on when they publish refreshed data.. I start checking at 6am, every 15 mins..

some change might be small.. u can hover over a line and see the dates..

if still stuck, add debug:true, to the chart and then npm start >somefile

the traces will be in somefile, attach here or send to me, same userid at gmail

waldmeisterx commented 3 years ago

Sorry for the delay. I haven't solved it yet, but I'm not sure, if the mirror has a wifi problem. Maybe there is no connection, if it should pull new data. Have to add a new wifi usb module and test with it again.

waldmeisterx commented 3 years ago

traces sent by mail to you

sdetweil commented 3 years ago

got them

waldmeisterx commented 3 years ago

so while no solution until now, my current workaround is to restart mm every night via cron

sdetweil commented 3 years ago

i pushed a change a few weeks ago.., did u do a git pull?

may have to turn on debug, add debug: true,

to the module config block

waldmeisterx commented 3 years ago

yes i updated the module quite after your update, have to try debug again...

sdetweil commented 3 years ago

is this still failing?

humdinger44 commented 3 years ago

Wow, you were out for a while. Glad to hear you are recovering.

I started tracking my state's covid data somewhere else to make room for another module so I haven't been keeping any eye on this functionality

On Fri, May 14, 2021, 9:54 PM sam detweiler @.***> wrote:

is this still failing?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sdetweil/MyCovid19/issues/11#issuecomment-841582005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKN3N6PLPMB3LCXDLSVIIQ3TNXH4HANCNFSM4TGDEODQ .

waldmeisterx commented 3 years ago

@sdetweil no, it was running until 22.4.2021

Then i got this error MM crashing (after pi os update?) where we had contact. I disabled the module since i get these new errors. I'd close this one too, because of the new problem.

sdetweil commented 3 years ago

@humdinger44 thanks.. been home a couple months now, and slowly getting back into the flow..

sdetweil commented 3 years ago

@waldmeisterx ok, I sent another email , I will close this.