Code Monkey home page Code Monkey logo

datavizta's People

Contributors

airloren avatar bamthomas avatar da-ekchajzer avatar demeringo avatar fershad avatar ggael avatar ip512 avatar jbarritaud avatar odelcroi avatar tibosmn avatar youenchene avatar

Stargazers

 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

datavizta's Issues

Share a custom pie chart with a permalink

As a user of the dataviz, I would like to share in a blog article a link that shows a pie chart with the ratio of scope2/scope3 of the monitors in france with a lifetime of 10 years.

I would assume that it could be implemented at url level (query params or path)

Highlight on the pie chart

I've been sharing ideas with designer friends.

One of them came with the idea of making more visible the pie chart, which is the "result" expected by the data explorer. Something like that on desktop :

Screenshot 2022-07-11 at 13 53 00

Do you think users will be more confortable with such a design?

Hackathon #6

Project

The objective of the project is to create a new tab in datavizta allowing to model the impacts of a server from its technical characteristics.

The objectives are multiple :

  • Use boaviztapi in a user-friendly way
  • Give a pedagogical tool to show the mutlicriteria and multistep impacts of a server
  • Give an easy way to present and share our work on the API

Boaviztapi

Boaviztapi is an API that can be used to retrieve the environmental impacts of components, servers and AWS cloud instances from technical and usage characteristics. It uses the methodologies pushed by Boavizta. The impacts are multicriteria (gwp, pe, adp) and covers usage and manufacture.

Documentation : https://doc.dev.api.boavizta.org/
Interactive Open API doc : https://dev.api.boavizta.org/docs
Repo : https://github.com/Boavizta/boaviztapi

We will use the server router in this project. The router retrieves the impacts of a given server configuration.

Getting started with server : https://doc.dev.api.boavizta.org/getting_started/single_server/

⚠️ change the endpoint from api.boavizta.org to dev.api.boavizta.org

TODO

Please feel free to critic or comment on that.

Broken server impact calculation

Happens when calculating the impact based on its configuration on the page https://dataviz.boavizta.org/serversimpact

If you change the configuation of the server (amount of RAM, SSD, etc.) the corresponding footprint is not updated.

When looking at devtools, it seems there is a COR issue with the request to the /serverresource :

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://dev.api.boavizta.org/v1/server/?verbose=true. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant. Code d’état : 500.

I think there is actually two issues here :

  • one on Cross Origin Request
  • one on the UI : when the request fails, we should display an error message on the page to inform the user that the footprint displayed does not match the server he has configured. Otherwise one may simply fail to realize there is an error and use an incorrect footprint.

SERVER IMPACT - PEDAGOGICAL FRONT

NAME

PEDAGOGICAL FRONT

STORY

Sensitized to the impacts of digital technology, I wish to understand how the impacts of a server are distributed by manipulating the data and the methodology of BOAVIZTA concerning the servers.

