Retrieve UUID

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Slayes
Posts: 12
Joined: 05 May 2016 12:46

Retrieve UUID

Post 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 ?
Slayes
Posts: 12
Joined: 05 May 2016 12:46

Re: Retrieve UUID

Post 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 ?
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Retrieve UUID

Post by pz1 »

Slayes wrote:Somebody know why thos difference ?
One is hexadecimal the other the binary form
Attachments
Capture.PNG
Capture.PNG (7.96 KiB) Viewed 4307 times
Slayes
Posts: 12
Joined: 05 May 2016 12:46

Re: Retrieve UUID

Post by Slayes »

Arf :) thanks for your reply
Post Reply