This is some base code to put on a php server and a Particle board that will allow Slack to switch a 120V appliance on/off over the internet.
- Put server.php on a publicly accessable php web server
- Set up an Outgoing Webhook integration in Slack pointing to file above
- Configure server.php with Slack webhook token and Particle API info
- Put particle.ino on your Particle board with Relay Shield
- Turn stuff on/off from Slack