Nodemcu time input widget

Hello there, I m new in this Blynk world, I have downloaded the latest blynk library 0.3.9 but and i face TimeInputParam t(param); was not declared in this scope. Im suing Arduino v.1.6.11. If you can help me with that it will be great!

Did you try to install the Blynk libraries through the IDE as it can’t be done this way?

There are actually 4 libraries in the full zip file and they have to be installed manually as stated in the GitHub. Would recommend you go to version 1.6.12 too.

I have installed the libraries manually from version 1.6.12 and still does not work, I don’t really know what is happenening.

Show us your sketch and the compiler errors (screenshot).

maybe you didn’t declare it properly? that’s what usually i forget to do…

can you post the code?

I am using the example advance timer input. My current Arduino IDE v1.6.12 It keeps showing timer input parameter was not declared in this scope. My project is design for ESP8266 node mcu

here is the error message

Arduino: 1.6.12 (Windows 7), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)”

C:\Users\user\Documents\Arduino\libraries\Blynk_newrelease\examples\Widgets\TimeInput\AdvancedTimeInput\AdvancedTimeInput.ino: In function ‘void BlynkWidgetWrite1(BlynkReq&, const BlynkParam&)’:

AdvancedTimeInput:39: error: ‘TimeInputParam’ was not declared in this scope

TimeInputParam t(param);

^

AdvancedTimeInput:39: error: expected ‘;’ before ‘t’

TimeInputParam t(param);

              ^

AdvancedTimeInput:43: error: ‘t’ was not declared in this scope

if (t.hasStartTime())

   ^

AdvancedTimeInput:65: error: ‘t’ was not declared in this scope

if (t.hasStopTime())

   ^

AdvancedTimeInput:88: error: ‘t’ was not declared in this scope

Serial.println(String("Time zone: ") + t.getTZ());

                                      ^

Multiple libraries were found for “Ethernet.h”
Used: C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\Ethernet
Not used: C:\Program Files (x86)\Arduino\libraries\Ethernet
Multiple libraries were found for “BlynkSimpleEthernet.h”
Used: C:\Users\user\Documents\Arduino\libraries\blynk-library-master
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk_newrelease
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk_newrelease
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk_newrelease
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk_newrelease
Not used: C:\Users\user\Documents\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
exit status 1
‘TimeInputParam’ was not declared in this scope

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

Looks like your libraries are messed up, do you see all the “Not used” entries. Add verbose and show the full compiler errors again.

what is verbose?

File, Preferences then tick against verbose for Compilation and upload.

I have found that simple timer input was not in the proper file directory, now is compiling accordingly. However I m still wondering for time event, where is the time triggered ? does the time library provide it own timer or we need to provide external RTC to the esp8266?

does it mean that the timer input is only used as a data transfer?

You need to get the current time from somewhere (RTC Widget) to use in TimeInput.

See TIme input widget

thanks, instead I have used NTP time request to get the current time + offset. Another question that I have in mind . Up to this moment I have been controlling the module within the same LAN but I was wondering if using With blynk server we can control the device out of LAN?

For sure, and that is where Blynk becomes very useful.
Inside the LAN we could get off our ar*e and switch devices on and off manually, but if the device is thousands of miles away that is not possible, enter Blynk.

Nice, I gonna test it out !