M
MercyNews
Home
Back
SF Muni Status Page Built with AI Tools
Technology

SF Muni Status Page Built with AI Tools

Hacker News4h ago
3 min read
📋

Key Facts

  • ✓ The web application was conceived specifically to address the confusion caused by a recent subway outage in San Francisco.
  • ✓ Development relied heavily on 'vibe coding,' a method where AI assistants generate the majority of the source code based on developer prompts.
  • ✓ The system ingests real-time images of subway circuit diagrams that are publicly accessible via the SF Muni Central website.
  • ✓ A significant technical hurdle involved manually enabling PyTorch's GPU support after discovering it was disabled in the AI-generated script.
  • ✓ The complete project, named munimet.ro, has been released to the public under the standard MIT open-source license.
  • ✓ The application attempts to replicate the simple utility of the 'Do I Need an Umbrella' concept for public transportation decisions.

In This Article

  1. Quick Summary
  2. The Spark of Inspiration
  3. Building with AI Assistance
  4. Technical Challenges & Refinements
  5. Open Source Availability
  6. Looking Ahead

Quick Summary#

A recent disruption in San Francisco's transit network sparked the creation of a novel web application designed to answer a simple commuter question: should I take the subway or a bus? Inspired by the utility of the "Do I Need an Umbrella" website, this new tool leverages machine learning to interpret real-time subway data.

The project, developed by an independent coder, demonstrates the practical application of AI in urban mobility. By analyzing publicly available circuit diagrams from the SF Muni Central system, the application aims to provide clearer insights for daily travelers navigating the city's complex transit infrastructure.

The Spark of Inspiration#

The genesis of the project was a specific, frustrating experience: a subway outage that left commuters stranded and searching for answers. This incident highlighted a gap in accessible, predictive transit information. The developer sought to build a tool that could proactively answer the critical question of whether to rely on the subway system at any given moment.

Adopting a modern development philosophy, the creator decided to "vibe code" the application as much as possible. This approach involves using AI coding assistants to generate the bulk of the codebase, allowing the developer to focus on high-level architecture and problem-solving rather than writing every line of code manually.

  • Triggered by a real-world subway service interruption
  • Modeled after the simple utility of "Do I Need an Umbrella"
  • Focused on the specific commuter dilemma: subway vs. bus
  • Embraced a "vibe coding" methodology for rapid development

""Seemed like the right tool for the job, but it would have saved time if I'd built it from scratch myself.""

— Developer, munimet.ro

Building with AI Assistance#

The development process began with Claude Code, an AI programming assistant, tasked with creating a background script. This script was designed to automatically download images of the real-time circuit diagrams available through the sfmunicentral.com domain, capturing the live state of the subway network.

Following data acquisition, the next step involved creating a tool to label these images. The AI generated an image labeler using the tkinter library. However, this phase proved more complex than anticipated, requiring substantial manual intervention before the labeling process could effectively begin.

"Seemed like the right tool for the job, but it would have saved time if I'd built it from scratch myself."

Despite the initial hurdles with the labeling tool, the project moved into its most technically interesting phase: transforming the labeled image data into actionable predictions using PyTorch. The AI assistant wrote the initial script for this machine learning component with relative speed, though it still required careful manual tweaking.

Technical Challenges & Refinements#

As the machine learning model began processing the data, the developer encountered the inevitable nuances of working with neural networks. The AI-generated script flagged certain images as outliers, prompting the developer to engage in a process of second-guessing and manual review to ensure the model's accuracy.

In a moment of realization that many developers can relate to, a significant performance bottleneck was discovered deep into the development process. The initial script generated by Claude had not enabled PyTorch's GPU support, meaning the intensive image processing was running on the CPU instead of the graphics card.

"I'll admit I got embarrassingly far along before realizing that Claude hadn't enabled pytorch's GPU support; a real facepalm moment on my part."

This oversight required a manual fix to unlock the full computational power of the hardware, a crucial step for ensuring the application could process data efficiently and provide timely predictions to users.

Open Source Availability#

The final result of this development journey is munimet.ro, a web application that serves as a machine learning-based status page for the local subway system. The project stands as a testament to the potential of combining AI tools with human oversight to solve practical, everyday problems.

