How to monthly reports

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
vecerapl
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Dec 06, 2009 2:05 pm

How to monthly reports

Post 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:
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:How to monthly reports

Post 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.
vecerapl
Junior Boarder
Junior Boarder
Posts: 27
Joined: Sun Dec 06, 2009 2:05 pm

Re:How to monthly reports

Post 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%
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re:How to monthly reports

Post 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.
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:How to monthly reports

Post 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. :)
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:How to monthly reports

Post 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 :)
Post Reply