Skip to content

Gamifying our stations rank - Can we automate? #320

Open

Description

@broswell

Who we are
I'm Bob, founder of The Computer Museum @ System Source (Maryland Technology Museum), a 501(c)(3) vintage computing museum in Hunt Valley, Maryland. We operate the TinyGS station ComputerMuseum as part of our "living museum" exhibits.

What we'd like
To record, once a day, our station's rank among all stations by confirmedPackets, and among online stations. We'd log it and show it on a museum display.

What we've found

  • https://api.tinygs.com/v3/stations now needs an x-client-timestamp header generated by the web app, so scripted requests get 403 MISSING_CLIENT_TIMESTAMP / INVALID_CLIENT_TIMESTAMP.
  • The Programmatic API wiki describes a Bearer token from the Telegram bot, but @tinygs_personal_bot now only offers /mqtt, /stations, /delete and /weblogin.
  • The only thing that works is copying the request from browser DevTools by hand each time.

We understand why the list endpoint is protected and don't want to work around it.

Any of these would solve it

  1. A per-user API token (as in the wiki) that is accepted by /v3/stations
  2. A lightweight endpoint returning a given station's rank, e.g. /v3/station/<id>/rank
  3. A cached daily public export of station stats

One request per day would cover our needs. Happy to test anything. Thanks for TinyGS, it's been a great addition to the museum.

Ideally we could limit to packets received in the last 30 days

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions