[ol]
[li]Loading all external files[/li]
[li]Generating one line in the daily CSV and the SQL table[/li][/ol]
I think you are running the cron-job far to fast. Once every 5 minutes is OK.
For the external files, such as forecasts, METAR a.s.o. the cache time is (far) more than 5 minutes.
The cron-job has to check every file for its last file-modified-time and load the file when it is above 80% of the allowed age.
The graphs .csv files for today (result.csv) will accept 1 minute values, but the graphs itself has not that much room to display all those values.
And every day all those values in your sql-table are discarded also and replaced with a single line in your monthly/yearly .csv file which will be only used to display those graphs.
There is no advantage in accessing an external hosted web-server every minute 24/7 for the graphs-weather-data.
And some web-hosting companies may think that it looks like a DDOS attack and block the IP-address.
“In the decoded METAR the ‘name’ is now referenced as ‘station.name’ as ‘name’ was ambiguous.
All datetimes are now in proper ISODate format as other users complained they were not consistent.”
I see from crontab log file (I’m piping the output to a separate log file) that w34_cron_addtoyear.php is throwing error message: “Couldn not write headers to chartsmysql/2019_03.csv”
The strange thing is that data is written to file (2019_03.csv is attached).
Scheduled crontab jobs running w34_cron_empty.php and w34_cron_stationcron.php with the same user does work http://weather.meisal.com
How can I change the update frequency when reading data from Cumulus type realtime.txt?
Currently it seems to be updating about once every minute.
Data are updated every 3-4s in realtime.txt.
I put it in on the todo list.
For now I Will be home on wendnesday night (CET) and first task is to finalize the April release.
Be aware that there are multiple independent reads of realtime data every minute, depending on the data-type.
F.I. Wind is requested faster as temp.
And your web server should be able to cope with all these requests.
I propose a factor, 1 = default speed, 2 = twice as fast, a.s.o.
Wim
This was a CSS background setting so it is a problem in both versions.
Removed it for this item in the script itself. Attach a script for your production version. It should be OK.
So I just found this version of W34 (i was using Brian’s). I have installed the Beta 3/31 version. Everything working very good. Trying to reformat my Menu Items to work with this version.
I have links to other web pages and they open in a new tab. So I’m trying to figure out how to do this within the iframe code that is used in the new menu structure.
My old links were coded like this:
<li><!---Link 2---><div class="nav-text"><a target="_new" href="http://premiuma.accuweather.com/premium/radar.asp?LocationID=55331US&display=0&site=msp&level=metro&anim=1" title="MSP Metro Radar"> <?php echo $weather34mapicon;?> MSP Metro Radar</a></div></li>