GithubHelp home page GithubHelp logo

Comments (9)

WiggyToo avatar WiggyToo commented on August 17, 2024

See #432 and #692

from weewx-belchertown.

poblabs avatar poblabs commented on August 17, 2024

This is strange, and I'm not sure off top of my head what it is. I've grabbed a copy of your forecast.json so I can see if I can take a look. If you delete the forecast.json again, and let it rebuild, will it fix it again?

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

I'll try that now.

  1. Stop Weewx
  2. Delete Forecast.json
  3. Start Weewx
  4. Wait

Previously I was running the reports manually to save waiting but this was as root so I wondered if running it as another user created a permission issue.

Will let you know when it has recreated the forecast.

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

On its own that doesn't fix it, the icon list not found error repeats about 9 times in the log.

Gav

from weewx-belchertown.

poblabs avatar poblabs commented on August 17, 2024

I'm heading out on holiday shortly, I'll see if I can take a look at whats going on unless someone else knows sooner than me!

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

It can sure wait until after holidays! Have a good one.

Gav

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

I have not managed to fix this reliably, it is working right now after tinkering with belchertown.py and then going back to the released version of this file.

What I have noticed is that sometimes the broken icon shows briefly then the correct one on the home page as if it is some sort of timing issue.

I am not sure why an error is generated when the /etc/weewx/skins/Belchertown/images/aeris-icon-list.json file is definitely there.

I suspected permissions for a while, I don't know enough to debug it really - I have tried a few things but nothing is a reliable fix, I also don't know how the py file interacts with the other files to product the js file that is part of the website.

While writing this another report cycle has happened an the icon is back to unknown.png - on the home page when you refresh you get a brief glimpse of unknown.png before the right one loads e.g. https://www.wiggytoo.co.uk/images/drizzle.png, on the other pages this refresh does not happen and you are just left with https://www.wiggytoo.co.uk/images/unknown.png.

Regards,
Gav

Here is the broken icon on mobile on home page.

Screenshot_2024-07-05-17-21-08-69_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

I have copied over a new aeris-icon-list.json and it now seems to be working - for some reason it seems to be able to get into a broken state and I'm 90% sure it is an issue with the check for the file existence, either permissions or something that means it fails to find the file and returns "unknown" - I am using WINSCP to look at and manage files so there may be a chance that accessing it this way is causing a file permission issue. I'll leave it to run for a day and see what happens, either way as it can be made to work it is not a code issue. Or it is an issue with the current observation icon, so works with some icons and not others or when the icon state changes for example.

from weewx-belchertown.

WiggyToo avatar WiggyToo commented on August 17, 2024

I've tracked this down to permissions on the images folder in the Belchertown skin folder, for some reason on my setup it was set to 644 rather than 755 (from memory). Whether this was a hangover from the upgrade or not I don't know. I followed the fixes shown here (https://github.com/weewx/weewx/wiki/Understanding-permissions#how-to-fix-file-permissions) but that didn't fix it, in the end I manually set the permissions on that folder via WinSCP.

The intermittent nature of the problem was that it worked when I ran reports via the Putty as root, but when run by the weewx service it failed.

As a footnote the broken image icon on my mobile went away when I cleared the cache.

Issue closed.

from weewx-belchertown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.