You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/datasources/datadis.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,21 +18,24 @@ interval = '24h0m0s' # Fetch once per day (default: 24h)
18
18
[datasources.datadis.config]
19
19
username = 'your-datadis-username'# Required
20
20
password = 'your-datadis-password'# Required
21
+
cups = ''# Optional: Comma-separated list of CUPS to filter
21
22
```
22
23
23
24
### Configuration Parameters
24
25
25
26
-**username** (required): Your Datadis account username
26
27
-**password** (required): Your Datadis account password
28
+
-**cups** (optional): Comma-separated list of CUPS identifiers to filter which supplies to fetch. If not set or empty, fetches data for all supplies in the account. Example: `'ES0021000000000001AA,ES0021000000000002BB'`
27
29
-**interval**: How often to fetch data (default: 24h). Since consumption data is typically updated daily, fetching more frequently is not recommended.
28
30
29
31
## Data Collection
30
32
31
33
The datasource:
32
34
1. Authenticates with the Datadis API using your credentials
33
35
2. Retrieves all electricity supplies associated with your account
34
-
3. For each supply, fetches hourly consumption data for the current month
35
-
4. Creates a block for each hourly measurement
36
+
3. Filters supplies based on the `cups` configuration (if specified)
37
+
4. For each supply, fetches hourly consumption data for the current month
0 commit comments