Page 1 of 2

OV information app

Posted: Thu Aug 23, 2018 12:05 pm
by atlantica
Image

Image

Image

1.) First get the station id from http://api.9292.nl/0.1/locations?lang=nl-NL&q=eindhoven (Change eindhoven to your own search parameter).
2.) Copy the ID and enter this value in the 'Station / Halte' field under settings

Update:
Refresh button is now working

Re: OV information app

Posted: Thu Aug 23, 2018 12:09 pm
by Toonz
Hi good to see new apps, just a question, to what extent does this differ from the OV info in this app:
viewtopic.php?f=99&t=11882&p=84325&hilit=Halte#p84325

Re: OV information app

Posted: Thu Aug 23, 2018 12:22 pm
by atlantica
Toonz wrote:Hi good to see new apps, just a question, to what extent does this differ from the OV info in this app:
viewtopic.php?f=99&t=11882&p=84325&hilit=Halte#p84325
Hi Toonz,

That app makes your toon very slow...

Re: OV information app

Posted: Thu Aug 23, 2018 1:02 pm
by Toonz
atlantica wrote: That app makes your toon very slow...
Ok, makes sense. Will give it a try :)

Re: OV information app

Posted: Thu Aug 23, 2018 1:45 pm
by Toonz
Is it finished from your point of view, in other words, do you want it to be included in the ToonStore?

Re: OV information app

Posted: Thu Aug 23, 2018 2:58 pm
by atlantica
Toonz wrote:Is it finished from your point of view, in other words, do you want it to be included in the ToonStore?
Maybe a bit later. The refresh button is not working right now. But when you open de app again from the main menu it is refreching the data...

Re: OV information app

Posted: Sat Dec 01, 2018 10:00 pm
by atlantica
When trying fixing the old ov app url for a new one,

Old url:
xmlhttp.open("GET", "http://dashticz.nl/ov/ov.php?station="+settings.ovHalte, true);

I discovered the used source ov url:
http://api.9292.nl/0.1/locations/[ovHal ... lang=nl-NL"

#[ovHalte] = is described in this example:
1.) First get the station id from http://api.9292.nl/0.1/locations?lang=nl-NL&q=eindhoven
(Change eindhoven to your own search parameter).


Does anyone know what was in the old ov.php or
is it posible to translate this into the ov app?

Re: OV information app

Posted: Wed Jan 16, 2019 9:54 am
by Xavier
Trying to get this to work but no luck, keeps trying to load data.

Re: OV information app

Posted: Wed Jan 16, 2019 12:10 pm
by Toonz
The links provided by Atlantica provide all info you need (seems proper JSON data to me)
However, you will need to rewrite the app to work from the 9292 site directly without the dashtics site inbetween.

I might do this when I have time, but if other feels inspired to work on this even better :-)

Re: OV information app

Posted: Sat Jan 19, 2019 12:10 pm
by Xavier
Toonz wrote:The links provided by Atlantica provide all info you need (seems proper JSON data to me)
However, you will need to rewrite the app to work from the 9292 site directly without the dashtics site inbetween.

I might do this when I have time, but if other feels inspired to work on this even better :-)
Hi Toonz,

got any luck and time about updating this app for Firmware 5.0.4 and the rewrite directly to 9292 site?
Would like to do this but I don't have the knowdledge :(

Re: OV information app

Posted: Sat Jan 19, 2019 12:37 pm
by Toonz
Not yet started, will post it here when done.

Re: OV information app

Posted: Sun Jan 20, 2019 10:20 am
by Toonz
small teaser, the basics are running again.
Need much more work to simplify the app structure and further enhance it.
The app will not slowdown your toon anymore.

Not sure when it's ready for release....
workinprogress.png
workinprogress.png (63 KiB) Viewed 8195 times

Re: OV information app

Posted: Sun Jan 20, 2019 6:22 pm
by Templar
Toonz wrote: .... and further enhance it.
While you're at it: perhaps rename "Bushalte informatie" to "<stopType> or <stationType> informatie" en display its <name>.

Re: OV information app

Posted: Sun Jan 20, 2019 6:59 pm
by Toonz
Halte name is already in the WIP version :-).
I also rebuild the config screen to be able to search for a busstop from there. No need to find the busstop id yourself.
Also rebuilt the tile to show the data of the first bus departing.

To do: somehow split/sort the list of departing busses by direction. Useful if the busstop is on both sides of the road

Keep the suggestions coming....

Re: OV information app

Posted: Sun Jan 20, 2019 7:38 pm
by Xavier
great Job!
looking forward to this app.
Will it be possible that the app will show the information in a tile? like the first possible travel option?
Maybe also an idea to add 2 travel option like train and bus so that a (dis)connection is also viseble. In case the train is delayed you can take a bus later.