Skip to content

palmerabollo/aframe-iot-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aframe-iot-component

A-Frame IOT component (for testing purposes only)

Usage example

<html>

<head>
  <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-iot-component/aframe-iot-component.js"></script>
</head>

<body>
  <a-scene>
    <a-sphere
      position="0 0 -8"
      color="lightgray"
      iot="device: 123">
    </a-sphere>
  </a-scene>
</body>

</html>

Remember to replace the device with your unique device identifier.

Demo

You can find a demo that works on any modern browser.

Try to light the ball up with:

curl -X POST https://keyvalue.immanuel.co/api/KeyVal/UpdateValue/123/status/on -H "Content-Length: 0"

Turn it off with:

curl -X POST https://keyvalue.immanuel.co/api/KeyVal/UpdateValue/123/status/off -H "Content-Length: 0"

About

A-Frame IOT component (for testing purposes only)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published