GithubHelp home page GithubHelp logo

italocjs / geofencing_esp32 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.01 MB

Sample program to provide geofencing on an esp32

License: GNU General Public License v3.0

Python 9.68% C++ 12.95% C 77.37%

geofencing_esp32's Introduction

Easy geofencing on ESP32 and arduino: How C++ and Python can be your best friends

For more detail, please check this article: https://www.linkedin.com/pulse/easy-geofencing-esp32-arduino-how-c-python-can-your-best-italo-soares/

What is Geofencing? πŸ“

Geofencing is a technology that defines a virtual boundary around a real-world geographical area. Think of it like an invisible fence you can set up around a specific location. 🌍 When a device like a ESP32 with a GPS-enabled sensor enters or leaves this boundary, an action is triggered. 🚨 This could be anything from blinking an LED to fancy satellite communication. Geofencing is super useful in various applications, like tracking vehicle fleets, ensuring child safety, and even in marketing to send promotional messages when you're near a store.

Quick Steps to Use the Python Script πŸ—ΊοΈ

1️⃣ Copy your chosen group in Google Earth. 2️⃣ Paste it into the google_earth.xml file. 3️⃣ Run the google_earth_polygon_parser.py script. 4️⃣ Copy and paste the output C++ code into your ESP32 setup. πŸš€

How to Use Google Earth for Your Geofencing Project 🌍

Setting up your geofence in Google Earth is straightforward, but there are some pro tips to make the process even smoother. First off, it's a good idea to create a folder in Google Earth, name it something meaningful so you know exactly what it's for.

While you can use markers to define your geofence, using polygons is highly recommended for greater accuracy and ease. If you do go the polygon route, make sure to place the markers in a counter-clockwise direction. The Python script will automatically recognize these as the shape of your geofence.

However, if you still want to use markers, make sure to name them like p1, p2, p3, and so on. The Python script will look for markers with names starting with "p" to set the geofence shape.

Tags: ESP32, Arduino, Geofencing, Embedded Software, Python, Google Earth

geofencing_esp32's People

Contributors

italocjs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.