GUIDELINES

  • Form to characterize a server object
  • Creation of a query
  • Display aiming at pedagogy and scientific popularization (graph,
  • Respect of (RG2A) [https://www.numerique.gouv.fr/publications/rgaa-accessibilite]

HELP

RESSOURCES

  • Route [POST] /v1/server/

  • Example of server 1 - Complete server, die size are smart complete from components information, knowledge on electrical consumption :

{
  "model":
  {
    "manufacturer": "Dell",
    "name": "R740",
    "type": "rack", 
    "year": 2020 
  },
 {
    "configuration":
    {
        "cpu":
        {
            "units": 2,
            "core_units": 18,
            "family": "Skylake"
        },
        "ram":
        [
            {
                "units": 12,
                "capacity": 32,
                "manufacturer": "Samsung"
            }
        ],
        "disk":
        [
            {
                "units": 1,
                "type": "ssd",
                "capacity": 400,
                "manufacturer": "Samsung"
            }
        ],
        "power_supply":
        {
            "units": 2
        }
    }
},
  "usage": {
    "hours_use_time": 1,      
    "days_use_time": 0,
    "years_use_time":  0
    "usage_location": "FRA",
    "hours_electrical_consumption": 510
  }
}
  • Example de server 2 - Complete server containing die size, electrical consumption is retrieved from workload object :
{
  "model":
  {
    "manufacturer": "Dell",
    "name": "R740",
    "type": "rack",
    "year": 2020
  },
  "configuration":
  {
    "cpu":
    {
      "units": 2,
      "core_units": 24,
      "die_size_per_core": 0.245
    },
    "ram":
    [
      {
        "units": 12,
        "capacity": 32,
        "density": 1.79
      }
    ],
    "disk":
    [
      {
        "units": 1,
        "type": "ssd",
        "capacity": 400,
        "density": 50.6
      }
    ],
    "power_supply":
    {
      "units": 2,
      "unit_weight": 2.99
    }
  },
  "usage": {
    "max_power": 510,
    "year_use_time": 3,
    "workload": {
      "100": {
        "time": 0.15,
        "power": 1.0
      },
      "50": {
        "time": 0.55,
        "power": 0.7235
      },
      "10": {
        "time": 0.2,
        "power": 0.5118
      },
      "idle": {
        "time": 0.1,
        "power": 0.3941
      }
    }
  }
}

create a navbar

Implement a way to change the view from the data repository to the server impacts view in the header.

Screenshot_20221012_115322

Update grid intensity used for gwp_emissions_factor to more recent figures

The gwp_emissions_factor values in https://github.com/Boavizta/datavizta/blob/main/static/electrical_foot_print.csv are mostly from 2020, with a few exceptions.

Would you be open to a PR which replaces the electrical_foot_print.csv file with annual average grid intensity data from CO2.js? The grid intensity data in CO2.js is also from Ember, and currently is for the year 2021, though there is an open issue to update this with 2022 data next month.

This would remove the need for manual updates to be made to the CSV file. We're looking to automate data updates in CO2.js later this year as well, which should mean that we've got close to the latest figures from Ember available in the library.

Add a link to project repository

As a user I would like to contribute to the project, I should be able to retrieve the project repository.

"fork me on github" label?

Add mean value for selected items

We should show the mean total impact (scope 2 + scope 3) of selected items.
It could be usefull to compare devices of same manufacturer depending on the manufacturing year

Add buttons to generate pre configured search and customization

Pre configured searches and customizations could be usefull to easily compare results.
Some examples :

  • Compare Servers, Laptops and Monitors
  • Compare French, US, EU and China electricity mixes
  • Extend lifetime for 1 year and compare with previous results

Create a data visualization that report three types of impacts (gwp, pe, adp) on two lifecycle steps (manufacture and usage)

The API will respond with both the manufacture and usage impacts for three impacts criteria (gwp, adp, pe). It can optionally return all the data used in the calculations (with verbose=true). The minimal data visualization would be one to many charts to report the three impacts criteria on the two lifecycle steps (three pie charts, one normalized bar chart, ...). Feel free to be creative !

Optionally, some work could be done to report the value used in the calculation.

Deactivate overriding year and usage location when data is insufficient

When a line(s) without yearly TEC or Utilization (%) value is/are selected and Region or lifetime are overrided, only scope3 is shown. This is due to missing data in the calculation of overided values.

When a selected line(s) doesn't have a yearly TEC or Utilization (%) overriding Region and lifetime should be deactivated (greyed ?).

Cloud instances: embedded impacts correspond to the entire physical server regardless instance type

Hi,

Not sure if it it a bug or a design choice ?

When I select an instance type (c5.large) the embedded impacts (manufacture) returned seem to be the embedded impacts of the underlying bare metal instance (c5.metal).

This figure never change wether I select C5.4xlarge or C5.18xlarge (but changes if we change the instance family, still displaying the value corresponding to the metal instance of the new family).

In BoaviztaAPI (at least in V1.1.0) behavior differ, we are attributed a "part" of the corresponding metal instance.

Switch to fr / en

It would be nice to be able to force a language.
If my browser is in fr language and I want to make a screenshot in english, it's currently not possible.

Pie chart : add more explanation on scope 2/scope 3

  • why :
    We received some feedbacks that scope2 and scope3 are not well understood by everyone interested into the env. impacts

  • solution :
    Maybe a link to a proper definition could help on making more light on the difference between scope2 and scope3.

Export selected data as CSV

Problem

I want to export my selection with the modification I have made (duration and location) as a CSV.

Field

Export all the field of the original CSV plus :

  • Scope2 (measured with user custom value)
  • Scope3
  • used location
  • used life duration

Office/Workplace setup simulator

The idea is to evaluate the total carbon impact of an Office/Workplace setup (computer, screen(s), phone...) from a user-friendly form in order to educate people about their impact at work.

The form would looks like this one https://dribbble.com/shots/5024534-Cashbase-Application-form or inspired by https://nosgestesclimat.fr/simulateur/bilan

The result would be an URL containing all the selected equipment to be easily shared.

Steps would be:

flowchart LR
   A[1. Select desktop/laptop] --> B["2. Add screen(s)"] --> C["3. Add smartphone(s)"] --> D["4. Add tablet(s)"] --> E["5. Add printer(s)"] --> T[Total carbon impact]

fix language issues

Several text sections in french when switching from French to English

  • Region picker default value
  • Datagrid headers
  • Scope 2 & scope 3 caption at the bottom of the pie chart
  • "Durée de vie moyenne"

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.