Kemmey / Kemmey-TeslaWatch-Public

40 stars 21 forks source link

Request: intelligent updates #159

Open sorenmaigaard opened 3 years ago

sorenmaigaard commented 3 years ago

Hi

Great app!

Suggestion: it is expensive battery wise to always wake the car to get a status. And you added some timing options for that.

When it is most important to follow the updates is when the car is charging. That is also when it is free to wake the car and check.

So perhaps an intelligent way to refresh status is to say:

I think that would be a great way to handle that.

Kemmey commented 3 years ago

Already does that. 15 min intervals while charging. 5 min intervals while supercharging. 15 min intervals while driving. All others use configured interval options in settings.

sorenmaigaard commented 3 years ago

Awesome!

How does it know to switch between them?

Let’s say I have an interval of 1 hour set. I now plug it in for charging. Would it take (up to) an hour for it to realize this and switch to the 15 min interval? Or does it somehow find out (by polling without wake up perhaps?)

Best regards Søren

On 4 Oct 2020, at 10.07, Kim Hansen notifications@github.com wrote:



Already does that. 15 min intervals while charging. 5 min intervals while supercharging. 15 min intervals while driving. All others use configured interval options in settings.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKemmey%2FKemmey-TeslaWatch-Public%2Fissues%2F159%23issuecomment-703219218&data=02%7C01%7Csoren%40maigaard.com%7C136216a10dc2475bee3608d8683c6c4e%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637373956445923997&sdata=FmMRPyvFpSH%2F%2FPhg7Ofa0DCF0dezlDBSYqW917M1uKg%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARH3NUEPPR4CJ72QHOFSPBDSJAUI5ANCNFSM4SDQMK6Q&data=02%7C01%7Csoren%40maigaard.com%7C136216a10dc2475bee3608d8683c6c4e%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637373956445923997&sdata=w4lsDNNgR43BQ88na8ShSE9tZJts65b%2F3wORZnepEUo%3D&reserved=0.

Kemmey commented 3 years ago

It changes as it see the states change. So exactly as in your example. Up to one hour to detect and then new schedule until charged and state changes again and new schedule is set. You can always just tap the complication and launch the app to refresh immediately. So if you just plugged in and want to keep track, just launch the app once to get the quicker interval. I find that to be the best compromise between up to date data and power usage on both watch and vehicle.

sorenmaigaard commented 3 years ago

Understood.

If I set the interval in settings to a low value, but don’t allow the app to wake up the car, would it detect that the car is charging/driving/supercharging quickly (because it is then awake) automatically?

Naturally I would then get very few updates when the car is parked and not charging, since the app would not wake up the car here and get a status.

Best Søren

On 4 Oct 2020, at 10.46, Kim Hansen notifications@github.com wrote:



It changes as it see the states change. So exactly as in your example. Up to one hour to detect and then new schedule until charged and state changes again and new schedule is set. You can always just tap the complication and launch the app to refresh immediately. So if you just plugged in and want to keep track, just launch the app once to get the quicker interval. I find that to be the best compromise between up to date data and power usage on both watch and vehicle.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKemmey%2FKemmey-TeslaWatch-Public%2Fissues%2F159%23issuecomment-703223644&data=02%7C01%7Csoren%40maigaard.com%7C349171486a54448b36f108d86842068b%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637373980084927609&sdata=TOka5qxllawXmWFnlrME15RxwwZ%2FOpTEkpdyuPcMUhQ%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARH3NUCUJMZAFUQJPSKZKOLSJAY7LANCNFSM4SDQMK6Q&data=02%7C01%7Csoren%40maigaard.com%7C349171486a54448b36f108d86842068b%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637373980084932604&sdata=a%2BAJ60zbpL%2F%2B5XLqEboh1JaU%2F8uZzqAE2teZibFwhAw%3D&reserved=0.

Kemmey commented 3 years ago

Yes, but be aware that watchOS will only allow ~50 background updates per 24 hours. So you would be hitting the background update budget limit quite quickly doing so.

sorenmaigaard commented 3 years ago

Hi

Interesting. Is that per app or total background updates across apps.

Running every 15 min from 7-19 results in 48 updates. That could work 🙂

Best Søren

On 4 Oct 2020, at 12.19, Kim Hansen notifications@github.com wrote:



Yes, but be aware that watchOS will only allow ~50 background updates per 24 hours. So you would be hitting the background update budget limit quite quickly doing so.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKemmey%2FKemmey-TeslaWatch-Public%2Fissues%2F159%23issuecomment-703233777&data=02%7C01%7Csoren%40maigaard.com%7Cde329a3a5c5849fd310308d8684ee335%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637374035740552873&sdata=CYdq%2F7EBDcwzUvNWjE0g5c8UtWQIiHdyWC6JqfnV%2F40%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARH3NUHU7IJT72TBWSSKFGDSJBDYRANCNFSM4SDQMK6Q&data=02%7C01%7Csoren%40maigaard.com%7Cde329a3a5c5849fd310308d8684ee335%7Cb6e1344f67744d1cbde6c58dbe6ef96e%7C1%7C0%7C637374035740562864&sdata=swWllEJmFhm5DZuovfL0OowSr5NNRUwVFcc9molTJwA%3D&reserved=0.

Kemmey commented 3 years ago

It is per app :-D so yeah, it would work for a normal workday. But you'd have to turn your watch off or manually adjust the schedule each morning and evening.

I suggest just tapping the complication once, when you want to monitor "intensely". My experience is that I do so anyway...