NodeMCU RTC Setting

I’ve been playing with the RTC Widget today and the date is showing 1970.

Here is my RTC Setting on the IOS app. Shouldn’t I be able to set a virtual pin?

Update - I found this is not longer required as per the example here http://examples.blynk.cc/?board=NodeMCU&shield=ESP8266%20WiFi&example=Widgets%2FRTC

This post here suggests moving to 0.4.4 of the Blynk library. I’ve moved to 0.4.6 and this fixed the issue for me. (I will check this first next time. :slight_smile: ) before fixing the issue the previous time showed the “uptime” since the last power cycle, I like the idea of this value to display uptime since last reboot.Is this an option within the time library?

A typical uptime calculation is based on millis, which start from 0 on power up/reset and can be easily divided to get your uptime in hours, minutes, seconds, etc.

Doing the same with RTC would basically involve capturing the time in a variable (once it synchronises) and calculating a comparison from there on.

Here is the Time Library: https://github.com/PaulStoffregen/Time

Despite my natural aversion to math :stuck_out_tongue_winking_eye: I think the millis method is much quicker and easier. But perhaps someone else has a quick bit of code for the RTC method?

Thanks I’m now using using millis using this example here http://docs.blynk.cc/#blynk-main-operations-state-syncing