kqstats icon indicating copy to clipboard operation
kqstats copied to clipboard

Raspberry Pi support

Open KevinSnyderCodes opened this issue 6 years ago • 3 comments

kqstats can persistently run on a Raspberry Pi that is on the same network as the Killer Queen cabinet. This is beneficial for a number of reasons:

  • No need to run kqstats on your local machine -- it's always running on the network!
  • Webpages showing real-time statistics can be accessed by anyone on the network
  • Because of this, new types of webpages would make sense:
    • Stats for a single player (useful for a player to have on their phone screen)
    • Others?

Getting this to work will be a multi-step process:

  • [ ] Make kqstats persistent
    • [x] Auto determine the cab's IP address (by finding a local IP address with port 12749 open)
    • [x] Auto connect to cab
    • [x] Reconnect when connection is lost
    • [ ] Self-updating
  • [ ] Create procedure to set up kqstats on a Raspberry Pi (e.g. shell script)
    • [ ] Make the kqstats webpages accessible by the Raspberry Pi's hostname using mDNS
  • [ ] Document setup procedure
    • [x] Create network architecture diagram, explaining how the Raspberry Pi sits on the same network as the cab
    • [ ] Provide instructions for setting up kqstats on a Raspberry Pi

There may be other steps required.

Resources

KevinSnyderCodes avatar Jun 21 '18 22:06 KevinSnyderCodes