Can't install plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Can't install plugin

#1 Post by ToughCookie » 03 Jul 2021, 11:36

Hello everyone, could somebody help me to compile firmware?
I need to add RTC clock support into my ESP8266 module. I found plugin here https://github.com/letscontrolit/ESPEas ... DS1307.ino.

1.Downloaded mega-20210503 source code from here https://github.com/letscontrolit/ESPEasy/releases
2.Followed these instructions to compile source code via Arduino IDE https://www.letscontrolit.com/wiki/inde ... are_Upload
*Esp core 2.3.0 doesn't worked so I tryed 2.5.2 , 2.7.4 and 3.0.1 versions
And all compiled and work fine.

After that I added _P156_DS1307.ino to the ESPEasy.ino containing folder.
*Uncomment string in the ESPEasy-Globals.h

Code: Select all

//build all plugins that are in test stadium
#define PLUGIN_BUILD_TESTING
In order to solve some problems I changed parameter:
-In the _P156_DS1307.ino changed

Code: Select all

 Device[deviceCount].VType = SENSOR_TYPE_DUAL;
string to

Code: Select all

Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DUAL; 
And now I have a ton of errors :?
errorLog.PNG
errorLog.PNG (32.86 KiB) Viewed 10337 times

Code: Select all

Arduino: 1.6.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
WARNING: Category 'Network' in library lwIP_PPP is not valid. Setting to 'Uncategorized'
WARNING: Category 'Network' in library lwIP_enc28j60 is not valid. Setting to 'Uncategorized'
WARNING: Category 'Network' in library lwIP_w5500 is not valid. Setting to 'Uncategorized'
WARNING: Category 'Network' in library lwIP_w5500 is not valid. Setting to 'Uncategorized'
WARNING: library LiquidCrystal_I2C claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'boolean Plugin_156(byte, EventStruct*, String&)':
_P156_DS1307:105: error: 'year' was not declared in this scope
  105 |         if ( (loctime > 0) && (year(loctime) > 2000) && (year(loctime) < 3000) ) {
      |                                ^~~~
_P156_DS1307:152: error: expected unqualified-id before '.' token
  152 |             tm.Year = 48;
      |               ^
_P156_DS1307:153: error: expected unqualified-id before '.' token
  153 |           } else { tm.Year = year-1970;}
      |                      ^
_P156_DS1307:154: error: expected unqualified-id before '.' token
  154 |           tm.Month = smonth.toInt();
      |             ^
