- Router: http://192.168.101.1/
- MyIP: 192.168.103.193/
- Captive: http://192.168.10.2/index.php (192.168.10.2)
- XHRs:
http://scotrailwifi.cms.nomadrail.com/jq.php?position
{
// https://www.portalefrecce.it/BobHttpLogger/status/train | |
// somtimes comes as XML or JSON | |
{ | |
"BobStatus": { | |
"Train": { | |
"Id": "9653", | |
"Token": "IhRbCoYDMQDm0OVbZbIqXw==", | |
"MealStatus": "on" | |
} | |
} |
// https://onboard.sbb.ch/api/v2/content?tag=versioned_flavour_config&tag=v3&lang=en&r=1649759266348&contentType=mpd | |
[ | |
{ | |
"id": "flavour_config_sbb_v3", | |
"contentType": "versioned_flavour_config", | |
"domain": [ | |
"staging-auth.sbb.gomedia.io", | |
"sbb.mst.gonet", | |
"test-sbb.mst.gonet", | |
"sbb.stg.gonet", |
http://scotrailwifi.cms.nomadrail.com/jq.php?position
{
Paris -> London
rather slow
VD
Router: 10.8.2.4
Captive: https://register.onboard.eurostar.com/ (10.8.2.4)
Login:
// http://cdwifi.cz/portal/api/timetable/connexion/current?locale=en_GB | |
{ | |
"id": 515, | |
"name": "IC 515 Pendolino", | |
"line": null, | |
"connexionTimes": [ | |
{ | |
"id": 353, | |
"timeArrival": null, | |
"timeDeparture": "2022-05-13T14:27:00+02:00", |
// https://wifi.normandie.fr/router/api/train/circulation | |
{ | |
"number": "3105", | |
"circulationCode": "66979ae819749c3a785adc4e657a3fbe", | |
"origin": { | |
"name": "Paris Saint-Lazare", | |
"code": "OCE87384008" | |
}, | |
"destination": { | |
"name": "Le Havre", |
{ | |
description = "Elixir development environment (atm mainly for macOS)."; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
}; | |
outputs = inputs@{ flake-parts, ... }: | |
flake-parts.lib.mkFlake { inherit inputs; } { | |
imports = [ |
curl 'https://fahrkarten.bahn.de/mobile/dbc/xs.go?' -X POST \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0' -H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: https://www.img-bahn.de/' -H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Origin: https://www.img-bahn.de' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' \
--data-raw $'<?xml version="1.0" encoding="UTF-8"?>\n<rqorderdetails version="1.0"><rqheader tnr="1653325251391" ts="2022-05-23T19:00:51" l="de" v="19120000" os="KCI" app="KCI-Webservice"/><rqorder on="GCP344"/><authname tln="LeMe" csc="" cui=""/></rqorderdetails>'
// first page of content | |
const START_PAGE = 0; | |
// fixed size, increasing this number has no effect | |
const ITEMS_PER_PAGE = 20; | |
const fetchPage = (page) => fetch(`https://www.netflix.com/api/shakti/vb850f007/viewingactivity?pg=${page}&pgSize=${ITEMS_PER_PAGE}`) | |
.then(response => response.json()); | |
// reducer | |
const addDuration = (accumulator, item) => accumulator + item.duration; |