Skip to content

CleverCloud/wemos-statsd-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wemos websocket LED Backend

A Node.js backend for the wemos LED project, by Clever Cloud.

Uses websocket with node to send color codes to a wemos D1 mini connected to a multicolor LED strip.

Installation

Local Setup

Run the project with npm install and npm start.

On Clever Cloud

  1. Login to Clever Cloud
  2. Create a new Node.js app, without add-on
  3. Push the project via git to the given clever cloud remote to start the deployment.
  4. Create a new domain name or copy the existing one
  5. Setup the wemos with the code you'll find here.

Configuration

This software doesn't need configuration. But the wemos does.

As mentionned above, head up to wemos-ws-led project, and clone it locally. Then change the WEBSOCKET_HOST to the domain name of this project (could localhost or the clever cloud sub-domain). Set the port set to 80, and configure a WPA2 wifi access with Internet with WIFI_SSID WIFI_PASSWORD. You'll need the Arduino IDE to upload the code to the wemos.

Usage

Browse to the domain name, wait for a wemos to connect, and click within the window to send the color to the LED strip.