Skip to main content
100%

Gist 1ab2c1e1ee8b58c4abbd1ee0dde88d77

✓ Published0🌍 Public
UUtopiah
Last edited Nov 4, 2020
Created on Nov 4, 2020

This example demonstrates a shared virtual room where a light switch and bulb react to the physical state of a Web of Things device, reflecting both local and remote interactions. It shows how a user or another networked avatar can flip the switch, toggling the bulb’s visibility and position while syncing the status to the gateway via HTTP requests. The animation uses A-Frame for scene rendering, the networked-aframe component for multi-user presence, and the Web of Things API to read and update the device’s `on` property. Polling intervals every second check proximity and update the light state accordingly.

AI-generated description

Similar vizzes