Advertisement
Guest User

How Adam's light system works

a guest
Oct 14th, 2015
4,453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. * You follow me
  2. * A bot that I have running on my computer checks for new followers every 45 seconds. If it detects one, it sends a personalized link to the new follower that gives them 45 seconds' worth of control over my lights.
  3. * That link is hosted on a web server that I pay for. The front-end communicates to a PHP script so that you don't have my public IP address.
  4. * The PHP server opens a socket to my computer to send any commands to a Node server that I have running.
  5. * The Node server communicates via my LAN to the Philips Hue bridge.
  6. * The Philips Hue bridge communicates via ZigBee to the light bulbs themselves (the light bulbs are Philips Hue bulbs).
  7.  
  8. Extra details:
  9. * All in all, the system took about 5 days to code
  10. * Yes, you can refresh the page or change the time, but you're only "cheating" the client; the server won't give you access.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement