OV information app

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

atlantica
Starting Member
Starting Member
Posts: 34
Joined: Fri Mar 02, 2018 10:46 am

OV information app

Post 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
Attachments
ovinformationapp.zip
(26.88 KiB) Downloaded 488 times
Last edited by atlantica on Mon Aug 27, 2018 3:12 pm, edited 2 times in total.
Regards

David
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post 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
member of the Toon Software Collective
atlantica
Starting Member
Starting Member
Posts: 34
Joined: Fri Mar 02, 2018 10:46 am

Re: OV information app

Post 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...
Regards

David
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post by Toonz »

atlantica wrote: That app makes your toon very slow...
Ok, makes sense. Will give it a try :)
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post by Toonz »

Is it finished from your point of view, in other words, do you want it to be included in the ToonStore?
member of the Toon Software Collective
atlantica
Starting Member
Starting Member
Posts: 34
Joined: Fri Mar 02, 2018 10:46 am

Re: OV information app

Post 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...
Regards

David
atlantica
Starting Member
Starting Member
Posts: 34
Joined: Fri Mar 02, 2018 10:46 am

Re: OV information app

Post 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?
Regards

David
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: OV information app

Post by Xavier »

Trying to get this to work but no luck, keeps trying to load data.
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post 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 :-)
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: OV information app

Post 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 :(
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post by Toonz »

Not yet started, will post it here when done.
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post 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 8154 times
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: OV information app

Post 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>.
Last edited by Templar on Sun Jan 20, 2019 10:32 pm, edited 1 time in total.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: OV information app

Post 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....
member of the Toon Software Collective
Xavier
Member
Member
Posts: 174
Joined: Wed Jan 16, 2019 1:40 am

Re: OV information app

Post 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.
Toon2 with 6.0.2 firmware TSC 2.1.7
Apps: Sonos, Calender, garbagecalender, webcam, doorcam, Onkyo, Domoticzboard, Solar and weather app.
Post Reply

Return to “Toon Apps”