OV information app

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

OV information app

Postby atlantica » Thu Aug 23, 2018 11:05 am

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 63 times
Last edited by atlantica on Mon Aug 27, 2018 2:12 pm, edited 2 times in total.
Regards

David
atlantica
Starting Member
Starting Member
 
Posts: 32
Joined: March 2018

Re: OV information app

Postby Toonz » Thu Aug 23, 2018 11:09 am

Hi good to see new apps, just a question, to what extent does this differ from the OV info in this app:
https://www.domoticaforum.eu/viewtopic. ... lte#p84325
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby atlantica » Thu Aug 23, 2018 11:22 am

Toonz wrote:Hi good to see new apps, just a question, to what extent does this differ from the OV info in this app:
https://www.domoticaforum.eu/viewtopic. ... lte#p84325


Hi Toonz,

That app makes your toon very slow...
Regards

David
atlantica
Starting Member
Starting Member
 
Posts: 32
Joined: March 2018

Re: OV information app

Postby Toonz » Thu Aug 23, 2018 12:02 pm

atlantica wrote:That app makes your toon very slow...

Ok, makes sense. Will give it a try :)
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby Toonz » Thu Aug 23, 2018 12:45 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby atlantica » Thu Aug 23, 2018 1:58 pm

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: 32
Joined: March 2018

Re: OV information app

Postby atlantica » Sat Dec 01, 2018 9:00 pm

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/[ovHalte]/departure-times?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
atlantica
Starting Member
Starting Member
 
Posts: 32
Joined: March 2018

Re: OV information app

Postby Xavier » Wed Jan 16, 2019 8:54 am

Trying to get this to work but no luck, keeps trying to load data.
Toon1 with 5.0.4 firmware
Xavier
Starting Member
Starting Member
 
Posts: 29
Joined: January 2019

Re: OV information app

Postby Toonz » Wed Jan 16, 2019 11:10 am

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby Xavier » Sat Jan 19, 2019 11:10 am

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 :(
Toon1 with 5.0.4 firmware
Xavier
Starting Member
Starting Member
 
Posts: 29
Joined: January 2019

Re: OV information app

Postby Toonz » Sat Jan 19, 2019 11:37 am

Not yet started, will post it here when done.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby Toonz » Sun Jan 20, 2019 9:20 am

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 606 times
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby Templar » Sun Jan 20, 2019 5:22 pm

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 9:32 pm, edited 1 time in total.
Templar
Member
Member
 
Posts: 106
Joined: March 2011
Location: Netherlands

Re: OV information app

Postby Toonz » Sun Jan 20, 2019 5:59 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 971
Joined: December 2016

Re: OV information app

Postby Xavier » Sun Jan 20, 2019 6:38 pm

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.
Toon1 with 5.0.4 firmware
Xavier
Starting Member
Starting Member
 
Posts: 29
Joined: January 2019

Next

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 0 guests