Giter Club home page Giter Club logo

esp32-cam-time-lapse's Introduction

ESP32-CAM time lapse with sending picture to the Cloudinary / Blynk

Time-lapse image capture with ESP32 Camera. Camera makes picture in given interval and sends it to the FTP / CLoudinary server and to the Blynk Image widget.

๐Ÿš€ 12.2022 - UPDATE TO BLYNK 2.0 ๐Ÿš€

Project was updated to the new version of Blynk 2.0

Features:

  • Sending image in given time laps to the server
  • Capture image interval can be set from Blynk
  • Taking picture with or without embedded LED flash (can set in the Blynk)
  • Can set time interval in Blynk to decide to take or not a image (based on Blynk real time widget and Blynk time input widget)

To build a project, you need to download all the necessary libraries and create the settings.cpp file in the src folder:

#include "IPAddress.h"

// Project settings
struct Settings
{
    const char *blynkAuth = "XXX";
    const int cameraNumber = 1;

    const char *wifiSSID = "YYY";
    const char *wifiPassword = "ZZZ";
    const char *imageUploadScriptUrl = "http://example.com/upload.php";
    const char *version = "1.0.0";
    const char *firmwareVersionUrl = "http://example.com/version.txt";
    const char *firmwareBinUrl = "http://example.com/firmware.bin";

    IPAddress ip = IPAddress(192, 168, 43, 202);
    IPAddress gateway = IPAddress(192, 168, 43, 1);
    IPAddress subnet = IPAddress(255, 255, 255, 0);

    // alarm based on the other ESP32 device
    const char *alarmEnabled = "http://blynk-cloud.com/auth-token/get/V1";
    const char *isAlarm = "http://blynk-cloud.com/auth-token/get/V2";
};

Currents list:

Sending picture from ESP32-CAM to Cloudinary / Blynk

ESP32-CAM makes picture and send it by HTTP POST request to the server via simple PHP script. I followed this tutorial.

On the server, PHP script:

  • inserts date and time to the picture and saves picture to the disk
  • sends picture to the Cloudinary API
  • sets picture public url from Cloudinary to the Blynk Image Widget
  • removes picture from server disk

PHP script is located in the Server scripts folder. It's needed to set up your upload_preset, cloudinary URL, and blynkAuthToken.

Blynk:

Camera in Blynk iOS application. Blynk application

esp32-cam-time-lapse's People

Contributors

vitzaoral avatar vzaoral avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.