Skip to content
Snippets Groups Projects
consumption.md 12.65 KiB

Consumption

Ecolyo allow user to see its consumption in two way:

  • globally with the Mutlifluid view that displays euro consumptions
  • more specifcally, fluid by fluid, by selecting the wanted fluid in the submenu

All consumption information are retrieved and calculated by services from the application.

Time step

Different time steps can be selected by the user which will display different period on the graph according to the time step.

  • Day: display data at half-an-hour step on a period of one day
  • Week: display data at daily step on a period of a week
  • Month: display data at daily step on a period of a month
  • Year: display data at monthly step on a period of a year
  • 5 years: display data at yearly step on a period of 5 years (5 last years)

Data Interval

For each fluid, we have an upcoming data interval depending on the energy provider API's. When we check the data, we display directly the data or a specific message according to the last data we have in comparison with the actual date and the last data date.

We rely on these 3 intervals to show different messages :

For Enedis, the interval is 3 days For GRDF, the interval is 5 days For EGL, the interval is 5 days

ConsumptionView

Description

This view is the main view of the application. It displays an agreggation view of all connected fluids. It is the entrypoint to several children components that each handles a particular feature :

  • DateNavigator
  • FluidButtons
  • FluidChart
  • ConsumptionDetails
  • KonnectorViewerList / KonnectorViewerCard

The submenu (FluidButtons), allows the user to switch between the different fluids and the multifluid view.

Rules

  1. If no fluids are connected, this view will display the multifluid view with the KonnectorViewerList component which shows buttons that allow user to connect its first fluids. These buttons redirects to the chosen fluid section with the connection form.
  2. If at least one fluid is connected, the multi fluid view and the connected fluids views are shown (electricity, water, gas).
  3. For the multifluid view, Fluids are displayed in multi fluid color and in euro
  4. Fluid is displayed in the given fluid color and unit (kWh for electricity and gaz, l for water)
  5. TimeStep available are the folowing: week, month, year, 5 years and day for electricity fluid
  6. If user has selected day time step and change the fluid, the week time step will be selected by default.

DateNavigator

Description