Skip to content

patricklopdrup/OrstedWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ø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)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors