I nicked a bit of code from an example of an existing driver, and it could set a schedule for a refresh of data from a url.
On my production hub, this works like a charm.
Now another user wanted to use the driver, but it did not set a scedule. So as a test I placed the driver on my develop / test hub, and indeed it dos not schedule.
What am I doing wrong?
The complete driver here
Sniplet that defines the scheduling:
if (enablePoll) {
Integer interval = Integer.parseInt(settings.pollInterval)
switch (interval) {
case 1:
runEvery1Minute(refresh)
break
case 5:
runEvery5Minutes(refresh)
break
case 10:
runEvery10Minutes(refresh)
break
case 15:
runEvery15Minutes(refresh)
break
case 30:
runEvery30Minutes(refresh)
break
case 60:
runEvery1Hour(refresh)
break
case 180:
runEvery3Hours(refresh)
break
default:
runIn(interval*60,refresh)
break
}