pywind.bmreports
¶
Warning
The BM Reports website has been removed and replaced by a much more complex API
interface. This page is no longer relevant and should be ignored in favour of functionality
offered by the elexon
module.
Warning
The data provided by the BMReports website is owned by Elexon UK and permission needs to be sought before reproducing it. The following functions should only be used with this restriction in mind as they access the site and download data.
The exact restrictions on the data usage are unclear at this time.
pywind.bmreports.generation_type
¶
BMReports make available a number of reports, but this module provides access to their report on output by generation type for the 3 periods,
- instant
- last hour
- last 24 hours
-
class
pywind.bmreports.generation_type.
GenerationData
[source]¶ Bases:
object
Class to allow access to the report and parse the response into usable structures.
-
PARAMS
= {'element': 'generationbyfueltypetable'}¶
-
URL
= 'http://www.bmreports.com/bsp/additional/soapfunctions.php'¶
-
-
class
pywind.bmreports.generation_type.
GenerationPeriod
(elm)[source]¶ Bases:
object
The basic report contains information on 3 different periods. Each will be represented by an instance of this class.
-
DT1
= '%Y-%m-%d %H:%M:%S'¶
-
DT2
= '%Y-%m-%d %H:%M'¶
-
NAMES
= {'LAST24H': '24hours', 'HH': 'halfhour', 'INST': 'instant'}¶
-
-
class
pywind.bmreports.generation_type.
GenerationRecord
(el)[source]¶ Bases:
object
Class to record details of a single generation type record.
-
FUELS
= {'INTFR': 'Import from France', 'NUCLEAR': 'Nuclear', 'OTHER': 'Other', 'INTIRL': 'Import from Ireland', 'CCGT': 'Combined Cycle Gas Turbine', 'INTEW': 'East/West Interconnector', 'PS': 'Pumped Storage', 'OIL': 'Oil', 'NPSHYD': 'Non Pumped Storage Hydro', 'COAL': 'Coal', 'OCGT': 'Open Cycle Gas Turbine', 'INTNED': 'Import from the Netherlands', 'WIND': 'Wind'}¶
-
pywind.bmreports.prices
¶
BMReports make the system electricity prices available. This module contains classes to access those reports.
-
class
pywind.bmreports.prices.
SystemPrices
(dtt=None)[source]¶ Bases:
object
Class to get the electricity prices from BMreports.
-
URL
= 'http://www.bmreports.com/bsp/additional/soapfunctions.php'¶
-
pywind.bmreports.unit
¶
Unit data from BM Reports
-
class
pywind.bmreports.unit.
BalancingUnitData
(xml_node)[source]¶ Bases:
object
Class to store balancing payment information for a single unit during a single period.
-
class
pywind.bmreports.unit.
BaseUnitClass
[source]¶ Bases:
object
Base class
-
SHEET_NAME
= ''¶
-
XLS_URL
= ''¶
-
-
class
pywind.bmreports.unit.
PowerPackUnits
[source]¶ Bases:
pywind.bmreports.unit.BaseUnitClass
Download the latest Power Pack modules spreadsheet and make the list of stations available as a list.
-
SHEET_NAME
= 'Sheet1'¶
-
XLS_URL
= 'http://www.bmreports.com/bsp/staticdata/PowerParkModules.xls'¶
-
-
class
pywind.bmreports.unit.
UnitData
(*args, **kwargs)[source]¶ Bases:
object
Class that gets data about Balancing Mechanism Units from the Balancing Mechanism website.
-
CX_TYPE
= {'E': 'Embedded in Distribution System', 'G': 'Supplier (base)', 'I': 'Interconnector User', 'M': 'Other', 'S': 'Supplier (additional)', 'T': 'Directly Connected to Transmission System'}¶
-
DURATION
= {'S': 'Short', 'L': 'Long'}¶
-
HOST
= 'http://www.bmreports.com'¶
-
TYPES
= {'Derived': 'DerivedBMUnit', 'BSV': '/servlet/com.logica.neta.bwp_PanBsvServlet', 'Dynamic': '/servlet/com.logica.neta.bwp_PanDynamicServlet', 'Bid-Offer': '/servlet/com.logica.neta.bwp_PanBodServlet', 'Physical': '/servlet/com.logica.neta.bwp_PanBMDataServlet'}¶
-
-
class
pywind.bmreports.unit.
UnitList
[source]¶ Bases:
pywind.bmreports.unit.BaseUnitClass
Get a list of the Balancing Mechanism Units with their Fuel Type and dates.
-
SHEET_NAME
= 'BMU Fuel Types'¶
-
XLS_URL
= 'http://www.bmreports.com/bsp/staticdata/BMUFuelType.xls'¶
-