====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
script_owm [2015/05/17 20:51] jappie [OWM-example]source added |
script_owm [2015/05/21 11:27] (current) jappie [OWM-load] improved timer |
||
|---|---|---|---|
| Line 50: | Line 50: | ||
| if (repl == null){return;}; | if (repl == null){return;}; | ||
| self.owm.forcast = JSON.parse(repl); | self.owm.forcast = JSON.parse(repl); | ||
| + | } | ||
| self.owm.timer = setTimeout(refreshOWM, 600000); | self.owm.timer = setTimeout(refreshOWM, 600000); | ||
| - | } } | + | } |
| clearTimeout(self.owm.timer); | clearTimeout(self.owm.timer); | ||