Comments (10)
Good news, but would be great if all pages could be generated.
I guess it takes too long and generation of the other reports starts in the background and things start to mess up...
WeeWX supports the scheduling of reports via the report_timing
option - perhaps this could be an option?
https://weewx.com/docs/5.0/custom/report-scheduling/#the-stale_age-option
stale_age
of the stats page is 12 hours, the idea would be to guarantee that no other report runs when wdc generates the stats page.
Another question: On which hardware are you running WeeWX?
from weewx-wdc.
Hello and thank you for reaching out!
Very strange behaviour, I have never encountered this before. What changes did you make to base_path
and HTML_dir
? Could you please post the [WdcReport]
section from weewx.conf
?
One thing you could do is reset all your changes, does the error also occur with default configs?
from weewx-wdc.
Hi, so this is what I did now:
- uninstalled weewx-wdc and cleaned up output dir
- installed it again
- did the following two changes only:
weewx.conf:HTML_ROOT = /var/www/weewx/wdc
skin.conf:base_path = /weewx/wdc/
- restarted weewx
- errors appear upon generation as indicated above,
I rely on changing these two things to not get in trouble with my other skin outputs. The other skins (Belchertown, Bootstrap, neowx) are installed in their normal places and output to /var/www/weewx/Belchertown etc.
This is my entire WdcReport config:
[[WdcReport]]
skin = weewx-wdc
enable = true
HTML_ROOT = /var/www/weewx/wdc
I should also say that I have >10 years of data, so initial output generation takes a looong time.
And after cleaning up everything and starting from scratch, now also I don't see any graphs being created.
(EDIT: the missing graphs topic was solved, I noticed that the dist
directory was not created in the output dir. I just did that manually.)
from weewx-wdc.
In your first comment your wrote 4 templates causing this error:
statistics.html.tmpl,
celestial.html.tmpl
offline.html.tmpl
about.html.tmpl
Is it the same error for all four templates? The combined-diagram-tile.inc
isn't even used on the about page.
Can you verify that the file skins/weewx-wdc/includes/combined-diagram-tile.inc
exists (see SKIN_ROOT, https://www.weewx.com/docs/5.0/usersguide/where/)?
from weewx-wdc.
Hi,
yes, skins/weewx-wdc/includes/combined-diagram-tile.inc exists:
-rw-r--r-- 1 root weewx 6769 Apr 10 12:41 /etc/weewx/skins/weewx-wdc/includes/combined-diagram-tile.inc
And it gets weirder: After some hours and a few restarts and essentially no relevant changes (just tried to reorder skin related lines in weewx.conf and removed a few commented lines) wdc suddenly started to create the missing files.
However, the errors are still there, just not anymore with every wdc run as before. The output files get also updated as they should. And error also appear for other templates now, e.g. year-%Y.html.tmpl
What is even more funny - I now see these skin crossfire errors also for other skin templates directing towards wdc or e.g. Bootstrap. As you can see they are more or less all the same, wildly trying to find files in the wrong skin's directory. I checked, and before the installation of wdc I have no such log entries at all in my syslog.
I'm attaching a longer log snippet with all the log entry types I see (hopefully better to read). By now, as finally all the output files are there, it has turned more into a cosmetic "weird errors" issue, but still really strange.
Thank you very much for looking into this! :-)
from weewx-wdc.
Could this be a permission problem? Under which user is weewx running? Does it make a difference if you run the weectl report run WdcReport
as root?
I am asking because combined-diagram-tile.inc
is owned by the root
user:
-rw-r--r-- 1 root weewx 6769 Apr 10 12:41 /etc/weewx/skins/weewx-wdc/includes/combined-diagram-tile.inc
from weewx-wdc.
well, I had a similar suspicion - weewx runs as user weewx since the v5 upgrade. I chowned the wdc skin dir to weewx now, as all the other skins already were, but this hasn't had any impact. I also noticed that the Belchertown skin was missing enable = true
in weewx conf, but adding that also had no impact.
The situation now is as follows:
- for most of the time, all skins operate normally
- quite exactly every 12 hours, I start seeing those error messages within a timeframe of 15-60 mins approx.
- during the time this is happening, I also have experienced visual glitches in the output files, so far mostly in Belchertown (which is my main public facing skin). It seems that the wrong formatting is applied, top menu in different color and font, wind rose missing etc.
- this will fix itself when skins are back to normal. No more errors until the next cycle.
It looks to me as if twice a day the cheetahgenerator decides to go a little wild and tries to mix things up a little bit. :-)
from weewx-wdc.
quite exactly every 12 hours, I start seeing those error messages within a timeframe of 15-60 mins approx.
This could be the statistics.html page - it gets generated every 12 hours per default config, see: https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/skin.conf#L647
Could you try to comment out the [[[statistics]]]
section of the skin.conf
to disable the generation of it? The statistics (all time) page shows graphs and stats of the whole data available to the station. Generation tooks some time, can you visit the page now and see all the data?
from weewx-wdc.
I have re-enabled wdc skin and disabled statistics yesterday, and so far no issues/errors. So yes, it looks like the statistics page is the culprit here. (For the record, also no issues when wdc is entirely disabled)
As far as it got generated, the statistics page looks okay to me (no glitches) and also the data make sense. As mentioned before, I have >11 years worth of data in weewx DB, so I assume the processing will be a bit stressful....
Will play with it some more. Thanks a lot! 👍
from weewx-wdc.
Hello, sorry for the late response and thanks for your hints.
I have now scheduled all my reports in a way to allow for an 1 hour window at night where only wdc reports are is running and that matches the stale timer of the statistics file (24hours).
This has removed the crossfire into other skins, predictably, the only error messages I see are related to the other wdc templates. See attached, these are all the errors I saw last night.
The timestamp of the output file statistics.html is also showing 02:44 (same as when the errors are happening), but the timestamp shown inside ($alltime.end) is 02:31:00.
I'm running weewx with MySQL on an Intel Xeon E-2276G server (6-Core, 16GB RAM). It also does some other things, but I wouldn't call it resource challenged...
from weewx-wdc.
Related Issues (20)
- [BUG] year-%Y.html.tmpl fails when changing group_speed to knots in weewx.conf HOT 2
- Update `windGust` display in forecast table
- Default dark mode HOT 4
- Timestamp adjustment in the diagram HOT 6
- Colored Temperature HOT 6
- Windrose legend overlaps under mobile when using knots [BUG] HOT 3
- wee_reports : wee_reports: command not found HOT 2
- Modal optimizations
- [BUG] Reason: '<' not supported between instances of 'NoneType' and 'float' in the skins/weewx-wdc/year-%Y.html.tmpl file HOT 23
- [BUG] Stat tile on page Today using custom data binding does not appear if the same observation does not exist in main data binding HOT 3
- [BUG] Small Error In Upgrade Instructions HOT 1
- Add a date picker for selecting an Archive day HOT 1
- [BUG] Helper text in Archive day dropdown HOT 3
- Add Moon phases translations HOT 2
- Make climatological days configurable HOT 2
- [BUG] gauges updates from MQTT wrong unit HOT 1
- [BUG] Latest WDC not working with latest Weewx HOT 3
- [BUG] Full screen graphs not working in mobile version
- [BUG] Display Error Gauges Feature Text (DE) HOT 4
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-wdc.