Ole8700 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
1 stars 0 forks source link

Implement Netatmo Binding #262

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Feature Description
I would like to see a Netatmo (www.netatmo.com) binding for getting the 
measures (or the last measuere) of the netatmo weather station (Temperature, 
Humidity, Co2, Pressure, Noise).

API Details: 
http://dev.netatmo.com/
http://dev.netatmo.com/doc/

2. Example Use Case
- Show the last measures
- Show the history of the data
...

Cheers
Jens

Original issue reported on code.google.com by jens.ih...@googlemail.com on 27 Apr 2013 at 10:00

GoogleCodeExporter commented 9 years ago
I just ordered mine and will start coding (and contributing) a binding next 
week.

Polling their API for updates every couple of minutes will be first, of course. 
I don't know yet if it makes sense to implement a QueryablePersistenceService 
to access historic data.

Original comment by abr...@gmail.com on 1 May 2013 at 5:31

GoogleCodeExporter commented 9 years ago
If you begin coding, keep in mind that it is possible to get only the last 
measure:

"If you want only the last measurement, do not provide date_begin, and set 
date_end to "last"."

Details on http://dev.netatmo.com/doc/restapi/getmeasure

>I don't know yet if it makes sense to implement a QueryablePersistenceService 
to access historic data.
I think thats for the extrapoints or the icing on the cake. ;-) 

If there is something to test, let me know. I have a netatmo and a running 
openhab.

Cheers
Jens

Original comment by jens.ih...@googlemail.com on 1 May 2013 at 8:29

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 7 May 2013 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 7 May 2013 at 3:50

GoogleCodeExporter commented 9 years ago
Repository is at https://github.com/abrenk/org.openhab.binding.netatmo, I will 
push some code maybe tomorrow.

The first updates have been sent to my bus:

03:21:09.085 INFO  runtime.busevents[:46] - Wohnzimmer_Kohlendioxid state 
updated to 898
03:21:09.635 INFO  runtime.busevents[:46] - Wohnzimmer_Sonometer state updated 
to 34
03:21:09.871 INFO  runtime.busevents[:46] - Wohnzimmer_Luftdruck state updated 
to 1010.4

Original comment by abr...@gmail.com on 8 May 2013 at 1:27

GoogleCodeExporter commented 9 years ago
very cool! Thanks for this update! Looking forward to reviewing it ...

Original comment by teichsta on 8 May 2013 at 4:24

GoogleCodeExporter commented 9 years ago
Cool, I would like to review/test it too!

Original comment by jens.ih...@googlemail.com on 18 May 2013 at 7:11

GoogleCodeExporter commented 9 years ago
I've finally gotten around to commit a first version. It has been running 
without any problems for the last week or so.

Original comment by abr...@gmail.com on 19 May 2013 at 5:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 21 May 2013 at 9:40

GoogleCodeExporter commented 9 years ago
Is there any progress on this issue? 
Seems that the repo at github hasn't changed for a while.

Original comment by josh.m5968 on 1 Sep 2013 at 7:15

GoogleCodeExporter commented 9 years ago
The binding is ready for review.

It has been running in my installation without any problems since my last 
comment.

But it seems that the version I committed to github was missing a crucial 
"setProperlyConfigured" call. Without it the refresh service was not started. 
So if you tried the binding but got no updates on your event bus, please give 
it another try with the updated version.

Original comment by abr...@gmail.com on 11 Sep 2013 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by kai.openhab on 11 Sep 2013 at 4:31

GoogleCodeExporter commented 9 years ago
Please add querying the outdoor sensor(s), that would be so nice! Ecpecially 
because you could now bind more of those sensors and use them not only outside 
of the house!

Thanks for you work!

Original comment by jens.ih...@googlemail.com on 20 Sep 2013 at 8:45

GoogleCodeExporter commented 9 years ago
I just pushed support for reading measurements of modules to the GitHub 
repository.

Original comment by abr...@gmail.com on 22 Sep 2013 at 7:20

GoogleCodeExporter commented 9 years ago
Pull request: https://github.com/openhab/openhab/pull/30

Original comment by abr...@gmail.com on 6 Oct 2013 at 6:57

GoogleCodeExporter commented 9 years ago
The binding now supports auto-discovery of devices! You don't need to configure 
any items, the binding will get the list of devices from the Netatmo API and 
create a netatmo.items and netatmo.sitemap file containing all the devices the 
configured user has access to by itself.

See the documentation at 
https://github.com/abrenk/openhab/tree/netatmo/bundles/binding/org.openhab.bindi
ng.netatmo for details.

Original comment by abr...@gmail.com on 17 Oct 2013 at 4:26

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 5 Nov 2013 at 10:47

GoogleCodeExporter commented 9 years ago
I installed the netatmo binding at last with success, but I had little trouble. 
In the logfiles I got a message stating:

"unable to find valid certification path to requested target"

After I added the netatmo server certificate in the Java cacert file it worked 
as expected.

Great job :)

Original comment by tiger.bo...@googlemail.com on 8 Nov 2013 at 7:12

GoogleCodeExporter commented 9 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 9 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51