Forecasts best times for using green electric energy in the UK

Related tags

Testing Greencast
Overview

Greencast - 24 Hour Green Energy Forecaster

image

Greencast aims to help UK consumers optimise their use of green energy to minimise carbon dioxide emissions.

Consumers in the UK may schedule their electric power use around times when green energy is forecasted to be available; switching on/plugging in when energy is green and off when it is not. This will help them reduce carbon emissions at a grassroots local level.

Carbon intensity is used as a primary measure to track carbon emissions from power generation, it shows how much carbon dioxide may be created per kilowatt hour of electric power use.

Features

  • indicative forecast of carbon emissions of the electric generation system in the UK, at a local level

  • forecasts shown for 30 minute intervals, for the next 24 hours utilises a 'nowcasting' technique adjusting a short period ahead

    • 24 hour forecast for more accurate information
    • provided at 30 minute intervals, for higher granular scheduling
  • carbon intensity level for locality

  • when to plug in to use green energy

  • when to plug out when carbon dioxide emissions are high

  • main energy source for the time period selected

  • percentage of main energy source for the time period selected

    image

    image

  • percentage of total amount of green energy for the time period selected

  • percentage of total amount of fossil fuel for the time period selected

  • energy generation mix, shown in bar chart form, for the selected 1/2 hour, of different energy generators that contribute to energy supply. Accessed from the 'energy mix' button

    image

    image

  • single view app with hidden views with a dark colour theme to reduce battery use and save energy

Technologies

  • Swift version 5.0
  • Xcode Version 13.1
  • Core Data
    • iOS version 15
    • GPX version 1.1
    • XML version 1.0

Services

  • Carbon Intensity API for The United Kingdom of Great Britain, an open API licensed under the CC BY 4.0 license
  • Postcode & Geolocation API for the UK, a free, open source and open data API, MIT licensed
  • iOS Core Data Persistent store
  • iOS Location Manager and Geocoder API services

Permissions

  • Users will have to give permission to find and use the device's location

    image

  • If permission to use location services is denied, then users are requested to supply the outercode (first part of UK postcode)

    image

Target

  • Target device; iPhone in portrait mode
  • Intended iOS version: 15+

Launch

The app uses information for UK energy generation and must be provided with a UK location.

This may be done in one of two ways:

  • GPX - for multiple locations

    To simulate UK locations the project comes with a GPX file, integrated into the xcode workspace.

    <?xml version="1.0"?>
    <gpx version="1.1" creator="Xcode">
        <wpt lat="51.69276635595619" lon="-0.17803450461617143">
            <name>LocationOne</name>
            <time>2021-10-31T12:01:00Z</time>
        </wpt>
    
        <wpt lat="52.567480044794316" lon="-1.887361027238978">
            <name>LocationTwo</name>
            <time>2021-10-31T12:02:00Z</time>
        </wpt>
    
        <wpt lat="53.58566197294269" lon="-2.2538450136520343">
            <name>LocationThree</name>
            <time>2021-10-31T12:03:00Z</time>
        </wpt>
    
        <wpt lat="56.0377957614273" lon="-3.1931934859564564">
            <name>LocationFour</name>
            <time>2021-10-31T12:04:00Z</time>
        </wpt>
    
        <wpt lat="51.52193061049775" lon="-3.1724954926025237">
            <name>LocationFive</name>
            <time>2021-10-31T12:05:00Z</time>
        </wpt>
    </gpx>
    

    To use this ensure the GPX file 'GBLocations' is selected in Xcode:

    Xcode > Product > Scheme > Edit Scheme
    

    Then enable 'Core Location' to allow location simulation and in the 'Default Location' drop down meu choose 'GBLocations'

    image

    Locations are set to update at an interval of 1 minute for the locations provided. To view information for different locations, wait 1 minute before tapping the Greencast app's refresh button.

  • Location Simulation - for single location

    Select a single UK location in Xcode whilst in run debug mode:

    Xcode > Debug > Simulate Location > 'London, England'
    
  • Note

    Delete the app and shut down simulator before re-running a clean build via Xcode to avoid issues with persistent store etc.

    Alternatively, you may add a 'Run Script' to 'Build Phases' in your project, and configure it to uninstall the app before running it again. The command for doing this is given in the example below:

    image

    Ensure the simulator is running before running a build with the script shown above.

You might also like...
Green-grass-ios - GitHub Gardener? Start with Green Grass
Green-grass-ios - GitHub Gardener? Start with Green Grass

Green Grass 🌿 Introduction GitHub Gardener? Start with Green Grass! This app ma

A tech-for-good, green and digital solution based on CSA which promotes the green agricultural production for small farmers, provides responsible produce for consumers.
A tech-for-good, green and digital solution based on CSA which promotes the green agricultural production for small farmers, provides responsible produce for consumers.

Green Farm IBM : Call for Code 2021 Green Farm is a tech-for-good, green and digital solution based on CSA which promotes the green agricultural produ

Weather and forecasts for humans. Information you can act on.

Tropos Weather and forecasts for humans. Information you can act on. Most weather apps throw a lot of information at you but that doesn't answer the q

This app is a sample app that recognizes specific voice commands such as
This app is a sample app that recognizes specific voice commands such as "make it red", "make it blue", "make it green", and "make it black" and change the background color of the view in the frame.

VoiceOperationSample This app is a sample app that recognizes specific voice commands such as "make it red", "make it blue", "make it green", and "mak

An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and  Watch.

KFSwiftImageLoader KFSwiftImageLoader is an extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memor

Diabetes: test the FreeStyle Libre glucose sensor as a Bluetooth Low Energy device, even directly from an Apple Watch.
Diabetes: test the FreeStyle Libre glucose sensor as a Bluetooth Low Energy device, even directly from an Apple Watch.

