18.md (1499B)
1 # #18 Use lastUpdate variable 2 3 - **State:** open 4 - **Author:** @MTRNord 5 - **Created:** 2017-02-16T09:54:00Z 6 - **Labels:** enhancement 7 - **Assignees:** @MTRNord 8 9 --- 10 11 Use lastUpdate Variable to do auto refresh 12 13 14 ## Comments 15 16 ### @johan12345 — 2017-02-16T09:56:18Z 17 18 `lastUpdate` only shows the last time where the server refreshed the schedule from the school website (which is approximately once per minute). I'm not sure if that is what you need. 19 20 ### @MTRNord — 2017-02-16T10:18:30Z 21 22 Ah I thaught that it shows when there was the last time something different :/ 23 24 ### @johan12345 — 2017-02-16T10:20:36Z 25 26 No. There is the `lastChange` field that shows the "Stand" from the schedule (but that's not necessarily the same time when it was uploaded to the website and downloaded by my server). 27 28 ### @MTRNord — 2017-02-16T10:22:40Z 29 30 Ok than that is the better way to go. Means I can check if that (`lastChange` ) changed from the previous request? 31 32 ### @johan12345 — 2017-02-16T10:24:34Z 33 34 You can, but I can't guarantee that there is no change on the schedule when `lastChange` did not change (because the school might be able to edit the schedule without updating the displayed "Stand"). Why don't you just compare the whole schedule? 35 36 ### @MTRNord — 2017-02-16T10:25:26Z 37 38 Wanted to keep it fast :) It is a little faster to compare 1 field vs multiple fields. But I will try both 39 40 ### @johan12345 — 2017-02-16T10:26:03Z 41 42 Well, with today's computing power you probably won't notice 😉 43