Beautiful traffic logging for PGO.
Traffic Light accepts specially formatted messages from a mitm app to display them nicely in several ways.
The best part of Traffic Light: An interactive Text User Interface in the Terminal. Log, filter and inspect requests.
A simple log of requests.
Webhooks in Discord
- It's made to be used on your local computer with a local phone
- Clone repo, install requirements, copy
config.example.toml
toconfig.toml
, fill out the config - Open a supported MITM on your phone. Set POST destination to your endpoint from config.toml (default: http://{computer IP}:3335)
- Run
trafficlight.py
and watch
If you want your own MITM to support Traffic Light, all it needs to do is for every request the game makes, send a POST request to a specified endpoint with the body looking as follows.
{
"rpcid": 1,
"rpcstatus": 1,
"protos": [
{
"method": 1,
"request": "<b64 encoded string>",
"response": "<b64 encoded string>"
},
{
"method": 106,
"request": "",
"response": ""
}
]
}
The TUI uses the beautiful Textual. Here's a copy from their docs on platform compatibility.
All Linux distros come with a terminal emulator that can run Textual apps.
The default terminal app is limited to 256 colors. We recommend installing a newer terminal such as iterm2, Kitty, or WezTerm.
The new Windows Terminal runs Textual apps beautifully.