This example uses the Hue API v.1 and the JS fetch command to make HTTP calls to a Hue bridge.
NOTE: This will not work when the page is served from a network outside your home. To see it work, download this example and open the index.html page in a browser from your computer.
See the HTML source code hereThe following functions require the hub IP address and a valid app username.
To get the whole system status as a long JSON object: