pawelmalak / flame

Flame is self-hosted startpage for your server. Easily manage your apps and bookmarks with built-in editors.
MIT License
5.21k stars 253 forks source link

[BUG] Weather does not get updated #306

Open jacksoncds opened 2 years ago

jacksoncds commented 2 years ago

Deployment details:


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.

rightsaidfred99 commented 2 years ago

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

monkeyhead commented 2 years ago

also experiencing this issue.

pydr commented 2 years ago

same problem

lolekuk commented 2 years ago

Mine not updating either. 2.3.0 Docker amd64

lolekuk commented 2 years ago

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

pawelmalak commented 2 years ago

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

image

lolekuk commented 2 years ago

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 :)

pawelmalak commented 2 years ago

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

lolekuk commented 2 years ago

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! :)

rightsaidfred99 commented 2 years ago

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.

nunnsby commented 2 years ago

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. 😄

MoistHoagie commented 2 years ago

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.

monkeyhead commented 1 year ago

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: @.***>

nunnsby commented 1 year ago

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)

modrewrite commented 2 months ago

I also have this problem, running Docker.