项目作者: alexfaria

项目描述 :
Side project to sync multiple coloured touch sensitive lamps using MQTT
高级语言: HTML
项目地址: git://github.com/alexfaria/lampify.git
创建时间: 2017-10-19T16:32:54Z
项目社区:https://github.com/alexfaria/lampify

开源协议:MIT License

下载


Lampify

Lampify is a IoT side project I did to synchronize multiple colour LED lamps over the internet. The project files include
the arduino source code as well as the website.
It makes use of the MQTT protocol with the broker server installed on a Raspberry Pi.

gif

Installation

Requirements

  • Arduino Compatible Board
  • Some WS2812 Leds
  • A 10K resistor

$ git clone https://github.com/alexfaria/lampify

Configuration

Before uploading the code onto the board you will need to change some variables at the top of the source file.

  1. #define LAMP_NAME "lamp1"
  2. #define MQTT_SERVER "example.com"

Website

Just like the board, you will need to change some variables in the javascript file
before deploying the website. In order for the website to work your MQTT broker will need to have websockets enabled. (guide)

  1. const lamps = {
  2. url: "wss://example.com:8888",
  3. }
  1. $ git clone https://github.com/alexfaria/lampify
  2. $ cd website
  3. $ python3 -m http.server

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the terms of the MIT license.