roughconsensusandrunningcode / trainmonitor Goto Github PK
View Code? Open in Web Editor NEWA set of python script to download and process data of Italian railways site www.viaggiatreno.it
License: GNU General Public License v3.0
A set of python script to download and process data of Italian railways site www.viaggiatreno.it
License: GNU General Public License v3.0
Ciao a tutti,
Volevo chiedere se qualcuno di voi conosce un modo per avere un elenco completo di tutti i codici stazioni (o anche i nomi delle stazioni stesse) di una regione. Ho visto che le API gestiscono le regioni con dei codici (1=Lombardia ecc...). Si può effettuare una richiesta alle API di questo tipo?
Ma con la modifica delle api adesso è possibile associare una data di ricerca ad un treno ? ovvero il treno che circola magari solo in alcune date (ad esempio cercare il lunedi un treno che circola solo il venerdi ?)
grazie
Ci sono delle limitazioni sull'uso per una app senza fini commerciali?
Nessuna delle URL nella documentazione funzionano, neanche l'autocompletamento delle stazioni.
Per esempio, con la URL indicata nella documentazione :
(http://www.viaggiatreno.it/viaggiatrenonew/resteasy/viaggiatreno/autocompletaStazione/T)
non genera nessun JSON e si viene rediretti su :
http://www.viaggiatreno.it/infomobilita/index.jsp
La nuova URL, mi sembra, sia:
http://www.viaggiatreno.it/infomobilita/resteasy/viaggiatreno/autocompletaStazione/T
Per esempio, la seguente URL:
http://www.viaggiatreno.it/viaggiatrenonew/resteasy/viaggiatreno/andamentoTreno/S00228/4640
riporta l'errore
"Error 404: Could not find resource for relative : /resteasy/viaggiatreno/andamentoTreno/S00228/4640 of full path: http://www.viaggiatreno.it/viaggiatrenonew/resteasy/viaggiatreno/andamentoTreno/S00228/4640"
Sembra che siano cambiati i path:
http://www.viaggiatreno.it/viaggiatrenonew/resteasy/
"Error 404: Could not find resource for full path: http://www.viaggiatreno.it/viaggiatrenonew/resteasy/ "
Ciao, tra gli attributi disponibili in home assistant ho solo questi
categoria
compOrarioArrivoZeroEffettivo
compOrarioPartenzaZeroEffettivo
destinazione
numeroTreno
orarioArrivo
orarioPartenza
origine
subTitle
unit_of_measurement
friendly_name
icon
manca il ritardo che forse è quello più importante, si può aggiungere?
Ho provato a implementare una chiamata AJAX all'API ma ottengo l'errore No 'Access-Control-Allow-Origin' header is present on the requested resource. L'API è quindi inutilizzabile?
Salve,
Volevo segnalarvi che da un paio di giorni nessun link di ricerca soluzioni tra due stazioni funziona.
Utilizzando il link di esempio presenti in github http://www.viaggiatreno.it/viaggiatrenonew/resteasy/viaggiatreno/soluzioniViaggioNew/228/458/2018-01-23T11:18:00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.