nest-api icon indicating copy to clipboard operation
nest-api copied to clipboard

Does the code still work ?

Open ldb2000 opened this issue 7 years ago • 3 comments

I have used this code a long time ago. But now I have lots of errors...

ldb2000 avatar Dec 11 '17 19:12 ldb2000

Yes it still works. Nest has made lots of changes and I use this class everyday for data aggregation. Perhaps you need to update your class?

bauzer714 avatar Dec 11 '17 19:12 bauzer714

When I try the example.php I have the following error

Location information:
PHP Notice:  Undefined property: stdClass::$structure in /home/pi/nest-api/nest.class.php on line 159

ldb2000 avatar Dec 11 '17 19:12 ldb2000

Examples isn't really written to be executed in it's entirety.. it's simply to show you the things you can do with it. However, I can confirm that he $nest->getUserLocations(); works for me. There isn't much being done in that function. Maybe on line 159 you can do a var_dump($this->last_status); return; and start tracing what's actually happening.

bauzer714 avatar Dec 11 '17 20:12 bauzer714