patricklopdrup / OrstedWidget

Android Widget for MitØrsted app (electricity consumption)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ørsted Widget

This is an Android app written in Kotlin. The purpose is to have an app where you log in with your Ørsted account once and the app provides a widget where you can see your electricity consumption.

Widget in action

Widget running on an OnePlus 7T Pro.

First Mock-up

Mock-up made in Figma. Showed on an OnePlus 7T Pro.

JSON

   "consumptions": [
                {
                    "start": "2019-11-23T23:00:00.000Z",
                    "end": "2019-11-24T23:00:00.000Z",
                    "kWh": 0.63,
                    "COPI": {
                        "xAxisLabel": "Søn",
                        "currentConsumptionPrefix": "Søndag den 24. november 2019 brugte du",
                        "unit": "kWh",
                        "currentConsumption": 0.63
                    }
                },
                {
                    "start": "2019-11-24T23:00:00.000Z",
                    "end": "2019-11-25T23:00:00.000Z",
                    "kWh": 2.26,
                    "COPI": {
                        "xAxisLabel": "Man",
                        "currentConsumptionPrefix": "Mandag den 25. november 2019 brugte du",
                        "unit": "kWh",
                        "currentConsumption": 2.26
                    }
                },

Here is how some of the consumptions objects looks in the data array in the JSON.

This is by using the HTTP request:

   https://prod.copi.obviux.dk/consumptionPage/${my_external_id}/daily

About

Android Widget for MitØrsted app (electricity consumption)


Languages

Language:Kotlin 99.5%Language:Java 0.5%