Source: factory.service/package.gekkoridge/ObjServiceLoadshedding.py
EskomSePush API integration for load shedding data.
Retrieves national load shedding status, area-specific
schedules and upcoming events, area search, and nearby
area lookup. Designed for correlation with solar/battery
...
| Method | Signature | Description |
|---|---|---|
| get_status | get_status() -> dict |
Get national load shedding status. |
| get_area_info | get_area_info(area_id: str = '') -> dict |
Get area schedule and upcoming events. |
| get_area_info_test | get_area_info_test() -> dict |
Test area info endpoint (no quota usage). |
| search_areas | search_areas(text: str) -> list[dict] |
Search for areas by text. |
| get_areas_nearby | get_areas_nearby(latitude: float = 0, longitude: float = 0) -> list[dict] |
Find areas near GPS coordinates. |
| get_topics_nearby | get_topics_nearby(latitude: float = 0, longitude: float = 0) -> list[dict] |
Find user-generated topics near coordinates. |
| get_allowance | get_allowance() -> dict |
Check remaining API quota for the day. |
| is_loadshedding_active | is_loadshedding_active() -> bool |
Quick check if load shedding is currently on. |
| get_next_event | get_next_event(area_id: str = '') -> dict | None |
Get the next upcoming load shedding event. |
| record_status | record_status(min_interval: int = 1800) -> int |
Fetch national status and area events, then |
| run_precharge | run_precharge() -> dict |
Check loadshedding stage and conserve power. |
| process | process(context: dict) -> dict |
Workflow entry point for load shedding ops. |
| run_workflow_direct | run_workflow_direct(guid: str, selector: str) -> str |