Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
73 stars 23 forks source link

Smart-complete electrical_consumption with consumption_profil(), single workload data #87

Closed da-ekchajzer closed 2 years ago

da-ekchajzer commented 2 years ago

Problem

I want to smart-complete the hour_electrical_consumption form a specific workload knowing the consumption profile of my device.

Solution

We should use consumption_profil() function created in #86 :

consumption_profil(workload) = hour_electrical_consumption

Input example

"usage":{
"workload":23 
"consumption_profile":"skylake"
}
da-ekchajzer commented 2 years ago

Implemented for CPU https://github.com/Boavizta/boaviztapi/pull/113