====== 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 [[en:mervis-ide:35-help: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'' {{:en:mervis-ide:35-help:020-communication-protocols-description:enable_net_drivers.png?nolink&800}} * Add a Channel to the PLC, Protocol: Watt Price (.Net) {{:en:mervis-ide:35-help:020-communication-protocols-description:watt_price_protocol.png?nolink&800}} * Add a Library Device to the Channel: ''CzechRepublic\OTE\Watt Price 15-Minute Period (Array)'' {{:en:mervis-ide:35-help:020-communication-protocols-description:watt_price_add_device.png?nolink&800}} * 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.) {{:en:mervis-ide:35-help:020-communication-protocols-description:watt_price_device_parameters.png?nolink&800}} * 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 {{:en:mervis-ide:35-help:020-communication-protocols-description:watt_price_demo.png?nolink&800}}