Moin,
versuch mal folgendes:
PHP-Code:
int timeframe;
static datetime update = 0;
int init()
{
//----
timeframe = Period();
return(0);
}
int start()
{
if(update == 0 || TimeLocal() > update + Period() * 60)
{
//Dein Code
update = TimeLocal()- TimeLocal()%timeframe;
}
}