This first-of-its kind, open source React Native app (for web and ios/android) provides live, second-by-second information on the output of different generators on the UK grid.
Android Beta iOS Beta iOS Appstore
Tests can either be run:
yarn test- on a unit basis -- TBCyarn e2e- on an end to end basis -- TBC
In order to run the app locally, create a .env file with the environment variable EXPO_PUBLIC_CDN_DOMAIN_NAME=gridcdn.kilowatts.io - this informs react where to look for backend data.
The app is built locally using Expo (this could be moved to expo CI/CD). Build will not work without access to a working Expo account and/or signing credentials, you can set these up following the docs here https://docs.expo.dev/build/introduction/.
Note that if using a different Expo account, the configuration in app.json will need updating.
On iOS, the build targets internal distribution, so devices must be enrolled to the account using eas device:create or manually using UDID.
A production release without developer tools is built.
yarn build:android. This outputs tooutputs/prod.apk. You can run this on a connected usb device usingyarn android:deviceyarn build:ios. This outputs tooutputs/prod.ipa.yarn build:cloud. This builds in the cloud using eas instead.
All data in this app is sourced from the wonderful Elexon insights API https://bmrs.elexon.co.uk/api-documentation. Many thanks to the awesome team there for their continued hard work.