Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luebbe/wordclock
An esp8266 based word clock made with PlatformIO.
https://github.com/luebbe/wordclock
clock esp8266 mqtt ntp ota-update wordclock
Last synced: 23 days ago
JSON representation
An esp8266 based word clock made with PlatformIO.
- Host: GitHub
- URL: https://github.com/luebbe/wordclock
- Owner: luebbe
- License: mit
- Created: 2020-11-29T12:32:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T18:05:23.000Z (8 months ago)
- Last Synced: 2024-06-13T09:15:41.398Z (5 months ago)
- Topics: clock, esp8266, mqtt, ntp, ota-update, wordclock
- Language: C++
- Homepage:
- Size: 447 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordClock
[![Languages](https://img.shields.io/github/languages/top/luebbe/WordClock.svg?style=flat-square)](https://img.shields.io/github/languages/top/luebbe/WordClock)
[![Codacy](https://img.shields.io/codacy/grade/0410bb8900e249bbbbcdd45005ae8015?style=flat-square)](https://app.codacy.com/gh/luebbe/WordClock/dashboard)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://opensource.org/licenses/MIT)An ESP8266 based Word Clock built with PlatformIO that fetches the time from a NTP server.
This is firmware for the 11x10 LED Matrix word clock case from [WordClock 12h (desk clock edition) from Thingiverse](https://www.thingiverse.com/thing:2130830).
It features MQTT autodiscovery for Home AssistantIt currently has three modes:
- word clock with seconds as ambilight
- rainbow animation
- aurora borealis animationThe modes and brightness can be set via mqtt by writing to the following mqtt topics:
- `wordclock/brightness/set` (0..255) - very low brighness values (e.g. less than 20) may lead to colors not being shown properly
- `wordclock/mode/set` (0..2)When the word clock is powered up, it starts in mode 0 (word clock) with brightness 20.
The word clock reports its state via the following mqtt topics:- `wordclock/$localip` - the ip address assigned to the word clodk
- `wordclock/$mac` - the mac address of the ESP8266
- `wordclock/$state` - (ready|lost). `ready` when connected to wifi and mqtt. The state switches to `lost` automatically, when the connection is lost.
- `wordclock/brightness` - the current brightness
- `wordclock/mode` - the current modeDependencies are:
- FastLed
- NtpClient
- Time
- TimeZone
- espMqttClient
- HaMqttConfigBuilderIf you build the firmware using PlatformIO, all dependencies are pulled in automatically. If you prefer a different IDE you have to take care of everything yourself.
The wifi and mqtt credentials are stored in an external "secrets.h" file.
| ![Open case](./images/img_case_open_1.jpg) | ![Open case](./images/img_case_open_2.jpg) |
| :----------------------------------------: | :----------------------------------------: |
| Open case | Open case |The pictures below are taken with almost minimal brightness of the LEDs.
| ![No diffusor](./images/img_no_diffusor.jpg) | ![Paper diffusor](./images/img_paper_diffusor.jpg) | ![With front](./images/img_with_front.jpg) |
| :------------------------------------------: | :------------------------------------------------: | :----------------------------------------: |
| No diffusor | A sheet of paper as diffusor | Paper and front |The case is beautiful, but IMHO it has two drawbacks:
- The grid part for the LEDs should be printed separately in black. Even though I have spray painted the
inner walls of the grid white twice, there's still a glow effect from one chamber to the next.
- Another reason for the glow effect is probably that it is not possible to bring the LEDs 100% tight to the
grid. The cables that you have to solder to the ends and the LED strip itself will always account for a
1mm gap between LEDs and grid, so light can get through. This can perhaps be solved by filing down the
vertical parts of the grid a bit, but it would be better to make the horizontal parts of the grid a bit
longer on the rear side.