⚡ Lightning Tracker in R
Track real-time lightning strikes across the globe using R, WebSockets, and a touch of curiosity.
📸** Preview**
Live logging of lightning strikes in your R console in real-time.
Map visualization using leaflet (optional).
** 🛠 Features**
Connects to Blitzortung.org live lightning strike feed
WebSocket communication via websocket package
Decodes compressed strike data using custom LZW logic
Real-time updates to a data.frame
Optional live map using leaflet
📦 Requirements
Make sure you have the following installed:
R
RStudio
R packages:
🚀 How to Run
-
Clone this repo or download the lightning_tracker.R file.
-
Open it in RStudio.
-
Run the script.
-
You’ll see messages like:
- To stop it anytime:
- View your data:
🧠** How It Works (Explained Simply)**
Imagine eavesdropping on lightning. This R script connects to a secret WebSocket where lightning data comes flying in — compressed, nerdy, and fast. We say “Hello!” using a handshake ({"a":111}), and boom — strikes start flowing. We decode them, log them, and store them in a table. It’s basically a storm-chasing control center, all inside RStudio.
📂 Sample Output Table
👨💻 Author
Made by me (gaurav0xh4ck3r aka GAURAV JAIN) — a cybersecurity researcher and ethical hacker specializing in web application penetration testing WAPT and bug bounty hunting. I actively identifies and reports critical security vulnerabilities to help companies improve their security posture.
Thank you for Reading! this below is my article of this task on Medium https://medium.com/@gj20052007/how-i-tracked-lightning-strikes-in-real-time-with-r-695199063830