This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
API documentation examples for api are incorrect
RadiantBee
Member
in Archive
I had some minor frustration with the Developer documentation.
Just wanted to list it here so others can benefit:
https://developers.athom.com/api/
Homey.manager( 'api' )
The examples here show the url as `/managers/<manager>` it should be: /manager/<manager> without the `S`.
Also they do not comply to the signature of the function.
The given example will log just null iso the coordinates as the first param is error.
E.g.
Homey.manager('api').get('/managers/geolocation/', function( result ){Should be:
Homey.log( result );
});
Homey.manager('api').get('/manager/geolocation/', function( err, result ){
Homey.log( result );
});
This discussion has been closed.
Comments
But is never documented.
Since .on is used as a callback when things change my guess is that this function is called when the location in Homey changes?
It frustrated me so I just wanted to write it down for others to find.