NetBox Power Outage
A NetBox plugin that shows utility power outages near your sites.
- Dashboard — every site with active outages within a chosen radius (½, 1, 2 or 5 miles; default 1), with a map and a utility feed freshness table.
- Site tab — a "Power Outage" tab on each site with a map (site pin, radius ring, outage dots sized by customers out) and a list of nearby outages.
- Background collector — a NetBox system job pulls outages every few minutes and stores them; pages never call the outage sources directly.
- Geocode Sites — a page listing sites without coordinates, and a
geocode_sitescommand that fills in site latitude/longitude from the physical address (US Census geocoder, OpenStreetMap fallback). - Read-only REST API — outages, site matches and feeds.
Data sources
| Source | Coverage | Notes |
|---|---|---|
pge |
Portland General Electric | Uses the public, undocumented GraphQL API behind portlandgeneral.com's outage map. Read-only queries only, polled every 15 minutes by default. It may change without notice. |
odin |
Utilities reporting to ODIN (DOE / ORNL) | Public /odi endpoints, no account needed. Some utilities report exact points, others county-level only. |
Sources are tried in priority order (sources setting). When a higher-priority source covers a utility and its feed is fresh, lower-priority data for that utility is not used for matching. If that feed goes stale, the lower-priority data is used again.
Outage locations are approximate. County-level reports match every site in that county.
Scope
This plugin is Oregon-focused today: the PGE source and the ODIN states default to Oregon and Washington, and it was built for an Oregon network. The source adapters are pluggable (netbox_poweroutage/sources/), so other utilities or regions can be added by writing one adapter that returns the same outage records.
Requirements
- NetBox 4.7.5 or later
- A running NetBox worker (
rqworker) for the scheduled collector
Installation
pip install netbox-poweroutage
# configuration.py / plugins.py
PLUGINS = ["netbox_poweroutage"]
PLUGINS_CONFIG = {"netbox_poweroutage": {}}
Then run manage.py migrate and restart NetBox.
Configuration
| Setting | Default | Description |
|---|---|---|
sources |
["pge", "odin"] |
Enabled sources, in priority order |
odin_states |
["41", "53"] |
FIPS state codes to pull from ODIN (Oregon, Washington) |
odin_base_url |
https://odin.ornl.gov |
ODIN base URL |
odin_client_id / odin_client_secret |
"" |
Reserved for authenticated ODIN endpoints (unused in 0.1.0) |
collect_interval_minutes |
5 |
System job interval |
pge_interval_minutes |
15 |
Minimum minutes between PGE polls |
pge_details |
True |
Fetch cause / crew status / estimated restore for PGE outages near a site (one extra call per outage, refreshed every 15 minutes) |
pge_details_radius_miles |
1 |
Only PGE outages within this distance of a site get detail lookups |
default_radius_miles |
1 |
Default radius on the dashboard and site tab |
stale_after_minutes |
60 |
A utility feed older than this is flagged stale |
retention_days |
90 |
Ended outages older than this are purged |
timeout |
30 |
HTTP timeout in seconds |
tab_weight |
9006 |
Site tab ordering weight |
top_level_menu |
False |
Show a top-level menu instead of items under Plugins |
Commands
python manage.py collect_outages [--force]
python manage.py geocode_sites [--apply] [--overwrite]
geocode_sites is a dry run unless --apply is given, and lists every address it could not match.
Support
If you find this plugin helpful, consider supporting development:
License
Apache-2.0
Metadata
Release files for netbox-poweroutage 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netbox_poweroutage-0.1.0.tar.gz | 93.8 kB | With provenance | Details for netbox_poweroutage-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_poweroutage-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for netbox_poweroutage-0.1.0-py3-none-any.whl |
Total release size: 190.6 kB
Release files / netbox_poweroutage-0.1.0.tar.gz
| Download URL | netbox_poweroutage-0.1.0.tar.gz |
|---|---|
| Size | 93.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2863f10f79b62b883125d8622a847c4baf274b95918bfb2f96112671b758e48
|
|
BLAKE2b-256 checksum How to use checksums |
76d3e68bc11d43e6a0cc0ac0d41fa70893fd8f61ff1a4fe15384d0b9ec90c411
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / netbox_poweroutage-0.1.0-py3-none-any.whl
| Download URL | netbox_poweroutage-0.1.0-py3-none-any.whl |
|---|---|
| Size | 96.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1201c892d01b43257fcac13e92e7266bbf4ad552a76440597699cbf113944c43
|
|
BLAKE2b-256 checksum How to use checksums |
74a59e1e3ddce2b9aa68fcb07d74afc376fdac0e8d6f11e63f6f3475f3067868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for netbox-poweroutage 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for netbox_poweroutage-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.