Giter VIP home page Giter VIP logo

electricitymaps / electricitymaps-contrib Goto Github PK

View Code? Open in Web Editor NEW
3.3K 77.0 905.0 143.94 MB

A real-time visualisation of the CO2 emissions of electricity consumption

Home Page: https://app.electricitymaps.com

License: GNU Affero General Public License v3.0

HTML 32.79% Python 55.29% JavaScript 0.28% Shell 0.01% Dockerfile 0.01% Earthly 0.06% Java 0.02% TypeScript 11.28% Swift 0.05% Ruby 0.14% CSS 0.08%
sustainability data-visualization climate-change hacktoberfest

electricitymaps-contrib's People

Contributors

alixunderplatz avatar amv213 avatar blackleg avatar brunolajoie avatar corradio avatar dependabot[bot] avatar electricitymapsbot avatar fbarl avatar felixdq avatar jarek avatar jkopb avatar kabelwlan avatar lorrieq avatar madsnedergaard avatar magol avatar mathilde-daugy avatar maxbellec avatar nessie2013 avatar ovbm avatar pierresegonne avatar q-- avatar raffox97 avatar silkeholmebonnen avatar skovhus avatar systemcatch avatar tmrow-bot avatar tonypls avatar unitrium avatar veqtrus avatar viktorvav99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electricitymaps-contrib's Issues

solar and wind are too big

โฏ ab -n 50000 http://52.19.179.81:8000/solar electricitymap/git/master
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 52.19.179.81 (be patient)
^C

Server Software: Werkzeug/0.11.10
Server Hostname: 52.19.179.81
Server Port: 8000

Document Path: /solar
Document Length: 7595165 bytes

Concurrency Level: 1
Time taken for tests: 60.785 seconds
Complete requests: 10
Failed requests: 0
Total transferred: 82321703 bytes
HTML transferred: 82318205 bytes
Requests per second: 0.16 #/sec
Time per request: 6078.509 ms
Time per request: 6078.509 [ms](mean, across all concurrent requests)
Transfer rate: 1322.57 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 43 51 7.7 51 68
Processing: 1725 5469 2020.8 5643 8768
Waiting: 39 43 4.2 43 54
Total: 1782 5521 2017.7 5686 8822

Percentage of the requests served within a certain time (ms)
50% 5686
66% 6454
75% 6647
80% 7641
90% 8822
95% 8822
98% 8822
99% 8822
100% 8822 (longest request)

Add a /co2 endpoint

  • switch from Flask to Node to mutualise the co2 model
  • compute co2 server side
  • map lonlat to country

Clarification on per-country table

screenshot 1

Are the bars at the bottom indicating energy exports/imports? i.e. is Germany exporting dirty coal power to France or importing power from France?

Wind/solar are not always up to date

Forecasts are fetch with target next/previous multiple of update freq.
Forecast update freq needs to match download freq, else, a phase might appear and out of bounds will be caused.

Error while interpolating wind because current time is out of bounds will appear as error in the console.

Toogle layers/modes

Submitted by Bruno:

I'm thinking out loud here, but what about having three ways for the reader to read this map, that could be accessed via three buttons on the top left:

CO2 focus (the default button): Displays your electricity map as it is now, without wind vectors

Wind focus: It displays wind vectors, and the country colored by GW of Wind power produced (shade of blue for instance)

Solar focus: It displays sun irradiance over Europe, and GW of solar power produced by country. Depending on what your datasource for solar irradiance look like, I see two options:
3.1: Solar irradiance as lines of iso irradiance and solar power as shade of yellow over the country area
3.2: or Solar irradiance as shades of yellow over the hole europe map, and solar power per country as a textured fill of black dots (the densier the dots, the more GW).

Set up monitoring and error logs

[ ] Backups

[ ] Access -- how to restrict access to dashboards

[x] Routing

[x] Alerts

  • expose a /status health check endpoint and check from the outside w/ uptimerobot
  • disk space alert? Include in /status?

[x] Monitoring

[x] Orchestration

  • where to put all container config? In the repo as .yml files.

[x] Error logs

Proper redirect

Flask should serve only the api
The web content should be accessible through static hosting in github.
Use proper directory structure for this.
A /static or /public folder should do.

Test on IE

Dev console says there's a ; missing on script 1004 File main.js, Line 214, column 24

Visualisations seem very energy intensive

I love the swirling wave patterns but at least in Chrome, it's making the fans spin up at full speed on my Macbook Pro - Activity Monitor verified that it's energy heavy and closing the tab led the fans to stop spinning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.