LED WebSite Indicator connects your website to an internet connected LED
When a visitor opens a page on your site, the LED blinks
All you need is a D1 mini ESP8266 device - with built in LED - and a WordPress website which can install plugins
Sign up at LED Indicator Sign Up page, then sign in as shown below. You will be shown your randomly generated User and Password values for the service.
Install the LED-SITE-INDICATOR WordPress plugin on your site
The plugin is available on the WordPress plugin registry here
Or get it from source here: LED-SITE-INDICATOR github repo and zip it yourself
Installing the plugin for WordPress is easy, just go to Plugins -> Add New -> search for "led site indicator" in the "Search plugins" box
Don't forget to enable and activate the plugin
Go to settings -> LED-SITE-INDICATOR in the WordPress admin console
Enter the details from your LED Indicator account - Username and Password - as shown below
user/Colour box should be checked, type in your "username/LED" for this to work correctly
A python library is available from pypi
You can use pip to install it and the dependency:
pip install paho-mqtt==1.5.1
pip install led-indicator-messager>=0.0.4
Then in your python application:
from led_indicator_messager_package import led_messager
#mClient = led_messager.LEDMessager(username, password, "GREEN") # initialise for paid version with colours
mClient = led_messager.LEDMessager(username, password) #initialise for free version "LED"
mClient.connect()
mClient.send()
mClient.close()
Multiple instances are supported - eg mClient1, mClient2.. You could have one colour per web page or event.
You can use the paho JavaScript library for this
The host is ledmqtt.devsoft.co.za and the port is 9001
Sending MQTT from the front end is possible but not secure as your username and password will be visible in the console
Install the Arduino sketch, but change the Username and Password values to match the ones from your Led-Site-Indicator account.
Run the sketch and visit your website in any browser - the D1 Mini's built in LED should light up!