Skip to main content

State

caution

States are automatically managed for you! Forcing state should likely be used for testing purposes only.

Widgets are being displayed in couple different states depending on various conditions:

  • static - displayed on initial load while waiting for data
  • dynamic - displayed when data comes
  • historical - displayed when active power is low (threshold is configured per port)

In order to change displayed state for testing purposes, just manipulate src url with using query string state.

- src="https://widget.plugport.no/all/netboard"
+ src="https://widget.plugport.no/all/netboard?state=historical"
tip

Query strings can be combined with & e.g. https://widget.plugport.no/all/netboard?language=en&state=historical

Example

<iframe
src="https://widget.plugport.no/all/netboard?state=historical"
title="Plug widget"
width="580px"
height="400px"
/>