Plugin Auto Run

How can i make a plugin run every minute.
How do i incorporate this in the I_xx.xml file

I do not want to make a scene to trigger.

Thanks
Regards
Huib

A good start would be to have a look at existing plugins. Most likely they will have the code to show you how to refresh the data in a plugin. You want to look for luup.call_timer.

  • Garrett

Hi

I was looking for the same thing and came accross this post - http://forum.micasaverde.com/index.php/topic,7010.msg44626.html#msg44626

What I am curious about is how you stop it?
Is there a command that can be used?

I have it up and running
Rgds
Huib

I have added the following line in the function startup;
luup.call_timer(“dutchSmartMeterCounterTrigger”, 1, “55”, “”, “dutchSmartMeterCounterTrigger”)

and at the end of the function i want to run with interval of 55 seconds (i have made it on purpose less than 1 minute to make sure it runs at least every minut.
i have put the same line again
luup.call_timer(“dutchSmartMeterCounterTrigger”, 1, “55”, “”, “dutchSmartMeterCounterTrigger”)
and it works continue

rgds
Huib