emericg / WatchFlower

A plant monitoring application that reads and plots data from compatible Bluetooth sensors and thermometers like Xiaomi 'Flower Care' or Parrot 'Flower Power'
https://emeric.io/WatchFlower
GNU General Public License v3.0
195 stars 29 forks source link

[Feature Request] Background notifications on iOS #20

Open fnutt opened 4 years ago

fnutt commented 4 years ago

First of all, thanks for a wonderful app and thanks for pushing it to App Store.

Feature request: Notifications on iOS (and Android for those using it) would be highly appreciated. This would allow me to know when to water the plants instead of having to check the app regularly. Preferably it would be possible to set certain limits on moisture, temperature, luminosity etc., e.g. when moisture is below X -> send notification.

Roughtrade commented 4 years ago

In my opinion this is not really possible with this hardware. Your phone would have to constantly send requests to the sensors in the background to be able to send a notification. BLE is very vulnerable to power saving mode, especially with IOS. This already didn't work with the Corona app from Germany. For such a thing you might need a mediator like an ESP32, which can send requests to the sensors and would provide them via WLAN. Example: https://github.com/sidddy/flora stay healthy and ceep calm

bvalat commented 4 years ago

I would like notification as well. Should be possible to plan updates at some hours of the day to refresh data and send notification.

fnutt commented 4 years ago

Once every 6 hours as an example?

emericg commented 4 years ago

Background service is in the work for Android. I really don't know if I can do it for iOS. It would be once or twice per day, not more. Enough to have notifications triggered, not to have realtime graphs. Doing so every hour would kill both smartphone and sensors battery. For pretty graph, we would have to rely on #12

Also, if the sensors are out of range when the background service start, that trigger many kinds of problems that have to be though through.

tjaadvd commented 3 years ago

If you add a feature for iOS Shortcuts app to fetch data in de the app, that shortcut can be triggered via automations in the Home app.

emericg commented 2 years ago

Who want's to try Android background updates? Send me an email with your Google account and I'll add you to the testers!