lpil / puter

Setting up a computer is annoying so let's automate it.
14 stars 2 forks source link

Lightning strike API fun #18

Open lpil opened 3 years ago

lpil commented 3 years ago

From https://www.lightningmaps.org/

Unsure if there are API docs.

Websocket endpoint: wss://live.lightningmaps.org/

Needs to be given positional data at start, i.e.

{"v":24,"i":{"2":1106965},"s":false,"x":0,"w":1,"tx":0,"tw":0,"a":4,"z":2,"b":false,"h":"","l":372,"t":1597360180,"from_lightningmaps_org":true,"p":[88.4,160,-89.8,-143.1],"r":"close","extra":{"sec":268.869,"msg":"invisible"}}

Pretty printed:

{
  "v": 24,
  "i": {
    "2": 1106965
  },
  "s": false,
  "x": 0,
  "w": 1,
  "tx": 0,
  "tw": 0,
  "a": 4,
  "z": 2,
  "b": false,
  "h": "",
  "l": 372,
  "t": 1597360180,
  "from_lightningmaps_org": true,
  "p": [
    88.4,
    160,
    -89.8,
    -143.1
  ],
  "r": "close",
  "extra": {
    "sec": 268.869,
    "msg": "invisible"
  }
}