For those interested in the technical implementation or wishing to contribute, the project is not a closed box. The complete source code has been made publicly available under an MIT license. This open-source approach invites scrutiny, collaboration, and adaptation by other developers in the community.

  • Application Name: munimet.ro
  • License: MIT (permissive open-source)
  • Repository: Hosted on GitHub
  • Primary Technologies: Python, PyTorch, Tkinter

Looking Ahead#

The creation of munimet.ro illustrates a growing trend where individual developers can rapidly prototype complex applications using AI co-pilots. By addressing a specific pain point in urban transit, the project moves beyond a simple coding exercise to offer potential utility for San Francisco commuters.

While the application is currently a proof-of-concept, it highlights the accessibility of machine learning tools for solving niche problems. The willingness to share the codebase publicly ensures that the project can evolve, potentially inspiring similar tools for other transit systems or entirely different data visualization challenges.

""I'll admit I got embarrassingly far along before realizing that Claude hadn't enabled pytorch's GPU support; a real facepalm moment on my part.""

— Developer, munimet.ro

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
211
Read Article
Right-wing Israeli TV report fuels rumors Israel supplying arms to Iran protesters
Politics

Right-wing Israeli TV report fuels rumors Israel supplying arms to Iran protesters

Channel 14's Tamir Morag says arms from 'foreign actors' let protesters kill hundreds of officers; Iranian FM: 'Trump should now know exactly where to go to stop killings' The post Right-wing Israeli TV report fuels rumors Israel supplying arms to Iran protesters appeared first on The Times of Israel.

53m
3 min
0
Read Article
Asus Winds Down RTX 5070 Ti Production Amid Memory Shortage
Technology

Asus Winds Down RTX 5070 Ti Production Amid Memory Shortage

Asus has officially ended production of its RTX 5070 Ti and 16GB RTX 5060 Ti graphics cards, citing a severe memory supply shortage that is squeezing the entire GPU market.

56m
5 min
6
Read Article
Wikipedia Strikes AI Deals with Amazon, Meta, Perplexity
Technology

Wikipedia Strikes AI Deals with Amazon, Meta, Perplexity

In a landmark move for the digital knowledge ecosystem, Wikipedia has entered into new partnership agreements with leading artificial intelligence companies including Amazon, Meta, and Perplexity.

56m
5 min
6
Read Article
NBC Greenlights Crime Drama Inspired by Ann Burgess
Entertainment

NBC Greenlights Crime Drama Inspired by Ann Burgess

NBC has picked up its third drama pilot of the week, greenlighting an untitled crime investigation drama inspired by the pioneering work of criminal profiler Ann Burgess. The project comes from veteran producers Dean Georgaris and John Fox.

58m
5 min
6
Read Article
South Korea Denies Elon Musk's Document Request in Apple Lawsuit
Technology

South Korea Denies Elon Musk's Document Request in Apple Lawsuit

The South Korean government has officially denied Elon Musk's request for documents from the Kakao super app in xAI's lawsuit against Apple.

58m
5 min
6
Read Article
Alan Cumming Signs With UTA for Global Representation
Entertainment

Alan Cumming Signs With UTA for Global Representation

Alan Cumming has signed with UTA for representation in all areas, expanding his career reach as he continues to work with Bond Artists and B-Side.

1h
5 min
6
Read Article
Cake Wallet Expands Privacy Suite with Zcash Support
Technology

Cake Wallet Expands Privacy Suite with Zcash Support

The popular privacy wallet is broadening its horizons, adding support for Zcash while maintaining its strong association with Monero and other privacy tools.

1h
5 min
6
Read Article
Данным ищут управляющих // Структура ГК «Ультиматек» приобрела долю в разработчике CPM-платформы
Economics

Данным ищут управляющих // Структура ГК «Ультиматек» приобрела долю в разработчике CPM-платформы

Дочерняя структура ГК «Ультиматек» купила 25% в разработчике платформы для управления бизнес-процессами «Алгоритм1». На рынке, который оценивается в 15–20 млрд руб., есть стабильный спрос на подобные решения, однако их разработка занимает годы и требует многомиллионных инвестиций. При этом доля зарубежных платформ остается значительной.

1h
3 min
0
Read Article
Final Fantasy VII Remake Adds 9,999 Damage Mode
Entertainment

Final Fantasy VII Remake Adds 9,999 Damage Mode

Square Enix is preparing a significant update for Final Fantasy VII Remake that introduces a new gameplay mode guaranteeing every attack deals maximum damage. The update coincides with the game's expansion to new console platforms.

1h
5 min
12
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home