Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the code still work ? #86

Open
ldb2000 opened this issue Dec 11, 2017 · 3 comments
Open

Does the code still work ? #86

ldb2000 opened this issue Dec 11, 2017 · 3 comments

Comments

@ldb2000
Copy link

ldb2000 commented Dec 11, 2017

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

@bauzer714
Copy link
Contributor

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?

@ldb2000
Copy link
Author

ldb2000 commented Dec 11, 2017

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

@bauzer714
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants