check if parent device has an ip address assigned Log("Checking if parent device is configured correctly.") Please could people share how they are presenting and handling errors in their Vera / OpenLuup plugins, I’ve tried to look through various Implementation files, but very few seem to have anything, other than perhaps a luup.task (which for some reason doesn’t work for me) ?īelow is the startup and check/validation functions for a plugin I’m working on. Luup.register_handler("FitbitRequestHandler", "fitbit") Luup.log("lul_parameters Table is empty") end Luup.log ('fitbit_Handler: parameters are: '.tostring(k).'='.tostring(v)) end I assume this is where a luup.register_handler would come in, and I could register my Vera handle (using https ?, as that’s required by Fitbit) as the redirect domain/url e.g.Īny suggestions on how to do this would be appreciated.įunction FitbitRequestHandler(lul_request, lul_parameters, lul_outputformat) How best do i capture/process the URL call Fitbit issues? (More specific details are here - )Īnd it’s the d62d6f5bdc13df79d9a5f part of that new page/URL which I need. Here’s an example of a redirect URL that Fitbit will redirect the user too, with their associated authorisation code, which I need in the process later on to obtain the required access token. Where I’m getting stuck is with the authorisation code step, which Fitbit provides appended to the domain name I registered with them when registered my app. With an app registered, I’ve called mine “VERA”, I’ve written chunks of Lua code to support the various steps, (completed manually) my goal now is to try and put them all together into functions to be called in sequence on my Vera and/or OpenLuup. ![]() ![]() ![]() In addition to having a fitbit account, to get going with any integration, you need to register your app, via here. Using JavaScript, CSS, and SVG, developers now have a fast, easy way to build apps and clock faces for Fitbit OS. I’m trying out the Fitbit api, not only to extract some activity data for a potential plugin, but also to learn more about OAuth 2.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |