Page 1 of 1
How to monthly reports
Posted: Mon Feb 01, 2010 3:42 pm
by vecerapl
I would like to make a monthly survey, but I do not know how exactly to generate such a graph, or how to make a CRON request. :blink:
Apparently set to chart the current month and upload your own graphs to solve CRON. But in January, and generate necessary when February comes, the file name (graph) is overwritten :dry:
Re:How to monthly reports
Posted: Mon Feb 01, 2010 7:16 pm
by skyewright
vecerapl wrote:But in January, and generate necessary when February comes, the file name (graph) is overwritten :dry:
Which reminds me of a "wish" I thought about but didn't get around to requesting...
It would be very nice if the filename for "Graph Uploads" could include date &/or time markers of some sort. The aim being to allow a graph to be prepared, say, just before midnight on the last day of the month and automatically get a name that included the correct date, e.g.
daily-pressure-2010-01.png.
Re:How to monthly reports
Posted: Mon Feb 01, 2010 7:22 pm
by vecerapl
Unfortunately, it can not meteohub more. He is good through SEQ issue in HTML report to be temperature after 1 day, but that's all. They need to have an overview of text after months + offer charts. ADMIN would take these things to improve.
While the Data meteohub remain, but are not used to 100%
Re:How to monthly reports
Posted: Mon Feb 01, 2010 7:42 pm
by YJB
I was hoping that the graph upload was allowing to specify:
Code: Select all
`date '+%m-%Y'`
[\\code]
But apparently boris is parsing out some special characters when building cron.
If this was working, you could simply generate a graph on a daily basis, as long as the month is the same it gets overwritten, but once the month is over, a new one would be created.
UPDATE --------------
Seems that reading the manual does help..
The concept is actually working, when using the right format, which is actually much simpler than what I was trying to do:
Create your monthly graph, with a timeframe actual month, save it.
Now define an upload schedule, in the filename field, you give it a name similar to: temperature_%m%Y.png
Every time the file is uploaded it is overwriting the previous version, but since it contains a month/year definition, it will always keep the last version of the month. Once we move to a new month, the filename changes (and prevents the previous one from being overwritten.
In this example I'm using a graph, but one can do the same with a file that contains some text fields, like monthly statistics.
Note:
Please do keep in mind that meteohubs statistics are not always completely in sync with the current time, since data aggregation is only done on a predefined interval.
Re:How to monthly reports
Posted: Sat Feb 13, 2010 12:00 am
by skyewright
YJB wrote:UPDATE --------------
Seems that reading the manual does help..
A conclusion I just came to myself! :laugh:
I found the time stamp feature when I was reading up on something else.
I did read the whole manual when I started using Meteohub, but that was a long time ago now. :)
Re:How to monthly reports
Posted: Thu Mar 04, 2010 2:48 am
by WS Grave
I'm now manually making a page per month with weather in text and graphics.
Therefore I have to be alert on the last moment of the last day of each month.
With the extra code I don't need to be concerned about missing the last data.
Thanks for this thread.
I'll try and let you know if it works out :)