Page 1 of 1

Retrieve UUID

Posted: 10 May 2016 18:18
by Slayes
Hello,

I tried a http.request in JS, 'http://127.0.0.1:8083/ZWaveAPI/Run/cont ... uuid.value' in the main.js, but finally .. timeout ({"status":-1,"statusText":"Timeout was reached"}). I understand that zway is not fully loaded when main.js execute this request.

I am surprised that there was no global variable for the uuid.

Somebody know if it's possible to retrieve this uuid, available when main.js is loaded ?

Re: Retrieve UUID

Posted: 11 May 2016 11:53
by Slayes
I'm searching one UUID, might be the value of homeId can be "ok", but :

Via code 'zway.controller.data.homeId.value', i found the value : -983536780
Via the back office 'http://127.0.0.1:8083/expert/#/network/controller', i found the value : 0xc5606b74


Somebody know why thos difference ?

Re: Retrieve UUID

Posted: 11 May 2016 12:19
by pz1
Slayes wrote:Somebody know why thos difference ?
One is hexadecimal the other the binary form

Re: Retrieve UUID

Posted: 11 May 2016 12:24
by Slayes
Arf :) thanks for your reply