My train number is 2134
, and its id
is S07113
(to find that id
, you've to inspect the page http://www.viaggiatreno.it/viaggiatrenonew/index.jsp with a network console).
~ watch -d -n 60 http "http://www.viaggiatreno.it/viaggiatrenonew/resteasy/viaggiatreno/andamentoTreno/S07113/2134 | jq '.ritardo'"
PS the FS frontend is http://www.viaggiatreno.it/viaggiatrenonew/index.jsp
- httpie
- jq
- watch