simple lil web thing that shows ETAs for Metro Transit stops
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
reese sapphire ba6d9e021a Merge pull request 'merge v2 into main' (#2) from v2 into main 7 days ago
static update style 7 days ago
.gitignore init module and update readme 3 weeks ago
config.go polished things 2 weeks ago
go.mod init module and update readme 3 weeks ago
main.go finishing touches~ 2 weeks ago
nextrip.go finishing touches~ 2 weeks ago
readme.md v2 mostly works now! 2 weeks ago
sass.sh finishing touches~ 2 weeks ago
screenshot.png added light mode & updated readme 2 weeks ago

readme.md

----------------------------------------------------
            /`                       '\
            \             __ __       /
    .-----.--------.-----|__|  |--.--.--.-----.
    |  _  |        |     |  |  _  |  |  |__ --|
    |_____|__|__|__|__|__|__|_____|_____|_____|
====================================================

lil go webserver that shows ETAs for Metro Transit stops

usage

  1. download this repo.
  2. edit config.go with your desired values.
  3. build it with go build.
  4. run the omnibus binary. you can view the page at http://localhost:8080.

ok but why?

we're going to put this on a display in the window of layer zero so that people leaving or just passing by can see when their bus or train will be there.

what's it look like?

screenshot

request data format

groups: [
  {
    name: "34th & 45th Street",
    stations: [
      {
        id: 15280,
        routes: [
          {
            id: 46,
            name?: "46",
            dir?: "WB"
          }
        ]
      },
      {
        id: 15412,
        routes: [
          {
            id: 46,
            name?: "46",
            dir?: "EB"
          }
        ]
      }
    ]
  },
  {
    name: "46th Street Station",
    stations: [
      {
        id: 51430,
        routes: [
          {
            id: 901,
            name?: "Blue line",
            dir?: "to Mpls-Target Field"
          }
        ]
      },
      {
        id: 51415,
        routes: [
          {
            id: 901,
            name?: "Blue line",
            dir?: "to Mall of America"
          }
        ]
      }
    ]
  }
]