Comments (9)
from weewx-belchertown.
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.
I'll try that now.
- Stop Weewx
- Delete Forecast.json
- Start Weewx
- 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.
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.
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.
It can sure wait until after holidays! Have a good one.
Gav
from weewx-belchertown.
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.
from weewx-belchertown.
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.
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)
- Missing Charts HOT 11
- Upgrading to 1.3 from 1.2 HOT 2
- "drizzle" icon is missing during install and will show as broken in forecasts HOT 2
- Can't find locale HOT 1
- If Aeris throws an exception Belchertown doesn't update HOT 7
- Forecast finds the database locked, exception issue HOT 1
- Change in default charts on home page HOT 2
- Wind Rose does not seem accurate on the longer time lines HOT 1
- Kiosk.html not updating HOT 12
- Pi page showing "undefined" and unformatted values after access/refresh HOT 2
- Belchertown taking forever on some weewx v5 systems HOT 22
- 29th February HOT 1
- Graphs appear with delay on refresh
- In js/belchertown.js.tmpl function get_outTemp_color returns incorrect color when outTemp <= 0 and unit is "degree_C"
- Data is being rounded to 0
- View from Reports / NOAA
- display miles instead of kilometer HOT 2
- I am getting errors after upgrading to weewx v5.0.1 and belchertown 1.3.1 HOT 1
- Current Conditions Stuck/Stale
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weewx-belchertown.