Since the FreeStyle Libre 2 / 3 glucose sensors are Bluetooth Low Energy devices, I am trying to leverage their capabilities to implement something ne

The purpose of this repository is to serve as an example for writing a SwiftUI IOS app for connecting to an HM-10 over Bluetooth Low Energy
The purpose of this repository is to serve as an example for writing a SwiftUI IOS app for connecting to an HM-10 over Bluetooth Low Energy

The purpose of this repository is to serve as an example for writing a SwiftUI IOS app for connecting to an HM-10 over Bluetooth Low Energy. The example provided also sends the IOS devices location over BLE to the HM-10, when the button is pressed. An example Arduino program is provided that allows the user to receive messages from the IOS device on the HM-10.

MetaWear-Swift-Combine-SDK - Build iOS and macOS apps controlling MetaWear Bluetooth Low Energy wearables without C++ or CoreBluetooth expertise An advanced Swift (IOS Native) application that uses SOLID architectural principles, consumes a RESTFUL Service, downloads & images using best practices.
An advanced Swift (IOS Native) application that uses SOLID architectural principles, consumes a RESTFUL Service, downloads & images using best practices.

dog-playground-ios An advanced Swift (IOS Native) application that uses SOLID architectural principles, consumes a RESTFUL Service, downloads & im

A Swift micro library for generating Sunrise and Sunset times.

Solar A Swift helper for generating Sunrise and Sunset times. Solar performs its calculations locally using an algorithm from the United States Naval

Dates and times made easy in iOS
Dates and times made easy in iOS

DateTools DateTools was written to streamline date and time handling in iOS. Classes and concepts from other languages served as an inspiration for Da

🕐 Format your dates/times as emojis.
🕐 Format your dates/times as emojis.

EmojiTimeFormatter Format your dates/times as emojis 🕟 🕑 🕗 Description You can build easy to understand user interfaces with EmojiTimeFormatter or

A Swift micro library for generating Sunrise and Sunset times.

Solar A Swift helper for generating Sunrise and Sunset times. Solar performs its calculations locally using an algorithm from the United States Naval

Custom Time Picker ViewController with Selection of start and end times in Swift 🔶
Custom Time Picker ViewController with Selection of start and end times in Swift 🔶

LFTimePicker Custom Time Picker ViewController with Selection of start and end times in Swift 🔶 . Based on Adey Salyard's design @ Dribbble One to tw

Typical master detail SAMPLE application written in Swift to test NY Times Most Popular API
Typical master detail SAMPLE application written in Swift to test NY Times Most Popular API

NYTimes-Demo: Typical master detail SAMPLE application written in Swift to test NY Times Most Popular API. This SAMPLE application is written in Swift

News app to see daily news from new York Times

News This project is demo project for newyork time apis news feed. Generally thi

A simple app to hit the NY Times Most Popular Articles API

MostPopularArticles A simple app to hit the NY Times Most Popular Articles API a

The Objective-C Style Guide used by The New York Times

NYTimes Objective-C Style Guide This style guide outlines the coding conventions of the iOS teams at The New York Times. We welcome your feedback in i

Tapper - simple app for iOS and iPadOS allows a user to tap a button as many times as possible in 20 seconds
Tapper - simple app for iOS and iPadOS allows a user to tap a button as many times as possible in 20 seconds

Tapper Table of Contents Description Screenshots Installation Usage Code Contact

Owner
null
Erik is an headless browser based on WebKit. An headless browser allow to run functional tests, to access and manipulate webpages using javascript.

Erik Erik is a headless browser based on WebKit and HTML parser Kanna. An headless browser allow to run functional tests, to access and manipulate web

Eric Marchand 544 Dec 30, 2022
PinpointKit is an open-source iOS library in Swift that lets your testers and users send feedback with annotated screenshots using a simple gesture.

PinpointKit is an open-source iOS library in Swift that lets your testers and users send feedback with annotated screenshots using a simple gesture. F

Lickability 1.1k Jan 6, 2023
Mockingbird was designed to simplify software testing, by easily mocking any system using HTTP/HTTPS

Mockingbird Mockingbird was designed to simplify software testing, by easily mocking any system using HTTP/HTTPS, allowing a team to test and develop

FARFETCH 183 Dec 24, 2022
Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running in minutes. @buildasaur

Buildasaur Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running

Buildasaurs 774 Dec 11, 2022
Test task application based on Swift using CoreData, Alamofire, AlamofireImage and CocoaPods

iTunes Search Test task application based on Swift using CoreData, Alamofire, AlamofireImage and CocoaPods Features ?? Searching music albums by name

Alexander Zhukov 0 Oct 31, 2021
Fake iPhone real devices location using this small app

Project Title iPhone IP Spoofer for Real Devices. Description IP, or internet protocol, is a string of numbers that identifies your iPhone, iPad, or w

Ebahim Mostafa 4 Sep 20, 2022
Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine

Bluepill is a tool to run iOS tests in parallel using multiple simulators. Motivation LinkedIn created Bluepill to run its large iOS test suite in a r

Mobile Native Foundation 3.1k Jan 3, 2023
Bank-Test - MVVM List-Details App using combine

Bank-Test MVVM List-Details App using combine Pods used in this Task Moya with A

Ahmed Allam 0 Jan 1, 2022
T - A simple testing framework using closures and errors

t Quickly test expectations What is t? t is a simple testing framework using clo

OpenBytes 6 Nov 7, 2022
Marvel - Marvel Characters App using MVVM, and including unit tests

Marvel About The purpose of this project is to develop a app using MVVM, and inc

null 1 Mar 20, 2022