====== Watt Price Driver (.Net) ====== The Watt Price Driver (.Net) provides access to daily electricity market results published at http://www.ote-cr.cz. Data is retrieved from the official SOAP API available at: https://www.ote-cr.cz/services/PublicDataService. ===== Driver Setup ===== * Add a PLC with a running .Net Server for Mervis RT to the project, see [[cs:mervis-ide:40-mervis-rt:70-dotnet-server|Installation / update guide for .Net Server for Mervis RT]] * Enable .Net drivers in the PLC configuration: PLC\Configuration => Common\Enable .NET Drivers: true {{ :cs:mervis-ide:35-help:enable_net_drivers.png?nolink |}} * Add a Channel to the PLC, Protocol: Watt Price (.Net) {{ :cs:mervis-ide:35-help:watt_price_protocol.png?nolink |}} * Add a Library Device to the Channel: CzechRepublic\OTE\Watt Price 15-Minute Period (Array) {{ :cs:mervis-ide:35-help:watt_price_add_device.png?nolink |}} * The following parameters are preconfigured on the added device: * Price API Type: SOAP * Price API URI: https://www.ote-cr.cz/services/PublicDataService * Price API Time Zone: Europe/Prague * Date Shift Days: 0 (0 = today, -1 = yesterday, 1 = tomorrow, etc.) {{ :cs:mervis-ide:35-help:watt_price_device_parameters.png?nolink |}} * Data point mapping is done via `Variable Identifier`: * PriceInQH_0xx (e.g. PriceInQH_001) – price for the specific quarter-hour * PriceInQH – array of prices for the quarter-hours of the day * QuarterHoursInDay – number of quarter-hours in the day * PriceMinimum – minimum price * PriceMaximum – maximum price * PriceAverage – average price * PriceCurrent – current price * Variables can be created and linked manually, or by using the Set Autogen function {{ :cs:mervis-ide:35-help:watt_price_demo.png?nolink |}}