flame icon indicating copy to clipboard operation
flame copied to clipboard

[BUG] Weather does not get updated

Open jacksoncds opened this issue 3 years ago • 15 comments

Deployment details:

  • App version [e.g. v1.7.4]: 2.2.1
  • Platform [e.g. amd64, arm64, arm/v7]: amd64
  • Docker image tag [e.g. latest, multiarch]: latest

Bug description: Weather data does not get updated unless when saving weather configuration.


Steps to reproduce:

  1. Configure weather API, location, and other settings.
  2. Save changes - weather data will update here.
  3. Wait 15 minutes, weather data will not update.

Possible fix: It looks like the cron expression for weather update may not be supported? 0 */15 * * * * will not run, but */15 * * * * will run as expected.

I tested */15 * * * * in docker (latest image) and Windows 10, works on both for me.

jacksoncds avatar Feb 06 '22 06:02 jacksoncds

Can confirm this happens to me too on Docker (weather not updating)

rightsaidfred99 avatar Feb 07 '22 21:02 rightsaidfred99

also experiencing this issue.

monkeyhead avatar Mar 03 '22 22:03 monkeyhead

same problem

pydr avatar Mar 10 '22 03:03 pydr

Mine not updating either. 2.3.0 Docker amd64

lolekuk avatar Mar 28 '22 21:03 lolekuk

Deployment details:

  • App version [e.g. v1.7.4]: 2.2.1
  • Platform [e.g. amd64, arm64, arm/v7]: amd64
  • Docker image tag [e.g. latest, multiarch]: latest

Bug description: Weather data does not get updated unless when saving weather configuration.

Steps to reproduce:

  1. Configure weather API, location, and other settings.
  2. Save changes - weather data will update here.
  3. Wait 15 minutes, weather data will not update.

Possible fix: It looks like the cron expression for weather update may not be supported? 0 */15 * * * * will not run, but */15 * * * * will run as expected.

I tested */15 * * * * in docker (latest image) and Windows 10, works on both for me.

Hi, I've had a quick look for the cron files, but couldn't find anything relating to the weather. Is there a separate cron running within the docker? Could you elaborate where and how to change it? Thanks

lolekuk avatar Mar 29 '22 10:03 lolekuk

Can you check your database files and confirm it's not working? I'm running 2 instances and my weather updates just fine:

image

pawelmalak avatar Mar 29 '22 10:03 pawelmalak

Can you check your database files and confirm it's not working? I'm running 2 instances and my weather updates just fine:

image

If you can guide me how, I will happily check :)

lolekuk avatar Mar 29 '22 11:03 lolekuk

Download DB Browser for SQLite and open db.sqlite file from your Flame directory. Next, go to Browse Data tab and select weather table:

image

pawelmalak avatar Mar 29 '22 11:03 pawelmalak

Looks as it's working. Updating the weather. I haven't made any changes in configuration. All I did is I think I've restarted the server (with docker) yesterday. Perhaps it was only a glitch?

Anyway, all working. Apologies for causing havoc.

Loving Flame! Best dashboard! :)

lolekuk avatar Mar 30 '22 14:03 lolekuk

Looks as it's working. Updating the weather. I haven't made any changes in configuration. All I did is I think I've restarted the server (with docker) yesterday. Perhaps it was only a glitch?

Anyway, all working. Apologies for causing havoc.

Loving Flame! Best dashboard! :)

It didn't work for me either until one random day it did.

Perhaps API on weather's end only works after a certain time or something.

rightsaidfred99 avatar Mar 30 '22 20:03 rightsaidfred99

Check the required fields as displayed above (tempC, tempF, etc) are actually selected on the API webpage: https://www.weatherapi.com/my/fields.aspx. I had previously changed mine for another project, so it wasn't working on Flame, as all values came back null. 🤦‍♂️ Once I updated the API page (ticked the required fields) on the weatherapi site, it started working. 😄

nunnsby avatar Apr 19 '22 08:04 nunnsby

Is there any known workaround for this? I just setup Flame and am experiencing this same issue. I've checked the other things listed in this thread already. I noticed I can force a refresh by going into the weather settings and saving though.

MoistHoagie avatar Sep 11 '22 14:09 MoistHoagie

Mine has apparently resolved.

On Mon, Mar 28, 2022 at 4:19 PM lolekuk @.***> wrote:

Mine not updating either. 2.3.0 Docker amd64

— Reply to this email directly, view it on GitHub https://github.com/pawelmalak/flame/issues/306#issuecomment-1081160889, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD5SGVCEKLBZSTDVTRVXODVCIO7XANCNFSM5NU5SUGA . You are receiving this because you commented.Message ID: @.***>

monkeyhead avatar Oct 11 '22 08:10 monkeyhead

Mine took a period of time (I can’t remember how long) after I had changed the API tick boxes (selecting temp etc) to update. But it did eventually do it. (I think it was about an hour, but ymmv)

nunnsby avatar Oct 13 '22 13:10 nunnsby