Giter Site home page Giter Site logo

imeszaros / ledclock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aircoookie/wled

77.0 77.0 18.0 108.67 MB

A customizable 7-segment style Wi-Fi connected clock powered by WLED.

License: MIT License

C++ 55.48% HTML 7.72% C 30.84% JavaScript 4.15% CSS 1.53% Dockerfile 0.03% Python 0.24% Batchfile 0.01% Shell 0.01%

ledclock's People

Contributors

aircoookie avatar ajotanc avatar albarlow avatar blazoncek avatar def3nder avatar dependabot[bot] avatar ewoudwijma avatar ezcgman avatar fishbone-git avatar garyd9 avatar huksley avatar imeszaros avatar lost-hope avatar mountainash avatar moustachauve avatar mxklb avatar pbolduc avatar pjhatch avatar proto-molecule avatar scottrbailey avatar softhack007 avatar srg74 avatar stockklauser avatar stringandstickytape avatar travisdean avatar troyhacks avatar viknet365 avatar werkstrom avatar wiesendaniel avatar woodyletscode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ledclock's Issues

Connecting to wemos

Hey.
I have successfully uploaded your fork to my wemos D1 mini, but when I connect to led AP, I don't get a interface but something ups downloading. Can you help me

NodeMCU esp-12e 8266

I have the NodeMCU esp-12e series, but I can't install led clock on it. I get an esp8266 not supported error, is there a solution? I wish you good work.

For d1mini

can anyone help me with the changes to be made before compiling for Esp8266 boards . just changed it in the platformio_override.ini but getting error while compiling like
wled00\beeper.h:5:28: fatal error: esp32-hal-ledc.h: No such file or directory

Visual Studio Code Issue

I have an error in Visual Studio Code with PlatformIO and C++. I don't know what I did wrong. Can you tell me how? I'm not good with code.

image

esp8266 veriant working but when open clock settings esp reboots

What happened?

i downloaded the latest code of ledclock-esp8266 compiled from platformio and uploaded on nodeMcu working good. but cant set my timezone. when i am going clock setting option esp reboots. and the web server opens on only the wled app. in web browser when i giving the ip somthing starts downloading. please tell me a solutoin to fix my time zone.
for your info this same code works fine on esp32.
but i wanted it to esp8266.
please reply with a fix

To Reproduce Bug

platform io compiles error but fix in two three attempts and uploaded with platform io. ledclock esp8266 working everything. i managed to fix the led order. but in esp8266 reboots only when i open the clock settings and time macros option.

Expected Behavior

in esp32 same programme working fine . i can open clock settings and time macros

Install Method

Self-Compiled

What version of WLED?

lestest build 1.2.0

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Sound reactive

Could you merge you WLED with this fork? https://github.com/atuline/WLED/releases/ (the official SR Fork)
I would also like to be able to change the length of segments in settings rather than have to reflash.
Thanks for making this awesome fork! also, when is the next update coming out?

ESP8266 Support

Sorry, but ESP8266 is not supported by this project. There is an experimental branch for it in this repositoy but I can't help with issues related to ESP8266.

Number of Leds greater than 255 (byte overflow?)

What happened?

Hello, I have made a custom version of ledclock using led strips that have been cut, I have 9 leds per segments.

I can build,publish and update my esp32 without issue.

I have a total of 252 Leds for the segments and 14 leds for the dots. This makes a total of 266 Leds

The issue that I am facing is it only works when the Led length is set to 252 in the Led preference in wled settings, when changed to 266 it doesn't work after a reboot. If I set the length to 945 it doesn't work either.

Once we reboot wled, there is no boot animation anymore and the time nevers shows.

I think the problem could be a byte overflow when the led length is more than 255.

I'm not sure where to start looking to fix this issue, could you put me in the right direction?

To Reproduce Bug

I have changed the code in the file const_ledclock.h as follow:

#define LC_LEDS_PER_SEGM 9 // LEDs per segment

#define LC_LEDMAP
-1, 206, 205, 204, 203, 202, 201, 200, 199, 198, -1, -1, 143, 142, 141, 140, 139, 138, 137, 136, 135, -1, -1, -1, 80, 79, 78, 77, 76, 75, 74, 73, 72, -1, -1, 17, 16, 15, 14, 13, 12, 11, 10, 9, -1,
207, -1, -1, -1, -1, -1, -1, -1, -1, -1, 197, 144, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, 252, 81, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8,
208, -1, -1, -1, -1, -1, -1, -1, -1, -1, 196, 145, -1, -1, -1, -1, -1, -1, -1, -1, -1, 133, 253, 82, -1, -1, -1, -1, -1, -1, -1, -1, -1, 70, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7,
209, -1, -1, -1, -1, -1, -1, -1, -1, -1, 195, 146, -1, -1, -1, -1, -1, -1, -1, -1, -1, 132, 254, 83, -1, -1, -1, -1, -1, -1, -1, -1, -1, 69, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6,
210, -1, -1, -1, -1, -1, -1, -1, -1, -1, 194, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, 131, 255, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, 68, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5,
211, -1, -1, -1, -1, -1, -1, -1, -1, -1, 193, 148, -1, -1, -1, -1, -1, -1, -1, -1, -1, 130, 256, 85, -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4,
212, -1, -1, -1, -1, -1, -1, -1, -1, -1, 192, 149, -1, -1, -1, -1, -1, -1, -1, -1, -1, 129, 257, 86, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 23, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3,
213, -1, -1, -1, -1, -1, -1, -1, -1, -1, 191, 150, -1, -1, -1, -1, -1, -1, -1, -1, -1, 128, 258, 87, -1, -1, -1, -1, -1, -1, -1, -1, -1, 65, 24, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2,
214, -1, -1, -1, -1, -1, -1, -1, -1, -1, 190, 151, -1, -1, -1, -1, -1, -1, -1, -1, -1, 127, -1, 88, -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, 25, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1,
215, -1, -1, -1, -1, -1, -1, -1, -1, -1, 189, 152, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, 89, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0,
-1, 216, 217, 218, 219, 220, 221, 222, 223, 224, -1, -1, 153, 154, 155, 156, 157, 158, 159, 160, 161, -1, -1, -1, 90, 91, 92, 93, 94, 95, 96, 97, 98, -1, -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1,
251, -1, -1, -1, -1, -1, -1, -1, -1, -1, 225, 188, -1, -1, -1, -1, -1, -1, -1, -1, -1, 162, 259, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 99, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36,
250, -1, -1, -1, -1, -1, -1, -1, -1, -1, 226, 187, -1, -1, -1, -1, -1, -1, -1, -1, -1, 163, 260, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, 100, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37,
249, -1, -1, -1, -1, -1, -1, -1, -1, -1, 227, 186, -1, -1, -1, -1, -1, -1, -1, -1, -1, 164, 261, 123, -1, -1, -1, -1, -1, -1, -1, -1, -1, 101, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38,
248, -1, -1, -1, -1, -1, -1, -1, -1, -1, 228, 185, -1, -1, -1, -1, -1, -1, -1, -1, -1, 165, 262, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, 102, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 39,
247, -1, -1, -1, -1, -1, -1, -1, -1, -1, 229, 184, -1, -1, -1, -1, -1, -1, -1, -1, -1, 166, 263, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, 58, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40,
246, -1, -1, -1, -1, -1, -1, -1, -1, -1, 230, 183, -1, -1, -1, -1, -1, -1, -1, -1, -1, 167, 264, 120, -1, -1, -1, -1, -1, -1, -1, -1, -1, 104, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41,
245, -1, -1, -1, -1, -1, -1, -1, -1, -1, 231, 182, -1, -1, -1, -1, -1, -1, -1, -1, -1, 168, 265, 119, -1, -1, -1, -1, -1, -1, -1, -1, -1, 105, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, 42,
244, -1, -1, -1, -1, -1, -1, -1, -1, -1, 232, 181, -1, -1, -1, -1, -1, -1, -1, -1, -1, 169, -1, 118, -1, -1, -1, -1, -1, -1, -1, -1, -1, 106, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, 43,
243, -1, -1, -1, -1, -1, -1, -1, -1, -1, 233, 180, -1, -1, -1, -1, -1, -1, -1, -1, -1, 170, -1, 117, -1, -1, -1, -1, -1, -1, -1, -1, -1, 107, 54, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44,
-1, 242, 241, 240, 239, 238, 237, 236, 235, 234, -1, -1, 179, 178, 177, 176, 175, 174, 173, 172, 171, -1, -1, -1, 116, 115, 114, 113, 112, 111, 110, 109, 108, -1, -1, 53, 52, 51, 50, 49, 48, 47, 46, 45, -1

#define LC_SEP_LEDS 14

#define LC_SEP_LED_ROWS 1, 2,3,4,5,6,7,11,12,13,14,15,16,17

I also changed the DEFAULT_LED_COUNT in platformio_override.ini:
-D DEFAULT_LED_COUNT=945

Here is an image of the led mapping for better visualisation:
image

Expected Behavior

The Matrix should be working with 266 leds (matrix size of 945 leds)

Install Method

Self-Compiled

What version of WLED?

LedClock version 1.3.0 WLED version 0.14.1

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

ESP8266 problems.

tried the esp8266 version but . after connecting to ledclock ap , no pages open on clicking wifi settings and restarts device.even tried to use it in AP mode but all tabs are just not opening ,,,, can anyone try and give a solution ??. even tried a precompiled binary found in the firmware itself but same problem . only can log in to the wifi and 4.3.2.1... Help.

Dynamic Cast Not Permitted

Receiving this error each time I attempt to compile using VScode

*** [.pio/build/esp32dev/src/set.cpp.o] Error 1
wled00/xml.cpp: In function 'void getSettingsJS(byte, char*)':
wled00/xml.cpp:675:103: error: 'dynamic_cast' not permitted with -fno-rtti
LedClockSettings* settings = dynamic_cast<LedClockSettings *>(usermods.lookup(USERMOD_ID_LEDCLOCK));

Board not supported error

What happened?

I have three boards, two esp8266 not working and one esp32 which works, I get the board not supported message:

  • D1 MINI V4.0.0 - dosn't work
  • NodeMcu V3 ESP8266 - doesn't work
  • ESP32-WROVER - works

board_not_supported

What's interesting is that all three work when trying to upload the Aircoookie/WLED firmware.

Any idea how to get around this?

Thanks!

To Reproduce Bug

upload firmware using https://imeszaros.github.io/ledclock/

Expected Behavior

upload works

Install Method

Binary from WLED.me

What version of WLED?

1.2.0

Which microcontroller/board are you seeing the problem on?

ESP8266, ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

How can I change the number of LEDs / order of LEDs?

For versions >= 1.3.0

Please check const_ledclock.h for instructions.

For versions < 1.3.0:

If you want to change how many LEDs make up a segment:

  • change the total number of LEDs in platformio_override.ini:
  • in um_ledclock.h change in the member initializer list the arguments for dHoursT, dHoursO, dMinutesT and dMinutesO from 2 to the desired number of LEDs per segment
  • currently it is not possible to change the number of LEDs in the separator

Either if you've changed the number of LEDs or just want to change the order of LEDs, you need to re-map the LEDs here:

  • For example the statement dHoursT.mapSegment(_7SEG_SEG_A, 6, 7); maps the 'A' segment of the 'tens' digit to LEDs indexed with 6 and 7.
  • mapSegment(...) can be called with variable number of arguments depending on how many LEDs you have per segment.
  • mapSegment(...) expects LED ordering within a segment:
    • left to right for horizontal segments (e.g. A)
    • top to bottom for vertical segments (e.g. B)

EDIT: about the mapping of the separator, read this.

Issues flashing firmware on ESP8266

I am unable to run the firmware on my ESP8266. It seems to flash normally but the AP is not working (also no status led). I am unable to connect and setup the module. I tried the pre-compiled release and also tried compiling it myself using d1_mini environment but no luck with that either. The original WLED firmware works fine and I am able to connect to the AP.

Can you share the wiring of diagram of the connections?

Can you take a picture of the soldering and arrangement of the leds?
I printed it but I don't know how to arrange the LEDs with the solders (I can't find an exact explanation on github)
And do segments need to be defined?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.