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
Netanyahu said to have asked Trump to hold off on striking Iran
Politics

Netanyahu said to have asked Trump to hold off on striking Iran

Tehran halting 800 executions after US president's warnings, White House says, while UN envoy renews threats; IDF chief tours missile defense battery as Israel still on edge The post Netanyahu said to have asked Trump to hold off on striking Iran appeared first on The Times of Israel.

11m
3 min
0
Read Article
Natural Cycles launches wristband to replace thermometers for its FDA-cleared birth control app
Technology

Natural Cycles launches wristband to replace thermometers for its FDA-cleared birth control app

Natural Cycles, the company behind a controversial FDA-cleared birth control app, is replacing its thermometer with a wristband that measures skin temperature, heart rate, and movement during sleep. The newly-launched wristband costs $129.99 and syncs with the Natural Cycles app, which uses an algorithm to determine a person's "daily fertility status." Users can already track their fertility by pairing an Apple Watch or Oura Ring with Natural Cycles, but the wristband could be an option for users who don't have either of these devices handy. While Natural Cycles also works with newer Samsung Galaxy smartwatches and the Galaxy Ring, it's mea … Read the full story at The Verge.

17m
3 min
0
Read Article
Meta’s Layoffs Leave Supernatural Fitness Users in Mourning
Technology

Meta’s Layoffs Leave Supernatural Fitness Users in Mourning

Users of the VR fitness service are distraught that Supernatural has had its staff cut and won’t receive any more content updates. They’re also pissed at Meta.

19m
3 min
0
Read Article
A $250 billion trade deal will see Taiwan bring more semiconductor production to the US
Economics

A $250 billion trade deal will see Taiwan bring more semiconductor production to the US

The US and Taiwan have signed an agreement that will see a multi-billion dollar investment into domestic development of semiconductors and related infrastructure. The US Department of Commerce announced that Taiwanese businesses will make an upfront investment of at least $250 billion into their US production capacity, while Taiwan's government will provide credit guarantees of at least another $250 billion in support of the semiconductor industry and supply chain in the US. In exchange, Taiwan will receive a better deal on tariffs. Reciprocal tariffs will be limited to 15 percent, compared with the previous 20 percent rate. Generic pharmaceuticals and their generic ingredients, aircraft components, and unavailable natural resources will be not be subjected to reciprocal tariffs under the arrangement. Taiwanese companies with US production will also see increased import amounts without being charged duties under the Section 232 framework. According to reports from CNBC, Taiwan Semiconductor Manufacturing Company (TSNC) is already in position to take advantage of the new trade agreement with further expansion in Arizona. The major Taiwanese chip manufacturer had previously committed to investing $100 billion in its US operations over four years. Commerce Secretary Howard Lutnick told CNBC in an interview that the current US government wants to bring 40 percent of Taiwan's semiconductor supply chain stateside, continuing to use tariffs as an incentive. "If they don’t build in America, the tariff’s likely to be 100 percent,” Lutnick said. This article originally appeared on Engadget at https://www.engadget.com/computing/a-250-billion-trade-deal-will-see-taiwan-bring-more-semiconductor-production-to-the-us-224326501.html?src=rss

20m
3 min
0
Read Article
Tokyo Broadcasting System Acquires Stake in Legendary Entertainment
Economics

Tokyo Broadcasting System Acquires Stake in Legendary Entertainment

Tokyo Broadcasting System has made a strategic investment in Legendary Entertainment, the producer of 'Dune' and the Godzilla franchise, that will allow the Hollywood company access to more Japanese intellectual property.

24m
5 min
6
Read Article
Taye Diggs Stars in New Vertical Drama 'Off Limits & All Mine'
Entertainment

Taye Diggs Stars in New Vertical Drama 'Off Limits & All Mine'

Taye Diggs is entering the vertical drama space, a growing industry around content made to be watched on smartphones. CandyJar has set Diggs as the star and executive producer of a series titled 'Off Limits & All Mine.'

33m
5 min
6
Read Article
Lucasfilm Leadership Shift: Filoni and Brennan to Replace Kennedy
Entertainment

Lucasfilm Leadership Shift: Filoni and Brennan to Replace Kennedy

After 14 years at the helm, Kathleen Kennedy is departing Lucasfilm. The studio is implementing a unique dual-leadership model with Dave Filoni and Lynwen Brennan assuming control of the 'Star Wars' and 'Indiana Jones' franchises.

33m
4 min
6
Read Article
Iran Activists Use Starlink to Bypass Digital Blackouts
Politics

Iran Activists Use Starlink to Bypass Digital Blackouts

A years-long effort by Iranian activists to secure communications has culminated in the use of Starlink satellite internet systems, creating a resilient network against state-imposed digital blackouts.

37m
5 min
6
Read Article
LG C5 OLED TV Drops to Near All-Time Low Price
Technology

LG C5 OLED TV Drops to Near All-Time Low Price

The 65-inch LG C5 OLED TV is rarely this affordable. With a new C6 model announced, the current-gen C5 is now available for $1,197.59 on eBay, a discount of over $1,500.

39m
5 min
6
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home