Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

visualitypl/web-connected-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Archived

This project's support has been ceased. No future fixes or pull requests are planned.

Web connected relay with Particle Photon

Web connected relay built with Particle Photon

Replacement of our Sesame implementation [http://www.visuality.pl/posts/how-we-open-our-office-door-via-slack]. When the API called it virtually presses the button with using relay circuit.

Replace DEVICE_ID and DEVICE_ACCESS_TOKEN with your values.

With using curl

curl https://api.particle.io/v1/devices/DEVICE_ID/relay \
  -d access_token=DEVICE_ACCESS_TOKEN \
  -d params=toggle

With using jQuery

$.post( "https://api.particle.io/v1/devices/DEVICE_ID/relay", { access_token: "DEVICE_ACCESS_TOKEN", params: "toggle" } );

About

Web connected relay built with particle photon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages