maarten-pennings / 303wifilc01 Goto Github PK
View Code? Open in Web Editor NEWHome brew firmware for the ESP8266 based "303 WIFI LC 01" clock
Home brew firmware for the ESP8266 based "303 WIFI LC 01" clock
Updated the firmware in my clock recently with this firmware. Code runs fine, and I connected it to my wifi, but it isn't pulling in time from the NTP servers.
The display always shows ntp and doesn't do anything else.
on line 93, arduino IDE gives an error: E:\Downloads\303WIFILC01-main\5-clock\nCLC\nCLC.ino: In function 'void setup()':
nCLC:93:36: error: invalid conversion from 'char*' to 'long int' [-fpermissive]
configTime( cfg.getval("Timezone"), cfg.getval("NTP.server.1"), cfg.getval("NTP.server.2"), cfg.getval("NTP.server.3"));
^
In file included from sketch\nCLC.ino.cpp:1:0:
C:\Users\eric\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:278:17: error: initializing argument 1 of 'void configTime(long int, int, const char*, const char*, const char*)' [-fpermissive]
extern "C" void configTime(long timezone, int daylightOffset_sec,
^
nCLC:93:64: error: invalid conversion from 'char*' to 'int' [-fpermissive]
configTime( cfg.getval("Timezone"), cfg.getval("NTP.server.1"), cfg.getval("NTP.server.2"), cfg.getval("NTP.server.3"));
^
In file included from sketch\nCLC.ino.cpp:1:0:
C:\Users\eric\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Arduino.h:278:17: error: initializing argument 2 of 'void configTime(long int, int, const char*, const char*, const char*)' [-fpermissive]
extern "C" void configTime(long timezone, int daylightOffset_sec,
^
invalid conversion from 'char*' to 'long int' [-fpermissive]
how can i fix this and get it to compile?
Trying to have disp_brightness
with a default value of 1 when the clock boot up to reduce the LDO temperature sine it's get pretty toasty (61.2ÂēC)
Unfortunately changing static uint8_t disp_brightness = 8;
to static uint8_t disp_brightness = 1;
inside disp.cpp
doesn't seems to change the default brightness value.
For those interested in using the DS1302 RTC (e.g. use it to sync the time, only connecting to the Wifi to update it once or twice a day through NTP), the GPIOs are the following :
DS1302 CLK GPIO16
DS1302 CE GPIO05
DS1302 IO GPIO14
Hello!
Just wanted to start by saying I love this project! You totally saved this formerly useless clock that I bought!
I'm looking to make my own version to integrate with my homebrew home automation (specifically to display my pool temperature), but I noticed the configuration web interface code seems to be missing from the 5-clock directory.
Would it be possible to add the missing code?
Thanks!
ae-zero
Hello,
Thank you for this awesome project - makes the clock hardware very useful. I'm adapting it to be used at our school. Are you open for some code contributions (e.g. supporting DS1302 RTC, A button to activate a timer, a webserver to configure few things, etc?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ī¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.