Alpsolut Widgets Docs
LWCIndex
Widget code:ALPSCH04
Provides LWCIndex chart.
Example
Parameters
The Alpsolut API token.
The ID of the station to get the data from. This should be a unique identifier for the station.
The start date for the data retrieval in ISO 8601 format (e.g., 2022-11-07T01:00:00.000). This specifies the beginning of the time range for the data query.
The end date for the data retrieval in ISO 8601 format (e.g., 2022-11-07T01:00:00.000). This specifies the end of the time range for the data query.
The aggregation period for the data. This can be either 'DAY' or 'HOUR'.
The forecast model to predict future data. Defaults to 'auto'.
The timezone used to display the data in the chart.
Widget integration
Using the alpsolut widget plugin you will have the iframe sizing correctly handled:
Or you can manually add the widget with the iframe and handle the styling and sizing yourself: