Today's project is from Tim Dams, on a device that I'd not seen before, but now that I've seen how Tim is using it and that I can C# it, well... :)
I wrote a small C# portable class library (.NET4.5/WP8.1/Win8) that allow users to talk with the Smappee API.
I recently bought a Smappee and I really love the device. It enables me to track the power usage of all my devices throughout the house and I even found some nasty buggers who consume way more than they should. Currently only Android and IPhone users can really benefit from this device (the my.smappee.com webapp is too lightweight to really utilize the full power of the device).
I’m planning on writing a simple Windows Phone 8 app (and perhaps Windows 8) to have some basic information Smappee data on my phone. Unfortunately the API is pretty meagre (you can’t access everything needed), so I won’t be able to recreate the existing Android app. The full API documentation can be found here.
Before you can use the public API, you will first need to request the credentials (client_id and cleint_secret) from Smappee, explained here. Once that is done, you’ll also need to have an active my.smappee.com account, which you can create using the Iphone or Android app (you can’t do this through the website unfortunately). These 4 credentials will be needed to access the API.
Where is the goddamn code?
The actual code for the PCL is hosted here: https://github.com/timdams/Smappee_API_CS
This code was build a few minutes ago and a lot is missing. Specifically:
Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.