June 19, 2025
Changed the code to make it more efficent, now it grabs API calls almost 5x faster than before!
Thank you all visiting my project!
Changed the code to make it more efficent, now it grabs API calls almost 5x faster than before!
Thank you all visiting my project!
Finished the NEW DEMO!
Shipment coming shortly!
Shipwright gave you feedback
the fact that this is real time is awesome..
That took less time than expected!
The iPhone shortcut is done! Very easy to do using the plan I made at the start!
I will take a little break after this project, as I've been coding for hours in these couple of days and my eyes hurt now :(
I hope you enjoyed my devlogs and my project. Thank you for reviewing my project!
And remember:
Stay aware, Stay safe.
More progress!
After A LOT of troubleshooting and 5 hours later, I am almost done with the server python code that will read Apps Script 1 and POST to Apps Script 2 in case of a match between the coordinates, meaning a lightning strike has happened.
Now I am only missing the DEMO version online (which I have to build from scratch) and the actual iPhone shortcut!
Finished APPS SCRIPT 1! Moving onto Apps Script 2
After finishing Apps Script 1, I started working on Apps Script 2.
This code took substantially longer than what I imagined... I just couldn't get the clearing mechanisim to work for when the iPhone read the file! I asked around and got a clever solujtion to use a url-extension as a param for clearing the list, and that made it work!
Now Apps Script 2 clears when the text is read by the iPhone... all is going well!
I will keep these devlogs updated as progress continues!
First progress!
I started working on the project! To start with, I decided to work on APPS SCRIPT 1 (see plan in the devlog below to see what I'm talking about!)
The method I used was to simply read out as a json the iphone coordinates, nothing too difficult. I had some issues integrating the text outout so it would be readable by my server.py code, but figured it out!
Happy to see the project is proceeding at a semi-fast pace, I'll post more when I get some more progress done!
Welcome to my new project, StormScope!
Recently, when landing at MXP, our plane was hit with a lightning strike. Nothing happened; however, it got me wondering... is there a way to receive information about these strikes when they happen near you and send a notification straight to your iPhone?
I've found some interesting websites, one of which is Blitzortung.org. This is a site that works through a global community of people who install small receiver stations in their homes or institutions to detect lightning strikes.
These detections then get sent through encrypted websockets to the website, and even better, they have an API!
Below is a diagram plan of what I will be trying to achieve in this project (made in Microsoft Paint :D )
Slowly adding more lines, having a hard time adding them due to inconsistent data I’ve found around sources.
I’ll keep this more updated…
Every thunderstorm hides a risk. StromScope gives you the power to know exactly when lightning strikes near you. Built on live data from the Blitzortung.org network, StromScope decodes strikes as they happen and calculates their distance from your location in seconds. When a strike falls within your set range, StromScope pushes an instant notification to your phone; no refreshing apps, no delay, just real-time awareness. With a streamlined Python backend, cloud integration for location sync, and iOS Shortcuts for alerts, StromScope turns raw atmospheric data into actionable safety warnings. Stay aware, Stay safe.
Added more features to the DEMO
Spent 6 hours making a DEMO version of the website as I cannot create a demo with all functionalities.
Check it out!
https://milanopt-tracker-demo.onrender.com
I. DID. IT!
I FIXED EVERYTHING! (Add 2 hours to the since last devlog as it has not yet updated :/)
MilanoPT by Leonardo Monforte – Devlog N.8
🗺️ Loads & caches Milan GTFS data (routes, stops, shapes, trips)
📍 Interactive map (using Leaflet.js): all stops, clustered for clarity
👆 Click any stop: see lines & real-time wait times!
🚇🚋🚌 Track any line (Metro, Tram, Bus): draws route, shows all stations, color-coded
đź•’ REAL-TIME VEHICLE TRACKING: highlights arriving stations, animates vehicle icons along the route using ONLY the very limited API offered by Milano ATM.
đź§ Vehicle icons show type & direction they are heading towards
🕹️ User controls: track line, reset map, zoom to vehicle (more to come!)
📌 See your location: When promted, allow access of your location to see your real-time location on the map!
🛡️ Robust error handling & debug logging (backend)
See video below for a showcase!
Still fixing bugs with the animation... YIKES!
Not much progress right now...
Just fixing the last bugs and adding a new (secret!) feature and ill be done for today I think, maybe I might post one more tonight and call it a day.
Bye bye :D
WE GOT PROGRESS
The vehicle is now moving well on the map!
This is incredible, and I am feeling very proud of the work
See video below to see it follow the line and get to the destination!
(Still ome bugs as only one of the vehicles is moving and its waaay too fast, but I hope to fix that it near no time!)
Some updates.
Attempting to create the animation using a faster more reliable and more accurate script called leaflet.marker-motion but no sucess so far, getting 404's and 302' everywhere!
As soon as I get a fix, ill update this log.
BIG Progress
Today was a productive one. I finally got the transport logic working, vehicles now move smoothly from one station to the next using the wait times, just as planned. Toi make it smooth, I added a feature that allows the vehicle markers to accelerate and slow down depending oin how much time the next station is reporting.
For example:
If the upcoming station says 3 minutes then the vehicle adjust its speed to get there in 3 minutes on the map too. If the station switches suddently from 3 to 1 minute, the vehicle speeds up smoothly and slows down smoothly as well to account for the delay.
I actually went outside and tested the system for 2 hours straight myself, going on every form of public transport with my PC running the code to see if it was accurate. There are still some uncertaintes especially when ARRIVING at a station (the time says 0 minutes so I have to figure out the speed for that) the rest is super accurate! Very proud.
The system tracks their movements accurately, updating everything in real-time. I also cleaned up the database structure, making it much more efficient and easier to scale later. It’s solid now.
The METRO (M1, M2, M3, M4, M5) is still giving me trouble, some bugs are holding it back, but I’m putting that aside for now. I’ve been at this for 10 hours today, and that’s more than enough. Tomorrow, I’ll dig into the METRO issues and get that part running too. One step at a time.
Created custom markers for Tram, Bus, and Metro. Added their markers correctly on the map.
Attempting to make them follow the path line to approach the next station
Fixed Red Dots for Approaching Stations
Tracks Milano, IT public transport vehicles by reverse engeneering their system to track how many minutes are left untill the vehicle arrives at the station, along with tracking the vehicle IN REAL TIME with extreme accuracy (± 5 meters)
This was widely regarded as a great move by everyone.