xiaohongshu
xiaohongshu
eptr2-generation-tracking
Query Turkish electricity generation data including real-time generation by resource type, plant-level production, UEVM (settlement generation/Uzlaştırmaya Esas Veriş Miktarı), and generation forecasts. Use when asking about power generation, renewable energy output, plant production, solar/wind ...
Full skill instructions
This skill helps you query electricity generation 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 generation by resource type
rt_gen = eptr.call("rt-generation", start_date="2024-07-29", end_date="2024-07-29")
print(rt_gen)
| Call | Description (EN) | Description (TR) |
|---|---|---|
rt-generation | Real-time generation by resource type | Kaynak Bazlı Gerçek Zamanlı Üretim |
rt-gen | Real-time generation (same as above) | Gerçek Zamanlı Üretim |
uevm | Settlement generation (UEVM) | Uzlaştırmaya Esas Veriş Miktarı |
dpp / kgup | Daily Production Plan | Kesinleşmiş Günlük Üretim Planı (KGÜP) |
rt-gen-org | Real-time generation by organization | Organizasyon Bazlı GZÜ |
uevm-pp | UEVM by power plant | Santral Bazlı UEVM |
| Turkish | English | Code |
|---|---|---|
| Doğalgaz | Natural Gas | naturalGas |
| Kömür | Coal | coal |
| Linyit | Lignite | lignite |
| İthal Kömür | Imported Coal | importedCoal |
| Rüzgar | Wind | wind |
| Güneş | Solar | sun |
| Hidroelektrik | Hydro | river, dammedHydro |
| Biyokütle | Biomass | biomass |
| Jeotermal | Geothermal | geothermal |
| Nükleer | Nuclear | nuclear |
from eptr2.composite import get_hourly_production_data
df = get_hourly_production_data(
eptr,
start_date="2024-07-29",
end_date="2024-07-29",
verbose=True
)
Columns include _rt (real-time) and _uevm (settlement) suffixes:
| Column | Description |
|---|---|
dt | Datetime in ISO format |
naturalGas_rt | Natural gas real-time generation |
wind_rt | Wind real-time generation |
sun_rt | Solar real-time generation |
total_rt | Total real-time generation |
naturalGas_uevm | Natural gas settlement generation |
total_uevm | Total settlement generation |
contract | Contract symbol |
rt_gen = eptr.call("rt-generation", start_date="2024-07-15", end_date="2024-07-15")
# Sum by resource type
fuel_mix = rt_gen.drop(columns=['date', 'hour']).sum()
total = fuel_mix.sum()
print("Generation Mix (July 15, 2024):")
for fuel, gen in fuel_mix.items():
pct = (gen / total) * 100
print(f" {fuel}: {gen:,.0f} MWh ({pct:.1f}%)")
rt_gen = eptr.call("rt-generation", start_date="2024-07-15", end_date="2024-07-15")
# Define renewable columns
renewables = ['wind', 'sun', 'river', 'dammedHydro', 'geothermal', 'biomass']
renewable_cols = [c for c in rt_gen.columns if any(r in c.lower() for r in renewables)]
rt_gen['renewable'] = rt_gen[renewable_cols].sum(axis=1)
rt_gen['total'] = rt_gen.drop(columns=['date', 'hour']).sum(axis=1)
rt_gen['renewable_share'] = (rt_gen['renewable'] / rt_gen['total']) * 100
print(f"Average Renewable Share: {rt_gen['renewable_share'].mean():.1f}%")
from eptr2.composite import get_hourly_production_data
# Example: Atatürk Dam (HES)
df = get_hourly_production_data(
eptr,
start_date="2024-07-15",
end_date="2024-07-15",
rt_pp_id=641, # Real-time ID for Atatürk HES
uevm_pp_id=142 # UEVM ID for Atatürk HES
)
print(f"Atatürk Dam Daily Generation: {df['total_rt'].sum():,.0f} MWh")
from eptr2.composite import get_hourly_production_plan_data
df = get_hourly_production_plan_data(
eptr,
start_date="2024-07-15",
end_date="2024-07-15",
org_id=195, # ELEKTRİK ÜRETİM AŞ
uevcb_id=733 # ATATÜRK HES DB
)
# Compare KGUP (plan) with actual
Always use ISO format: YYYY-MM-DD (e.g., "2024-07-29")
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