-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

NS Commute Tracker

   1.4  

Plasmoid Script

Score 50%
NS Commute Tracker
zoom


Minimum required   KDE 4.x
Downloads:  56
Submitted:  Feb 13 2012
Updated:  Jan 3 2013

Description:

Small plasmoid to keep you informed about the departure time of your NS train (Dutch railways). The number of global disruptions on the track is also shown. Any feedback, including improvements on the code, is appreciated.

Note: the NS api allows us a total 50.000 parses a day. Please leave the update setting to 60 seconds or more, otherwise we will get blocked.

On the todo list are:
* Upgrade the layout of the text
* Include translation(s)




Changelog:

Version 1.4:
- Fixed bug in connection code

Version 1.3:
- Fixed bug in parsing code w.r.t. time

Version 1.2.1:
- Fixed bug in layout of label position
- Fixed bug in exception handling causing "Script Initialization Failed" messages

Version 1.2:
- Added button that opens travel advice and disruptions (if any).

Version 1.1:
- Added code for NS API with fallback on HTML parsing code
- Implemented patch of rbos




LicenseGPL
other
Send to a friend
Subscribe
Other  Apps  from VincentVandalon
Report inappropriate content



goto page:  1  2 

-

 Finally

 
 by rbos on: Feb 13 2012
 
Score 50%

Finally a plasmoid for the Dutch railways :) Is there a Dutch translation for it?


Reply to this

-

 Re: Finally

 
 by VincentVandalon on: Feb 14 2012
 
Score 50%

Offering different translations is a good point/suggestion. I will have a look at the KDE mechanism for adding translations and implement this.


Reply to this

-

 nice!

 
 by Mikage on: Feb 13 2012
 
Score 50%

let me just remember everyone that NS sucks! ;)


Reply to this

-

 nice!

 
 by Mikage on: Feb 13 2012
 
Score 50%

let me just remind everyone that NS sucks! ;)


Reply to this

-

 Public Transport?

 
 by Hmpf on: Feb 14 2012
 
Score 50%

So there is actually a ns.nl url which has departure in its string. Is there any chance to integrate this into the public transport plasmoid?

http://kde-apps.org/content/show.php/PublicTransport?content=106175

Searched a bit further and by now there is an API available http://www.ns.nl/api/api but access is limited.


Reply to this

-

 Re: Public Transport?

 
 by VincentVandalon on: Feb 14 2012
 
Score 50%

I have no current plans to integrate it with the public transport plugin. The goal was to make a very minimal interface, so that I can have a quick glance at when/if I need to leave for the train. The public transport project is free to "use" my code of course. The parsing code is separated (somewhat) from the GUI.

Thanks for pointing me to the API, that does look nice, and more convenient then parsing HTML code. Why I did not look for this, I do not know :) . I will actually get this in asap.


Reply to this

-

 Nicer disruptions text patch

 
 by rbos on: Feb 14 2012
 
Score 50%

Can you this patch:

--- NSSummary/contents/code/getNSInfo.py.org 2012-02-14 18:11:42.781711000 +0100
+++ NSSummary/contents/code/getNSInfo.py 2012-02-14 20:33:50.358883001 +0100
@@ -71,7 +71,10 @@
summaryText+=' and has a transfer at %s'%(t)
summaryText+=' and will arrive at %s.'%(self.arrivalTime)
if self.nrDisruptions != 0:
- summaryText+='\nThere is(are) %s disruption(s).'%self.nrDisruptions
+ if self.nrDisruptions == "(1)":
+ summaryText+='\nThere is 1 disruption.'
+ else:
+ summaryText+='\nThere are %s disruptions.'%self.nrDisruptions
return summaryText

def parseNS(fromStation='Eindhoven',toStation='Vleuten'):

It makes the disruption text nicer formatted


Reply to this

-

 Disruption link clickable?

 
 by rbos on: Feb 14 2012
 
Score 50%

Hi,
is it possible to make the "possible disruption" link clickable, and have it refer to http://www.ns.nl/storingen/index.form. That would make it convenient to determine the actual disruption.


Reply to this

-

 Re: Disruption link clickable?

 
 by VincentVandalon on: Feb 14 2012
 
Score 50%

Good idea, I actually get specific information about the disruption, so I can link to that. I guess implementing that will be part of my commute tomorrow!


Reply to this

-
.

 Re: Disruption link clickable?

 
 by rbos on: Feb 16 2012
 
Score 50%

The new button works simple and nice :)


Reply to this

goto page:  1  2 

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.