biemond / com.athom.awair

Homey awair app
GNU General Public License v3.0
5 stars 3 forks source link

possible to use local data instead of cloud? #9

Open pjmpessers opened 4 years ago

pjmpessers commented 4 years ago

Is it possible to let this app get it's local data instead of thru cloud where you only get data every 5 minutes. If you give awair a static ip and you go to there awair app you can enable local sensor. On that moment you can go to http://"Awair ip-adress"/air-data/latest and you see the refreshed values come in every 10 seconds when you refresh the webbrowser with F5.

Just a thought.

biemond commented 4 years ago

nice, never knew, let me support both as an separate device

pjmpessers commented 4 years ago

Thank you Edwin. Would be great.

biemond commented 4 years ago

so it look like only the new devices are doing this , my wooden awair does not support this somehow,

{
    "timestamp": "2020-08-14T19:38:12.609Z",
    "score": 78,
    "temp": 30.04,
    "humid": 55.80,
    "co2": 0,
    "voc": 205,
    "pm25": 4,
    "lux": 0.0,
    "spl_a": 40.0
}
biemond commented 4 years ago

nice you can set developer mode on old devices and it works https://docs.google.com/document/d/1001C-ro_ig7aEyz0GiWUiiJn0M6DLj47BYWj31acesg/edit

pjmpessers commented 4 years ago

Yesssss. Great. So you think there is a possibility that you can make a app that works locally?

biemond commented 4 years ago

yeah no problem. it is just plain http.

pjmpessers commented 4 years ago

Great. Thank you. I will wait patiently for the upgrade.👍

pjmpessers commented 4 years ago

Sorry for bothering you, but is it still possible for you to make a app that uses local data? That would be great.

biemond commented 4 years ago

yep this week I will start on it.

pjmpessers commented 4 years ago

Thank you highly appreciated. Can i buy you a beer. Not by paypal, but a bank transfer or something?

biemond commented 4 years ago

So I started the work, I guess today or tomorrow I have a test version available

pjmpessers commented 4 years ago

Yessss. Thank you very much, Edwin. When i see the testversion on github i will sideload it to try it out.👍🏻

biemond commented 4 years ago

it is going really well, already got it working. only need to process the results

pjmpessers commented 4 years ago

Your the best.

biemond commented 4 years ago

https://homey.app/nl-nl/app/com.athom.awair/Awair/test/

biemond commented 4 years ago

so for now I poll every minute. we can change that later to 20 a 30 seconds. I don't know if this puts a big load on homey.

pjmpessers commented 4 years ago

I installed the test. At first i didn't notice any difference, but then i saw by devices that there was a second device for local data. Great. I installed this device and indeed i get a readout every minute.

Only small problem is that current chemical value (VOC) has no readout..

biemond commented 4 years ago

done, fixed and pushed a new version on https://homey.app/nl-nl/app/com.athom.awair/Awair/test/

pjmpessers commented 4 years ago

Your fast. :-).

Also when using local data i can't make a flowchart with it in if...(CO2 changed. etc.) or in and...

biemond commented 4 years ago

oh as condition.

pjmpessers commented 4 years ago

P.S. Thanks. VOC reading is back

biemond commented 4 years ago

found it ,let me add the new device

pjmpessers commented 4 years ago

like starting a flow that starts 'When CO2 changed' Is possible to use in a flow when using the cloud data. But not when using local data. Also in the 'and' there is not possible to use something like 'level of air quality'. I can use the data of the awair now.

biemond commented 4 years ago

and pushed a new version.

biemond commented 4 years ago

you can now use the awair xxxx id in flows like this.

Screenshot 2020-10-04 at 19 54 39
pjmpessers commented 4 years ago

Thank you very much. This is a big improvement. The awair is in the kitchen. And when i'm cooking thanks to awair and you app my mechanical fan goes to 3. When i was using it with cloud data it only get's it's data once every 5 minutes. That was to late. But now with local data it starts with in minutes. Thanks you.

Can i buy you a beer. I don't have paypal, but maybe bank transfer?

biemond commented 4 years ago

cool, is 1 min ok?
no need for that , thanks for pointing this out and testing it from your side.

pjmpessers commented 4 years ago

I find 1 minute perfect. I get it when you say that less then 1 minute can be u huge load for homey.1 minute is a big improvement compared to 5 minutes.

Thanks again for all your effort in this app. 👍