Skip to content

Added _P070_NeoPixel_Clock.ino#489

Merged
psy0rz merged 7 commits intoletscontrolit:megafrom
ovywan:mega
Sep 14, 2017
Merged

Added _P070_NeoPixel_Clock.ino#489
psy0rz merged 7 commits intoletscontrolit:megafrom
ovywan:mega

Conversation

@ovywan
Copy link
Contributor

@ovywan ovywan commented Aug 24, 2017

A clock that uses a strip/ring of 60 NeoPixel LEDs as display for a classic clock.
The plugin is working in my setup for about 6 months (also posted in Playground).

ovywan added 5 commits August 17, 2017 22:18
A clock that uses a ring of 60 NeoPixel LEDs as display for a classic clock. The hours are RED, the minutes are GREEN, the seconds are BLUE and the hour marks are WHITE. The brightness of the clock hands and the hour marks can be set in the device page, or can be set by HTTP or Rules commands. The format is as follows: Clock,1,128,32 → 1=enable display, 128=hand brightness, 32=mark brightness Clock,0,, → 0=disable display, without changing the saved values of the brightness Clock,,65, → change only the brightness of the clock hands Clock,,,10 → change only the brightness of the hour marks
- The commands are working - Correction of offset
@Grovkillen
Copy link
Member

Would it be possible to extend this plugin to show other things and not only the time? I mean, sound volume if used with a rotary encoder. Or perhaps as a distance indicator if used in conjunction with a distance sensor. Etc. etc.
The more we add to this the better :)


#define PLUGIN_070
#define PLUGIN_ID_070 70
#define PLUGIN_NAME_070 "NeoPixel - Ring Clock [TESTING]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "Output - NeoPixel Ring Clock [TESTING]"

Changed the name of the plugin to "Output - NeoPixel Ring Clock [TESTING]"
@ovywan
Copy link
Contributor Author

ovywan commented Aug 25, 2017

I never thought of a level indicator. The improvememts I had in mind were:

  • color efects (mood lamp), based on / similar to the P042 Candle plugin
  • an inverted mode where all LEDs are lit, except the hands, so it could be used as a bright lamp.

Maybe it could be merged with some of the other NeoPixel plugins, with a mode switch.
For the level indicator you suggested I am thinking of the P038 basic NeoPixel, there is some code that can be carried over.

@Grovkillen
Copy link
Member

I see, good improvements you have there. Regarding level indicator, that just came to my mind. I love plugins that do more than just one thing. :)

Good job though! 👍

@ovywan
Copy link
Contributor Author

ovywan commented Aug 25, 2017

Just to clarify, the improvements I mentioned are on the "To do list". For the moment, there is only a clock with a configurable offset for the position of the 12 o'clock LED.
The brightness of the hands and hour marks can be adjusted via web interface or command (I use it with Domoticz).

@Grovkillen
Copy link
Member

Yes I read it as "to do" :)

GlobalSyncOption not needed, therefore set to false.
@psy0rz
Copy link
Member

psy0rz commented Sep 14, 2017

hmm this is a pretty specific plugin. i'm not sure we should include it in ESPEasy by default.

I will add a #define PLUGIN_BUILD_DISABLED , so that its disabled by default, but people can re-enable it and compile ESPEasy for them themself.

@psy0rz psy0rz merged commit 2d8e14e into letscontrolit:mega Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants