xiaohongshu
xiaohongshu
eptr2-consumption-data
Query Turkish electricity consumption and demand forecast data including real-time consumption, UECM (settlement consumption/Uzlaştırmaya Esas Çekiş Miktarı), and load plan forecasts. Use when asking about electricity demand, consumption patterns, load forecasting, or UECM data in Turkey. Trigger...
Full skill instructions
This skill helps you query electricity consumption and demand forecast data from Turkey's EPIAS Transparency Platform using the eptr2 Python library.
from eptr2 import EPTR2
# Initialize with environment variables
eptr = EPTR2(use_dotenv=True, recycle_tgt=True)
# Get real-time consumption
rt_cons = eptr.call("rt-cons", start_date="2024-07-29", end_date="2024-07-29")
print(rt_cons)
| Call | Description (EN) | Description (TR) |
|---|---|---|
rt-cons | Real-time electricity consumption | Gerçek Zamanlı Tüketim |
uecm | Settlement consumption (UECM) | Uzlaştırmaya Esas Çekiş Miktarı |
load-plan | Demand forecast (Load Plan) | Yük Tahmini / Yük Planı |
rt-consumption | Same as rt-cons | Gerçek Zamanlı Tüketim |
The composite function combines load plan, UECM, and real-time consumption:
from eptr2.composite import get_hourly_consumption_and_forecast_data
df = get_hourly_consumption_and_forecast_data(
eptr,
start_date="2024-07-29",
end_date="2024-07-29",
verbose=True # Print progress
)
| Column | Description |
|---|---|
dt | Datetime in ISO format (+03:00 timezone) |
load_plan | Demand forecast / load plan (MWh) |
uecm | Settlement consumption - UECM (MWh) |
rt_cons | Real-time consumption (MWh) |
consumption | Best available: UECM if available, otherwise real-time |
contract | Contract symbol (optional) |
from eptr2.composite import get_hourly_consumption_and_forecast_data
df = get_hourly_consumption_and_forecast_data(
eptr,
start_date="2024-07-15",
end_date="2024-07-15"
)
# Calculate forecast error
df['forecast_error'] = df['consumption'] - df['load_plan']
df['forecast_error_pct'] = (df['forecast_error'] / df['load_plan']) * 100
print(f"Average Forecast Error: {df['forecast_error'].mean():.2f} MWh")
print(f"MAPE: {df['forecast_error_pct'].abs().mean():.2f}%")
import pandas as pd
df = get_hourly_consumption_and_forecast_data(
eptr,
start_date="2024-07-15",
end_date="2024-07-15"
)
df['dt'] = pd.to_datetime(df['dt'])
df['hour'] = df['dt'].dt.hour
# Peak consumption hour
peak_hour = df.loc[df['consumption'].idxmax()]
print(f"Peak Hour: {peak_hour['hour']}:00")
print(f"Peak Consumption: {peak_hour['consumption']:.2f} MWh")
df = get_hourly_consumption_and_forecast_data(
eptr,
start_date="2024-07-01",
end_date="2024-07-31"
)
total_consumption = df['consumption'].sum()
print(f"Total July Consumption: {total_consumption:,.0f} MWh")
print(f"Daily Average: {total_consumption / 31:,.0f} MWh")
Always use ISO format: YYYY-MM-DD (e.g., "2024-07-29")
| Data Type | Availability |
|---|---|
| Load Plan | Published day-ahead (D-1 by 17:00) |
| Real-Time | Available with ~15 min delay |
| UECM | Available after settlement (T+10 days typically) |
Set credentials in .env file:
[email protected]
EPTR_PASSWORD=your_password
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience