2.0 KiB
2.0 KiB
page_type, languages, products, name, urlFragment, description, extendedZipContent
| page_type | languages | products | name | urlFragment | description | extendedZipContent | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sample |
|
|
Power grid forecast sample | PowerGrid | Shows how to use power grid forecasts (Win32). |
|
Power grid forecast sample
Shows how to use the PowerGrid Forecast API from Win32.
This sample covers the following:
- Obtaining the power grid forecast
- Registering for ForecastUpdated notifications
- Looking for the lowest severity in a specified timeframe
Note This sample requires Visual Studio to build and Windows 11 to execute.
To obtain information about Windows development, go to the Windows Dev Center
To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to Visual Studio
Related topics
Reference
Related samples
Power grid forecast from a UWP app
System requirements
- Windows 11 SDK (build 26100 or higher)
- Windows 11 (build 26100 or higher)
Build the sample
To build this sample:
- Start Visual Studio and select File > Open > Project/Solution.
- Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.
Deploying the sample
- Select Build > Deploy Solution.
Deploying and running the sample
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.