I was wondering if there is a way to log the data that is being sent to Blynk, for later analysis?
For example, say I have a little arduino-powered thermostat, and I use the Blynk app to view the current temperature, change the set point, show a plot of recent temperatures, etc. But then what I’d like to do later is download all the temperature measurements from the past week, say. Then I could analyse this data further, maybe see if it correlates with outdoor temperatures, or some other geeky pursuit
Ideally this data would be logged all the time, not just when the Blynk app is open on a phone.
I would love to have this feature without having to rely on a third party, especially since I want it to work on a local blynk server without access to the Internet. So having this in the works is great news from @Dmitriy.
yeap, have in mind this is complex task and requires some workaround to make it work for cloud and local server and to keep it as simple as possible at same time. So it won’t be quick, but it will be done =).
This would be great! I have been tinkering with the ESP for a couple months now and Blynk is the first thing that I have been able to move forward in making something useful with my ESP. I had to tweek the blynk code a little to get my ESP to connect to my network but I am able to control LEDs from my phone. Ultimately I want to be able to monitor temperature/humidity fluctuations throughout my home.
Is there any code out there for the ESP or an Arduino and ESP setup that will allow this? Even using thingspeak for now?
thanks!
Im having a little trouble compiling the code you posted. I probably have some conflicts in my library. Do you have your softserial ports on your nano connected to RX/TX on the ESP? thanks!
This is the error message I have been getting. Im running Linux Mint ArduinoIDE 1.6.5
I tried deleting the Bynk-master and replacing it with the newest version on Github using “ADD .ZIP” in the IDE
Arduino: 1.6.5 (Linux), Board: "Arduino Uno"
In file included from Blynk_Arduino.ino:2:0:
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h: In member function ‘void BlynkTransportShieldEsp8266::onData(uint8_t, uint32_t)’:
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h:28:25: error: ‘class ESP8266’ has no member named ‘getUart’
if (client->getUart()->available()) {
^
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h:29:37: error: ‘class ESP8266’ has no member named ‘getUart’
uint8_t b = client->getUart()->read();
^
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h: In member function ‘void BlynkTransportShieldEsp8266::begin_domain(ESP8266*, const char*, uint16_t)’:
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h:48:17: error: ‘class ESP8266’ has no member named ‘setOnData’
client->setOnData(onData, this);
^
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h: In member function ‘size_t BlynkTransportShieldEsp8266::read(void*, size_t)’:
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h:69:21: error: ‘class ESP8266’ has no member named ‘run’
client->run();
^
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h: In member function ‘int BlynkTransportShieldEsp8266::available()’:
/home/dude/Arduino/libraries/blynk-library-master/BlynkSimpleShieldEsp8266.h:83:17: error: ‘class ESP8266’ has no member named ‘run’
client->run();
^
Error compiling.
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
I have the modified version installed. For some reason my IDE isn’t recognizing it. I need to clean my files up. Ill figure that out.I was actually about to delete the error message i posted, just because I know its something simple im missing but you responded already.
I am more curious about the physical connection between the arduino and the ESP. Do they communicate through TX/RX? I had blynk working doing simple on/off of LEDs with just the ESP in a matter of 10 minutes.
Straight Tx/RX connections and 3.3v / GND directly from the Nano. I know some people have mentioned the power draw from the ESP may be too much for the Arduino to handle but I’ve had no issues so far.
Only time i had an issue was trying to connect a PIR sensor, ESP and a DHT22 to the same Arduino, corrupted the AVR but fortunatley no terminal / fatal damage.
As the Nano does not have a second HW serial I used SW serial initially, but found it was too unstable to be of any use and have since removed the SW serial code.
Hi Dmitriy, I know this was a while back, is there any Blynk solution for logging any kind of application data to a local blynk server for later analsyis e.g. CSV format for excel ?
I want to log all sorts of application status, sensor status information for post processing.