This example uses the Hue API v.1 and the JS fetch command to make HTTP calls to a Hue bridge.
NOTE: To make this page work, the computer on which you're viewing the page needs to be on the same local network as the Hue bridge that you wish to access.
Here is a more minimal HTML/JSS page for controlling a bridge.
The following functions require the bridge IP address and a valid app username.
To get the whole system status as a long JSON object, click this button: