GreenHouse Gas footprint calcuation and data source
The GreenHouse Gas (GHG) footprint of each country is measured from the perspective of a consumer. It represents the GHG footprint of 1 kWh consumed inside a given country, in the gCO2eq unit (meaning each GHG is converted to its CO2 equivalent in terms of global warming potential).
The GHG footprint of each production mode takes into account the construction of production units and their usual lifetimes as calculated by the 2014 IPCC report (see wikipedia entry and co2eq.js#L1).
Each country has a GHG mass flow that depends on neighboring countries. In order to determine the GHG footprint of each country, the set of coupled GHG mass flow balance equations of each countries must be solved simultaneously. This is done by solving the linear system of equations defining the network of GHG exchanges (see co2eq.js#L52).
Real-time electricity data sources
- Austria: ENTSOE
- Belgium: ENTSOE
- Bulgaria: ENTSOE
- Czech Republic: ENTSOE
- Denmark: ENTSOE
- Estonia: ENTSOE
- Finland: ENTSOE
- France: RTE
- Germany: ENTSOE
- Great Britain: ENTSOE
- Greece: ENTSOE
- Hungary: ENTSOE
- Ireland: ENTSOE
- Italy: ENTSOE
- Latvia: ENTSOE
- Lithuania: ENTSOE
- Netherlands: ENTSOE
- Norway: ENTSOE
- Poland: ENTSOE
- Portugal: ENTSOE
- Romania: ENTSOE
- Serbia: ENTSOE
- Slovakia: ENTSOE
- Slovenia: ENTSOE
- Spain: ENTSOE
- Sweden: ENTSOE
- Switzerland: ENTSOE
Production capacity data sources
- Belgium: ENTSO-E
- Bulgaria: wikipedia.org
- Czech Republic: ENTSO-E
- Estonia: ENTSO-E
- Great Britain
- Greece: ENTSO-E
- Hungary: ENTSO-E
- Latvia: ENTSO-E
- Lithuania: ENTSO-E
- Netherlands: ENTSO-E
- Poland: ENTSO-E
- Portugal: ENTSO-E
- Romania: ENTSO-E
- Slovenia: ENTSO-E
- Spain: ree.es
- Switzerland: ENTSO-E
Real-time weather data sources
We use the US National Weather Service's Global Forecast System (GFS)'s GFS 0.25 Degree Hourly data. Forecasts are made every 6 hours, with a 1 hour time step. The values extracted are wind speed and direction at 10m altitude, and ground solar irradiance (DSWRF - Downward Short-Wave Radiation Flux), which takes into account cloud coverage. In order to obtain an estimate of those values at current time, an interpolation is made between two forecasts (the one at the beginning of the hour, and the one at the end of the hour).
We use the Natural Earth Data Cultural Vectors country subdivisions (map admin subunits).
Want to help? Join us on slack at http://slack.tmrow.co. In the meantime, here's some things you can do:
- check out the issues
- add your country by writing a parser
- update an existing parser with a different API if you know one with more data or closer to real-time
- optimise the code, correct inaccuracies...
You can also see a list of missing informations displayed as warnings in the developer console, or question marks in the country panel:
The frontend will need compiling. In order to do this, open a terminal and run
docker-compose run web npm run watch
This will watch over source file changes, and recompile if needed.
Now that the frontend is compiled, you can run the whole application, consisting of data collection system (the "feeder"), web server and database, by running the following command in a new terminal:
docker-compose up --build
Head over to http://localhost:8000/ and you should see the map!
Once you're done doing your changes, submit a pull request to get them integrated.
ERROR: Couldn't find env file:env files are used to store sensitive information such as API keys. If you get this error after running
docker-compose up, create an empty file named
secrets.envin the root folder.
ERROR: for X Cannot create container for service X: Invalid bind mount spec "<path>": Invalid volume specification: '<volume spec>'. If you get this error after running
docker-compose upon Windows, you should tell
docker-composeto properly understand Windows paths by setting the environment variable
setx COMPOSE_CONVERT_WINDOWS_PATHS 0. You will also need a recent version of
docker-compose. We have successfully seen this fix work with v1.13.0-rc4. More info here: https://github.com/docker/compose/issues/4274.
KeyError: 'ENTSOE_TOKEN': in order to request data from the ENTSOE, you need an API key. You can create an account and request your API key by following this link. Once you have it, add it to your
No website found at
http://localhost:8000: This can happen if you're running Docker in a virtual machine. Find out docker's IP using
docker-machine ip default, and replace
localhostby your Docker IP when connecting.
ERROR: for mongo Cannot create container for service mongo: C:/ drive is not shared. Please share it in Docker for Windows SettingsDocker for Windows requires setting up shared drives (instructions here) but if after entering your Windows system username and password nothing happens (not even an error message) you might need to run Docker for Windows as administrator.