Java
Switch branches/tags
Nothing to show
Clone or download
maxbbraun Cleaner OAuth access token refresh logic
Instead of checking for authentication errors in the response, use the
expiration time to trigger an access token refresh.
Latest commit 1d11c70 Jul 18, 2018

README.md

Smart Mirror

This is the source code for the prototype UI of my smart mirror projects outlined in this article and its follow-up.

"Smart Mirror"

Simply import the whole project into Android Studio, then build and run the apk. The first prototype uses HomeActivity.java and the second one uses CompactHomeActivity.java.

While the time, date, and news show up without any additional changes, you need to first enable the respective APIs in order to see the weather, commute, and body measures. Edit keys.xml and enter the key for the Dark Sky API, the key for the Google Maps Directions API, and multiple keys for the Nokia Health API. The home and work addresses for the commute need to be entered in commute.xml.

License

Copyright 2016 Max Braun

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.