_P156_DS1307:155: error: expected primary-expression before '.' token
  155 |           if ((tm.Month < 1) || (tm.Month > 12)) {
      |                  ^
_P156_DS1307:155: error: expected primary-expression before '.' token
  155 |           if ((tm.Month < 1) || (tm.Month > 12)) {
      |                                    ^
_P156_DS1307:156: error: expected unqualified-id before '.' token
  156 |             tm.Month = 1;
      |               ^
_P156_DS1307:158: error: expected unqualified-id before '.' token
  158 |           tm.Day = sday.toInt();
      |             ^
_P156_DS1307:159: error: expected primary-expression before '.' token
  159 |           if ((tm.Day < 1) || (tm.Day > 31)) {
      |                  ^
_P156_DS1307:159: error: expected primary-expression before '.' token
  159 |           if ((tm.Day < 1) || (tm.Day > 31)) {
      |                                  ^
_P156_DS1307:160: error: expected unqualified-id before '.' token
  160 |             tm.Day = 1;
      |               ^
_P156_DS1307:162: error: expected unqualified-id before '.' token
  162 |           tm.Hour = shour.toInt();
      |             ^
_P156_DS1307:163: error: expected primary-expression before '.' token
  163 |           if ((tm.Hour < 0) || (tm.Hour > 23)) {
      |                  ^
_P156_DS1307:163: error: expected primary-expression before '.' token
  163 |           if ((tm.Hour < 0) || (tm.Hour > 23)) {
      |                                   ^
_P156_DS1307:164: error: expected unqualified-id before '.' token
  164 |             tm.Hour = 0;
      |               ^
_P156_DS1307:166: error: expected unqualified-id before '.' token
  166 |           tm.Minute = sminute.toInt();
      |             ^
_P156_DS1307:167: error: expected primary-expression before '.' token
  167 |           if ((tm.Minute < 0) || (tm.Minute > 59)) {
      |                  ^
_P156_DS1307:167: error: expected primary-expression before '.' token
  167 |           if ((tm.Minute < 0) || (tm.Minute > 59)) {
      |                                     ^
_P156_DS1307:168: error: expected unqualified-id before '.' token
  168 |             tm.Minute = 0;
      |               ^
_P156_DS1307:170: error: expected unqualified-id before '.' token
  170 |           tm.Second = ssecond.toInt();
      |             ^
_P156_DS1307:171: error: expected primary-expression before '.' token
  171 |           if ((tm.Second < 0) || (tm.Second > 59)) {
      |                  ^
_P156_DS1307:171: error: expected primary-expression before '.' token
  171 |           if ((tm.Second < 0) || (tm.Second > 59)) {
      |                                     ^
_P156_DS1307:172: error: expected unqualified-id before '.' token
  172 |             tm.Second = 0;
      |               ^
_P156_DS1307:174: error: expected primary-expression before ')' token
  174 |           DS1307_set(tm);
      |                        ^
_P156_DS1307:175: error: 'nextSyncTime' was not declared in this scope
  175 |           nextSyncTime = 0;
      |           ^~~~~~~~~~~~
_P156_DS1307:178: error: cannot convert 'EventValueSource::Enum' to 'EventStruct*'
  178 |           SendStatus(event->Source, command);
      |                      ~~~~~~~^~~~~~
      |                             |
      |                             EventValueSource::Enum
In file included from sketch\_Plugin_Helper.h:16,
                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\ESPEasy.ino:104:
sketch\src/ESPEasyCore/Controller.h:57:37: note:   initializing argument 1 of 'void SendStatus(EventStruct*, const String&)'
   57 | void SendStatus(struct EventStruct *event, const String& status);
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~
_P156_DS1307:197: error: 'nextSyncTime' was not declared in this scope
  197 |               nextSyncTime = 0;
      |               ^~~~~~~~~~~~
_P156_DS1307:203: error: cannot convert 'EventValueSource::Enum' to 'EventStruct*'
  203 |           SendStatus(event->Source, command);
      |                      ~~~~~~~^~~~~~
      |                             |
      |                             EventValueSource::Enum
In file included from sketch\_Plugin_Helper.h:16,
                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\ESPEasy.ino:104:
sketch\src/ESPEasyCore/Controller.h:57:37: note:   initializing argument 1 of 'void SendStatus(EventStruct*, const String&)'
   57 | void SendStatus(struct EventStruct *event, const String& status);
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'long unsigned int plugin_156_rtcnow()':
_P156_DS1307:233: error: 'prevMillis' was not declared in this scope
  233 |   const long msec_passed = timePassedSince(prevMillis);
      |                                            ^~~~~~~~~~
_P156_DS1307:235: error: 'sysTime' was not declared in this scope
  235 |   sysTime += seconds_passed;
      |   ^~~~~~~
_P156_DS1307:237: error: 'nextSyncTime' was not declared in this scope
  237 |   if (nextSyncTime <= sysTime) {
      |       ^~~~~~~~~~~~
_P156_DS1307:242: error: 'setTime' was not declared in this scope; did you mean 'setitimer'?
  242 |       setTime(t);
      |       ^~~~~~~
      |       setitimer
_P156_DS1307:247: error: expected primary-expression before ')' token
  247 |   breakTime(sysTime, tm);
      |                        ^
_P156_DS1307:247: error: 'breakTime' was not declared in this scope
  247 |   breakTime(sysTime, tm);
      |   ^~~~~~~~~
_P156_DS1307:249: error: 'calcSunRiseAndSet' was not declared in this scope
  249 |     calcSunRiseAndSet();
      |     ^~~~~~~~~~~~~~~~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'long unsigned int plugin_156_getRtcTime()':
_P156_DS1307:260: error: expected primary-expression before ')' token
  260 |   DS1307_get(tm);
      |                ^
_P156_DS1307:261: error: expected unqualified-id before '.' token
  261 |   if (tm.Year < 31) { // rtc read error?
      |         ^
_P156_DS1307:262: error: 'nextSyncTime' was not declared in this scope
  262 |     nextSyncTime = sysTime + 60;
      |     ^~~~~~~~~~~~
_P156_DS1307:262: error: 'sysTime' was not declared in this scope
  262 |     nextSyncTime = sysTime + 60;
      |                    ^~~~~~~
_P156_DS1307:265: error: expected primary-expression before '.' token
  265 |   logs += (tm.Year+1970);
      |              ^
_P156_DS1307:267: error: expected primary-expression before '.' token
  267 |   logs += tm.Month;
      |             ^
_P156_DS1307:269: error: expected primary-expression before '.' token
  269 |   logs += tm.Day;
      |             ^
_P156_DS1307:271: error: expected primary-expression before '.' token
  271 |   logs += tm.Hour;
      |             ^
_P156_DS1307:273: error: expected primary-expression before '.' token
  273 |   logs += tm.Minute;
      |             ^
_P156_DS1307:275: error: expected primary-expression before '.' token
  275 |   logs += tm.Second;
      |             ^
_P156_DS1307:277: error: expected primary-expression before ')' token
  277 |   return makeTime(tm); // return unix time
      |                     ^
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'void plugin_156_rtccheckTime()':
_P156_DS1307:285: error: 'rtcnow' was not declared in this scope
  285 |   rtcnow();
      |   ^~~~~~
_P156_DS1307:286: error: expected unqualified-id before '.' token
  286 |   if (tm.Minute != PrevMinutes)
      |         ^
_P156_DS1307:289: error: 'PrevMinutes' was not declared in this scope
  289 |     PrevMinutes = tm.Minute;
      |     ^~~~~~~~~~~
_P156_DS1307:289: error: expected primary-expression before '.' token
  289 |     PrevMinutes = tm.Minute;
      |                     ^
_P156_DS1307:295: error: 'weekday_str' was not declared in this scope
  295 |       event += weekday_str();
      |                ^~~~~~~~~~~
_P156_DS1307:297: error: 'hour' was not declared in this scope
  297 |       if (hour() < 10)
      |           ^~~~
_P156_DS1307:299: error: 'hour' was not declared in this scope
  299 |       event += hour();
      |                ^~~~
_P156_DS1307:301: error: 'minute' was not declared in this scope; did you mean 'finite'?
  301 |       if (minute() < 10)
      |           ^~~~~~
      |           finite
_P156_DS1307:303: error: 'minute' was not declared in this scope; did you mean 'finite'?
  303 |       event += minute();
      |                ^~~~~~
      |                finite
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'void plugin_156_do_ntpsync()':
_P156_DS1307:313: error: 'nextSyncTime' was not declared in this scope
  313 |   nextSyncTime = 0;
      |   ^~~~~~~~~~~~
_P156_DS1307:315: error: 'getNtpTime' was not declared in this scope
  315 |   unsigned long t = getNtpTime(); // get time from ntp if available
      |                     ^~~~~~~~~~
_P156_DS1307:318: error: 'toLocal' was not declared in this scope
  318 |     breakTime(toLocal(t), tm); // timezone is a major headache...
      |               ^~~~~~~
_P156_DS1307:318: error: expected primary-expression before ')' token
  318 |     breakTime(toLocal(t), tm); // timezone is a major headache...
      |                             ^
_P156_DS1307:318: error: 'breakTime' was not declared in this scope
  318 |     breakTime(toLocal(t), tm); // timezone is a major headache...
      |     ^~~~~~~~~
_P156_DS1307:320: error: expected primary-expression before '.' token
  320 |   logs += (tm.Year+1970);
      |              ^
_P156_DS1307:322: error: expected primary-expression before '.' token
  322 |   logs += tm.Month;
      |             ^
_P156_DS1307:324: error: expected primary-expression before '.' token
  324 |   logs += tm.Day;
      |             ^
_P156_DS1307:326: error: expected primary-expression before '.' token
  326 |   logs += tm.Hour;
      |             ^
_P156_DS1307:328: error: expected primary-expression before '.' token
  328 |   logs += tm.Minute;
      |             ^
_P156_DS1307:330: error: expected primary-expression before '.' token
  330 |   logs += tm.Second;
      |             ^
_P156_DS1307:332: error: expected unqualified-id before '.' token
  332 |     if (tm.Year > 47) {       // if time seems valid update RTC
      |           ^
_P156_DS1307:333: error: expected primary-expression before ')' token
  333 |       DS1307_set(tm);
      |                    ^
_P156_DS1307:335: error: 'getUnixTime' was not declared in this scope
  335 |       logs += String(getUnixTime());
      |                      ^~~~~~~~~~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'long unsigned int plugin_156_initialize()':
_P156_DS1307:354: error: 'nextSyncTime' was not declared in this scope
  354 |   nextSyncTime = 0;
      |   ^~~~~~~~~~~~
_P156_DS1307:355: error: 'syncInterval' was not declared in this scope
  355 |   syncInterval = 1800;
      |   ^~~~~~~~~~~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: In function 'bool DS1307_get(timeStruct&)':
_P156_DS1307:372: error: invalid use of incomplete type 'struct timeStruct'
  372 |   tml.Second = bcd2bin(sec & 0x7f);
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:373: error: invalid use of incomplete type 'struct timeStruct'
  373 |   tml.Minute = bcd2bin(Wire.read() );
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:374: error: invalid use of incomplete type 'struct timeStruct'
  374 |   tml.Hour =   bcd2bin(Wire.read() & 0x3f);
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:375: error: invalid use of incomplete type 'struct timeStruct'
  375 |   tml.Wday = bcd2bin(Wire.read() );
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:376: error: invalid use of incomplete type 'struct timeStruct'
  376 |   tml.Day = bcd2bin(Wire.read() );
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:377: error: invalid use of incomplete type 'struct timeStruct'
  377 |   tml.Month = bcd2bin(Wire.read() );
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
_P156_DS1307:378: error: invalid use of incomplete type 'struct timeStruct'
  378 |   tml.Year = ((bcd2bin(Wire.read()))+30);
      |   ^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino: At global scope:
_P156_DS1307:385: error: 'tml' has incomplete type
  385 | bool DS1307_set(timeStruct tml)
      |                 ~~~~~~~~~~~^~~
C:\Users\ToughCookie\Downloads\ESPEasy-mega-20210503\ESPEasy-mega-20210503\ESPEasy\_P156_DS1307.ino:360:24: note: forward declaration of 'struct timeStruct'
  360 | bool DS1307_get(struct timeStruct &tml)
      |                        ^~~~~~~~~~
Multiple libraries were found for "Servo.h"
 Used: C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\Servo
 Not used: C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12P230\libraries\ServoESP32
 Not used: C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12P230\libraries\Servo
exit status 1
'year' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#2 Post by TD-er » 03 Jul 2021, 12:23

Looks like the source is not compatible anymore with the current source of ESPEasy.
The time related functions have changed about 2 years ago.
It also looks like you have not used the libraries in the lib directory but rather tried to install the libs via the Arduino IDE manager.
I can have a look at the source later this weekend.

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#3 Post by ToughCookie » 03 Jul 2021, 20:17

Oh, it would be great.
Thank you!

chemmex
Normal user
Posts: 92
Joined: 15 Feb 2019, 16:18

Re: Can't install plugin

#4 Post by chemmex » 04 Jul 2021, 08:12

As the author enecbs told me some time ago, P_156 and P_157 can be compiled only against sources prior to 18.10.2018.

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#5 Post by ToughCookie » 05 Jul 2021, 11:59

Thank you for sharing this information.
I had some assumptions about old firmware version so I also tried to compile ESPEasy-mega-20191103 sources, but got the same errors.

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#6 Post by ToughCookie » 10 Jul 2021, 20:07

I tried to compile in following enviroment
Arduino IDE 1.6.12
ESP core 2.3.0 / 3.0.0
I had a lot errors connected to Time functions.
So I tried to include Time library (from here https://github.com/PaulStoffregen/Time).
It didn't solve the problem.
I can suppose that Time library is not compatible with the firmware.








*log is too large to insert it to message, so I cut a part from it.

Code: Select all


WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
WARNING: library LiquidCrystal_I2C claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
TimeESPeasy:199: error: new declaration 'long unsigned int now()'

 unsigned long now() {

                   ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:120:8: error: ambiguates old declaration 'time_t now()'

 time_t now();              // return the current time as seconds since Jan 1 1970 

        ^

TimeESPeasy:251: error: new declaration 'byte month()'

 byte month()

            ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:115:9: error: ambiguates old declaration 'int month()'

 int     month();           // the month now  (Jan is month 1)

         ^

TimeESPeasy:256: error: new declaration 'byte day()'

 byte day()

          ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:111:9: error: ambiguates old declaration 'int day()'

 int     day();             // the day now 

         ^

TimeESPeasy:261: error: new declaration 'byte hour()'

 byte hour()

           ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:99:9: error: ambiguates old declaration 'int hour()'

 int     hour();            // the hour now 

         ^

TimeESPeasy:266: error: new declaration 'byte minute()'

 byte minute()

             ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:107:9: error: ambiguates old declaration 'int minute()'

 int     minute();          // the minute now 

         ^

TimeESPeasy:271: error: new declaration 'byte second()'

 byte second()

             ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:109:9: error: ambiguates old declaration 'int second()'

 int     second();          // the second now 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'long unsigned int now()':

TimeESPeasy:199: error: new declaration 'long unsigned int now()'

 unsigned long now() {

                   ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:120:8: error: ambiguates old declaration 'time_t now()'

 time_t now();              // return the current time as seconds since Jan 1 1970 

        ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'byte month()':

TimeESPeasy:251: error: new declaration 'byte month()'

 byte month()

            ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:115:9: error: ambiguates old declaration 'int month()'

 int     month();           // the month now  (Jan is month 1)

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'byte day()':

TimeESPeasy:256: error: new declaration 'byte day()'

 byte day()

          ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:111:9: error: ambiguates old declaration 'int day()'

 int     day();             // the day now 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'byte hour()':

TimeESPeasy:261: error: new declaration 'byte hour()'

 byte hour()

           ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:99:9: error: ambiguates old declaration 'int hour()'

 int     hour();            // the hour now 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'byte minute()':

TimeESPeasy:266: error: new declaration 'byte minute()'

 byte minute()

             ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:107:9: error: ambiguates old declaration 'int minute()'

 int     minute();          // the minute now 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino: In function 'byte second()':

TimeESPeasy:271: error: new declaration 'byte second()'

 byte second()

             ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:109:9: error: ambiguates old declaration 'int second()'

 int     second();          // the second now 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino: In function 'void setTimeZone(const TimeChangeRule&, const TimeChangeRule&, uint32_t)':

TimeZoneESPeasy:87: error: call of overloaded 'year(uint32_t&)' is ambiguous

   if (calcTimeChanges(year(curTime))) {

                                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:87:35: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino: In function 'uint32_t calcTimeChangeForRule(const TimeChangeRule&, int)':

TimeZoneESPeasy:180: error: call of overloaded 'weekday(uint32_t&)' is ambiguous

     t += ( (r.dow - weekday(t) + 7) % 7 + (w - 1) * 7 ) * SECS_PER_DAY;

                              ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:180:30: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:114:9: note: int weekday(time_t)

 int     weekday(time_t t); // the weekday for the given time 

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:238:5: note: int weekday(long unsigned int)

 int weekday(unsigned long t) {

     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino: In function 'uint32_t toLocal(uint32_t)':

TimeZoneESPeasy:210: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                 ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:210:17: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:210: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:210:35: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:210: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                                                              ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:210:62: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino: In function 'bool utcIsDST(uint32_t)':

TimeZoneESPeasy:226: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                 ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:226:17: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:226: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:226:35: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:226: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(utc) != year(m_dstUTC)) calcTimeChanges(year(utc));

                                                              ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:226:62: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino: In function 'bool locIsDST(uint32_t)':

TimeZoneESPeasy:243: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(local) != year(m_dstLoc)) calcTimeChanges(year(local));

                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:243:19: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:243: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(local) != year(m_dstLoc)) calcTimeChanges(year(local));

                                     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:243:37: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

TimeZoneESPeasy:243: error: call of overloaded 'year(uint32_t&)' is ambiguous

     if (year(local) != year(m_dstLoc)) calcTimeChanges(year(local));

                                                                  ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeZoneESPeasy.ino:243:66: note: candidates are:

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:1:0:

C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Time-master/TimeLib.h:118:9: note: int year(time_t)

 int     year(time_t t);    // the year for the given time

         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\TimeESPeasy.ino:232:5: note: int year(long unsigned int)

 int year(unsigned long t) {

     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino: In function 'void WebServerInit()':

WebServer:456: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/"), handle_root);

                                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:456:35: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note:   candidate expects 3 arguments, 2 provided

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note:   candidate expects 4 arguments, 2 provided

WebServer:457: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/config"), handle_config);

                                           ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:457:43: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note:   candidate expects 3 arguments, 2 provided

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note:   candidate expects 4 arguments, 2 provided

WebServer:458: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/controllers"), handle_controllers);

                                                     ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:458:53: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note:   candidate expects 3 arguments, 2 provided

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note:   candidate expects 4 arguments, 2 provided

WebServer:459: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/hardware"), handle_hardware);

                                               ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:459:47: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note:   candidate expects 3 arguments, 2 provided

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note:   candidate expects 4 arguments, 2 provided

WebServer:460: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/devices"), handle_devices);

                                             ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:460:45: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note:   candidate expects 3 arguments, 2 provided

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:81:8: note:   candidate expects 4 arguments, 2 provided

WebServer:461: error: no matching function for call to 'ESP8266WebServer::on(const __FlashStringHelper*, void (&)())'

   WebServer.on(F("/notifications"), handle_notifications);

                                                         ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\WebServer.ino:461:57: note: candidates are:

In file included from sketch\ESPEasy-Globals.h:493:0,

                 from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note: void ESP8266WebServer::on(const char*, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, THandlerFunction handler);

        ^

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:79:8: note:   no known conversion for argument 1 from 'const __FlashStringHelper*' to 'const char*'

C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:80:8: note: void ESP8266WebServer::on(const char*, HTTPMethod, ESP8266WebServer::THandlerFunction)

   void on(const char* uri, HTTPMethod method, THandlerFunction fn);

        ^


C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\_P156_DS1307.ino: In function 'boolean Plugin_156(byte, EventStruct*, String&)':

_P156_DS1307:57: error: 'Sensor_VType' has not been declared

         Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DUAL;

                                     ^

In file included from C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\ESPEasy.ino:86:0:

ESPEasy-Globals.h:366: error: expected unqualified-id before numeric constant

 #define SENSOR_TYPE_DUAL                    5

                                             ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\_P156_DS1307.ino:57:51: note: in expansion of macro 'SENSOR_TYPE_DUAL'

         Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DUAL;

                                                   ^

ESPEasy-Globals.h:366: error: expected ';' before numeric constant

 #define SENSOR_TYPE_DUAL                    5

                                             ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\_P156_DS1307.ino:57:51: note: in expansion of macro 'SENSOR_TYPE_DUAL'

         Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DUAL;

                                                   ^

C:\Users\ToughCookie\Downloads\ESPEasy-mega-20181017\ESPEasy-mega-20181017\ESPEasy\_P156_DS1307.ino: In function 'void plugin_156_rtccheckTime()':

_P156_DS1307:285: error: 'rtcnow' was not declared in this scope

   rtcnow();

          ^

Multiple libraries were found for "Servo.h"
 Used: C:\Users\ToughCookie\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: C:\Users\ToughCookie\Downloads\arduino-1.6.12-windows\arduino-1.6.12\libraries\Servo
exit status 1
new declaration 'long unsigned int now()'


chemmex
Normal user
Posts: 92
Joined: 15 Feb 2019, 16:18

Re: Can't install plugin

#7 Post by chemmex » 13 Jul 2021, 22:51

Please take a look at this post: viewtopic.php?f=6&t=6978&p=38864&hilit=ds3231#p38863

There also should be somewhere a link to compiled binary with both plugins added.

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#8 Post by ToughCookie » 17 Jul 2021, 20:26

Thank you, but unfortunately there only this useful information :
The latest ESPEasy build that this plugin will compile is 2018.10.01 (version from 2018.10.18 may also work, as settime() function disappeared at 2018.Oct.19, and timestruct changed on 2018.Oct.26)
Maybe I shoud find another solution for my task.

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#9 Post by Ath » 17 Jul 2021, 21:09

Well, with some effort that playground plugin could be adjusted to work with the current ESPEasy sources, but I don't own that type of hardware so it would be quite hard to test.

Since the last time the playground plugin was last updated, the time related stuff in ESPEasy has seen quite some changes, so it might be a bit more work than 'a quick fix' though.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#10 Post by TD-er » 17 Jul 2021, 21:16

It is a RTC chip, so better to not have it as plugin?
It also takes a bit more effort to implement in the latest source code.

I do have them here, already on my desk, next to my keyboard, but last 2 weeks were extremely busy here.

chemmex
Normal user
Posts: 92
Joined: 15 Feb 2019, 16:18

Re: Can't install plugin

#11 Post by chemmex » 18 Jul 2021, 21:25

ToughCookie wrote: Maybe I shoud find another solution for my task.
You can try this binary as a last resort:
viewtopic.php?p=38093#p38093
Ath wrote: Well, with some effort that playground plugin could be adjusted to work with the current ESPEasy sources, but I don't own that type of hardware so it would be quite hard to test.

Since the last time the playground plugin was last updated, the time related stuff in ESPEasy has seen quite some changes, so it might be a bit more work than 'a quick fix' though.
I have both chips, so can test them if the sources compile.
TD-er wrote: It is a RTC chip, so better to not have it as plugin?
It also takes a bit more effort to implement in the latest source code.
I too would vote for having all time functions in the core, but these are quite hardware-specific...

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#12 Post by TD-er » 19 Jul 2021, 02:52


chemmex
Normal user
Posts: 92
Joined: 15 Feb 2019, 16:18

Re: Can't install plugin

#13 Post by chemmex » 19 Jul 2021, 10:07

Wow, please do not forget about DS3231, it usually comes together with DS1307 and is much much more precise

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#14 Post by ToughCookie » 23 Jul 2021, 12:59

TD-er wrote: 19 Jul 2021, 02:52 Just a heads-up: https://github.com/letscontrolit/ESPEasy/pull/3709

Working on it.
Wow! that's great.
I know cost of time (my and other's people), so I even can't tell with the words how much I appreciate what community done.

By the way, wich enviroment it must be to be compiled?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#15 Post by TD-er » 24 Jul 2021, 00:23

I can also make a test build for you.
Which binary do you need?

ToughCookie
Normal user
Posts: 10
Joined: 03 Jul 2021, 10:22

Re: Can't install plugin

#16 Post by ToughCookie » 24 Jul 2021, 20:40

You're very kind, thank you, but I already found out how to compile source code.

While compiling with Arduino IDE failed with information that ExtTimeSource_e is not defined.
So I solved it by adding #include "../DataStructs/SettingsStruct.h" string into AdvancedConfigPage.h
*I had no idea what I did, but it works fine :roll:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#17 Post by TD-er » 24 Jul 2021, 21:28

Looks like something that could be useful indeed :)
I will merge it into the mega branch.

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Can't install plugin

#18 Post by Sminter4 » 04 Aug 2021, 23:30

Great, I've been waiting for this opportunity for a long time! I also see the DS3231 option in the latest build (02.08.21).
However, i cannot find a corresponding plugin. How do I connect the HW?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't install plugin

#19 Post by TD-er » 05 Aug 2021, 01:50

It is not implemented as a plugin, but it can be found on the Tools->Advanced page as time source next to the NTP settings.
As far as I can remember without checking the source code, it is only excluded in the "minimal OTA" builds.
But if you also can't find it in the "test" builds, please try the "normal" builds to make sure you can find it.

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Can't install plugin

#20 Post by Sminter4 » 05 Aug 2021, 15:14

Hello TD-er,

In the advanced settings I find the option for an external time source e.g. DS3231. However, I cannot find a plugin in the normal or test build (August 02, 2021). What kind of course of action do you suggest?
How should I wire my DS3231 module to the ESP8266?

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#21 Post by Ath » 05 Aug 2021, 20:08

The DS3231 is an I2C device, so you should connect it to the GPIO pins configured on the Hardware tab.
/Ton (PayPal.me)

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Can't install plugin

#22 Post by Sminter4 » 07 Aug 2021, 10:51

I cannot find sufficient documentation for the topic. Probably my naked DS3231 was written to the wrong date via the NTP (July instead of August). Although the NTP correctly shows the month. Bug?
With which command can I manually set the time on the DS3231 via the "Tools" page?
The command "Datetime, 2021-08-07.06: 28: 40" only writes the UTC into the ESP8266.

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#23 Post by Ath » 07 Aug 2021, 10:59

Your syntax for the DateTime command isn't exactly correct: https://espeasy.readthedocs.io/en/lates ... t=datetime (scroll down a bit, or search for datetime, to see the entry)

Code: Select all

datetime,2021-08-07,10:58:00
Should work for the CEST timezone, right about now.
/Ton (PayPal.me)

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Can't install plugin

#24 Post by Sminter4 » 07 Aug 2021, 11:49

Sorry, I had a copy and paste error in my post above with the datetime command. Yours is of course correct.

Regardless, I probably found a bug.
The time and date of the ESP are correctly adopted with this command.
At the same time, the month minus 1 is written to DS3231. Command:

Code: Select all

datetime,2021-08-07,10:58:00
Date of the ESP: 2021-07-07 10:58:00
This is only visible after the reboot when the ESP fetches the time from the DS3231.

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#25 Post by Ath » 07 Aug 2021, 12:18

Ah, that may be a bug indeed, the general consensus is that the month is written as a 0-based value, but it probably isn't compensated when reading it back.

Can you report this as a bug in the Github issue tracker, please? Over here (you will need a (free) Github account) https://github.com/letscontrolit/ESPEasy/issues
/Ton (PayPal.me)

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Can't install plugin

#26 Post by Sminter4 » 07 Aug 2021, 16:42

ok i hope this is correct. Let's see when the error is fixed:
https://github.com/letscontrolit/ESPEasy/issues/3749

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#27 Post by Ath » 07 Aug 2021, 17:04

I saw it already (and gave it a thumbs up ;), I have a different handle there)
You could add a link to the message where you first reported it here, that has some additional info and relevant discussion.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't install plugin

#28 Post by Ath » 07 Aug 2021, 17:48

I think I've found the issue with that DS3231, there seems to be a bug inthe RTClib library used.

Created a PR #3751 to resolve that.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests