-
Notifications
You must be signed in to change notification settings - Fork 2
/
api_config.py
30 lines (24 loc) · 1.23 KB
/
api_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
Script for configuring RTE API access.
This script is user dependant, Please change client ID and client secret code before using it.
working directory are also case dependant.
"""
# Client ID and secret code, you can get those at https://data.rte-france.com/
CLIENT_ID = '7699170f-9898-40d0-b78a-XXXXXXXX'
CLIENT_SECRET = '969de489-1dca-4158-8ad4-XXXXXXXX'
# URL for authentication and get a token access :
OAUTH_URL = 'https://digital.iservices.rte-france.com/token/oauth/'
# list of available API :
URL_TEMPO = 'https://digital.iservices.rte-france.com/open_api/tempo_like_supply_contract/v1/tempo_like_calendars'
URL_PROD = 'https://digital.iservices.rte-france.com/open_api/generation_forecast/v2/forecasts'
URL_CONSO = 'https://digital.iservices.rte-france.com/open_api/consumption/v1'
# list of available production types
PRODUCTION_TYPE = ['WIND', 'SOLAR', 'AGGREGATED_CPC',
'AGGREGATED_PROGRAMMABLE_FRANCE', 'AGGREGATED_NON_PROGRAMMABLE_FRANCE',
'AGGREGATED_FRANCE', 'MDSE' , 'MDSETRF', 'MDSESTS']
# list of available production forecasts types
TYPE = ['D-3', # 3 days ahead
'D-2', # 2 days ahead
'D-1', # 1 days ahead
'CURRENT', # current
'ID'] # intra-day