[solved] How to send reports at a different time of the day

We use Piwik 1.7.1 and cron for the archive-process and sending the reports.
How can I change the time the reports are sent?

In our installation they are sent at ~1:30a.m. At this time of the day the maschine is doing a lot of exports, backups, syncing, re-organization. Server load is high then.

I want to send the reports at a time, when server lower is not that high, let’s say at ~4:30.
Can this be done? Where do I have to change the sourcecode?

Any advise would be helpful.
Thanks.

Karsten

I haven’t tested but can you try:


Index: plugins/PDFReports/PDFReports.php
===================================================================
--- plugins/PDFReports/PDFReports.php	(revision 6156)
+++ plugins/PDFReports/PDFReports.php	(working copy)
@@ -95,7 +95,7 @@
 		$tasks = &$notification->getNotificationObject();
 
 		$dailySchedule = new Piwik_ScheduledTime_Daily();
-		$dailySchedule->setHour($maxHourOffset);
+		$dailySchedule->setHour($maxHourOffset + 5);
 		$tasks[] = new Piwik_ScheduledTask ( $this, 'dailySchedule', $dailySchedule );
 
 		$weeklySchedule = new Piwik_ScheduledTime_Weekly();

to put oit 5 hours later for the daily reports?

Working perfect. Thanks.

http://www.infoocean.info/avatar2.jpgI haven’t tested but can you try: