Fournisseurs de services énergétiques, nous mettons à votre disposition différents services de données pour vous aider dans votre activité.
Go to siteThe Enedis Data-Connect API allows developers to access data from the French electricity grid. This data can be used to build applications that help manage the electricity grid, plan for power outages, and more.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enedis: {
type: "app",
app: "enedis",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ext.hml.api.enedis.fr/metering_data_dcmp/v5/daily_consumption_max_power`,
headers: {
Authorization: `Bearer ${this.enedis.$auth.oauth_access_token}`,
},
params: {
start: ` `,
end: ``,
usage_points_id: ``,
},
})
},
})
Returns the daily average power consumed in W, on a given interval (by default 30 minutes). See the docs here
Returns the contact informations of a client. See the docs here
Returns the contract informations of a client. See the docs here
Returns the daily consumption in Wh. See the docs here
Enedis Data-Connect uses OAuth authentication. When you connect your Enedis Data-Connect account, Pipedream will open a popup window where you can sign into Enedis Data-Connect and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Enedis Data-Connect API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://ext.hml.api.enedis.fr/oauth2/v3/token
?
redirect_uri={{oauth.redirect_uri}}
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://ext.hml.api.enedis.fr/oauth2/v3/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials