Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

netatmo welcome - local cam finder


Question

Posted (edited)

Hi,

 

it is possible to use the jpg-stream of the netatmo welcome in your own lan and without the netatmo api. I've written a scene to detect the correct url for the camera settings of the HC2 over the netatmo api. (See screens)

 

Somebody interested? It is a first beta version because the url could change from times to times. At the moment I don't know and we have to test it. 

 

Please login or register to see this code.

 

Greetings :)

 

Please login or register to see this attachment.

 

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Edited by boomx

Recommended Posts

  • 0
Posted

I have a Netatmo Presence, and i tried to run the script in HC2 (4.110). I have created an empty app at the Netatmo website to get the client ID and secret key. I have created the scene with these credentials and the login/pass. The scene/script runs, but it stops at below message, and doesn’t output the IP and stream url.

 

 [DEBUG] 10:10:33: netatmo welcome cam finder v1.0b
 [DEBUG] 10:10:33: Debug: english
 [DEBUG] 10:10:34: API-Call was done.

 

Am i missing a step?

  • 0
Posted
On 23-1-2017 at 1:59 PM, HomeSystem.sk said:

hey guys,

does this VD works for Netatmo Presence as well? Customer is trying it but all he gets is 

API-Call was done - Call -Error. oAuth 2.0 returns nothing.

 

 

 

This is a script/scene to get the IP and the stream URL for the camera, it is not a VD. With the response of the script/scene you can add a camera to your HC2 with the stream of your Netatmo Presence/Welcome.

 

It seems that you you are using the wrong credentials to access the API, hence the error message you receive.

  • 0
Posted
5 hours ago, eGuard said:

 

This is a script/scene to get the IP and the stream URL for the camera, it is not a VD. With the response of the script/scene you can add a camera to your HC2 with the stream of your Netatmo Presence/Welcome.

 

It seems that you you are using the wrong credentials to access the API, hence the error message you receive.

 

Sorry, yes I know it is scene :D 

so the error may mean only wrong info from netatmo right?

  • 0
Posted (edited)

According to @boomx the Netatmo Presence api is slightly different. In line 44 you will have to change the request body to

 

Please login or register to see this code.

I have tried it at my end, and it works like a charm.

Edited by eGuard
corrections
  • 0
Posted

If i add new camera for netatmo presence i see broken picture? Any idea ? What i could do wrong ?

 

Thanks,
Viljam

  • 0
Posted

This works good, but if i have more then one camera, how do i proced? 

 

The Script vill only find one Cam

  • 0
Posted

With the last V4.511beta, I  have this error.

[DEBUG] 21:31:45: Debug: english
[DEBUG] 21:31:45: 2018-10-11 21:31:45.195583 [ error] Handshake error: certificate verify failed
[DEBUG] 21:31:45: 2018-10-11 21:31:45.196653 [ error] Handshake error: bad message type

@

Please login or register to see this link.

 

Please login or register to see this link.

, can you help us ?

 

 

  • 0
Posted
1 hour ago, titof_44 said:

With the last V4.511beta, I  have this error.

[DEBUG] 21:31:45: Debug: english
[DEBUG] 21:31:45: 2018-10-11 21:31:45.195583 [ error] Handshake error: certificate verify failed
[DEBUG] 21:31:45: 2018-10-11 21:31:45.196653 [ error] Handshake error: bad message type

@

Please login or register to see this link.

 

Please login or register to see this link.

, can you help us ?

 

 

 

try to add into GET request 

 

checkCertificate = false

 

like i did for my scene

 

 

  • Like 1
  • 0
Posted

Hello all,

 

Here is the latest version of Netatmo Welcome camera finder scene: 

Please login or register to see this attachment.

 

Enjoy coding and your HA :-) 

  • Like 2
  • 0
Guest CezaryF
Posted

Sankotronic i have problem . I write your code but in answer i have comunicate netatmo-oAuth connected. I add screen shot .Please help !

Please login or register to see this attachment.

  • 0
Posted
3 hours ago, CezaryF said:

Sankotronic i have problem . I write your code but in answer i have comunicate netatmo-oAuth connected.

 

Hi @CezaryF ,

 

I have downloaded scene and check it again and it is working for me just fine. Did you properly setup your username. password, client ID and client secret?

 

  • 0
Posted

I have exactly the same Problem :-( I have correctly setup username, password, client ID and client secret.

  • 0
Guest CezaryF
Posted
22 godziny temu, Sankotronic napisał:

 

Hi @CezaryF ,

 

I have downloaded scene and check it again and it is working for me just fine. Did you properly setup your username. password, client ID and client secret?

 

Hi @Sankotronic

 

Please login or register to see this code.

  • 0
Posted

does this now support the Netatmo Presence Camera

 

1. with light working

2. 2 x Netatmo Presence Camera's connected?

just new here@!

  • 0
Posted

I have the same issue. Is there a solution for this problem available? I setup the script with all correct password, client ID and secret, but receive the same message as indicated in the screenshot above.

 

Regards,

Arno

  • 0
Posted

OK found it myself - following the hint from someone else in this forum.

 

In the source code the following needs to be changed from "camera" to "presence". Then it works!

function oAuth(nextFunction)
 local request_body = 'grant_type=password&client_id=' .. client_id .. '&client_secret=' .. client_secret .. '&username=' .. username .. '&password=' .. password .. '&scope=read_presence access_presence'

 

Regards,

Arno

  • 0
Posted

Hello @Sankotronic,

Thanks for this beautiful scene!! (I dont know why the scene of Boom gave error)

two questions:

- if I past the link in my VD Welcome scene it does not show a picture if I past the ink in my browser it show a pic of my Welcome, any idea?

Please login or register to see this image.

/monthly_2020_04/image.png.33c11c547548bbf172ea2959cf63766a.png" />

image.png.cb8725db1c8a75e2082174e285227d76.png

 

How to retrieve the same info from my Presence camera?

Please advice,

//Sjakie

  • 0
Posted

does this work with the nest hello doorbell too?

.

  • 0
Posted

Perfect code, working fine!

So just to make small summary for the matter that @ArnoNym mentioned:

if you have Netatmo Welcome -> use "camera"

if you have Netatmo Prescence -> use "presence"

if you have Netatmo Doorbell -> use "doorbell"

 

Checked and all work well!

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...