Skip to content

About

Track real-time lightning strikes using R and WebSockets.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

⚡ 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.

Screenshot 2025-07-11 223724

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:

image

🚀 How to Run

  1. Clone this repo or download the lightning_tracker.R file.

  2. Open it in RStudio.

  3. Run the script.

  4. You’ll see messages like:

image
  1. To stop it anytime:
image
  1. View your data:
image

🧠** 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

Screenshot 2025-07-11 222311

👨‍💻 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.

image

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

About

Track real-time lightning strikes using R and WebSockets.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages