-
 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 (67) .- Knowledge Base  . 

PublicTransport

   0.11 beta  

Plasmoid Binary

Score 94%
PublicTransport
zoom


PublicTransport
zoom


PublicTransport
zoom


Minimum required   KDE 4.x
Downloads:  10267
Submitted:  Jun 3 2009
Updated:  Jan 17 2013

Description:

This is a Plasma data engine, applet and runner for public transport timetable data. The applet shows a departure/arrival board for a given stop. It can also show journeys to or from the given "home stop". It displays additional information like delays, news about journeys, routes, vehicle types (with icons). Timetable data is available for trams, buses, subway, trains, ferries and planes (using flightstats.com). You can set alarms for departures and filter departures (by type of vehicle, target/origin, delay, transport line string/number, intermediate stops). Filters can also be combined.
Timetable data gets received from provider plugins. Since version 0.11 there are two types of plugins: GTFS and script providers. Script providers need a network connection and can be used to read timetable data from any document type, eg. XML, binary or HTML. GTFS providers only need to import the GTFS feed once and can then be used offline (but a network connection can be used for GTFS-realtime).

My Blog: http://fpuelz-kde.blogspot.com/
PublicTransport on UserBase: http://userbase.kde.org/Plasma/Public_Transport
PublicTransport on KDE projects: https://projects.kde.org/projects/playground/base/publictransport
PublicTransport on ohloh.net: https://www.ohloh.net/p/publicTransport

You can donate me ;)

News
17.01.2013: Version 0.11 beta released
30.12.2012: Version 0.11 alpha 2 released
04.12.2012: Version 0.11 alpha released

Installation
To install PublicTransport download a package for your distribution. If there is no such package you can ask the appropriate packagers for your distribution to create one. Please leave a comment if a new package is created or if you use a package not mentioned in the download list here, so that I can add it.
If you want to install PublicTransport, but there are no packages available for you (yet?) or you want to try the newest version with no new package yet, you can use the installer script (install.sh) included in the Sources download.
But note that software installed with that installer script isn't managed by your package manager in any way and may produce conflicts with installed packages, eg. if PublicTransport is already installed via the package manager. The script should be quite easy to use and also lets you uninstall the software again. You need GIT to use the installer, because the sources are actually downloaded using GIT by the script (from git://anongit.kde.org/publictransport).

There's also a script for packagers, that can download tarballs for all PublicTransport components for a specific version.
You can clone the GIT repository from git://anongit.kde.org/publictransport (read only), which also clones all history. From your local clone of the repository you can checkout all tagged versions (see the HINTS_FOR_PACKAGE_MAINTAINERS file).
If you want to contribute code, you need a KDE account and you can clone the repository with SSH from this URL: git@git.kde.org:publictransport (read + write). You can of course also send me patches via email.

Note: The Sources tarball does not contain the sources, but a script to download them from it's GIT repository and the translations from KDE's SVN. The script asks for the version to compile and install.

Adding a Service Provider Plugin
- Install TimetableMate, maybe not included in the packages, but in the source archive.
- The filenames start with the country code, followed by "_" and an abbreviation of the service provider, e.g. "ch_sbb" for switzerland, service provider "SBB".
- You can test your script and the URLs with TimetableMate. It also offers syntax completion with documentation and templates for the parser functions, that get called by the data engine.
- Also works for GTFS providers
- After installation of your plugin you can open the configuration dialog of the public transport applet and the new provider should be in there.
- You can also open/edit existing providers by simply clicking "Open in TimetableMate..." in the provider data dialog (accessible from the configuration dialog).
- Checkout the documentation of the data engine, it contains much information about the data sources of the engine and how to create new provider plugins.

You are welcome to optimize the scripts in the existing providers in the "serviceProviders" directory in the data engine source directory.

Comments are appreciated.




Changelog:

17.01.2013:
(version 0.11 beta)
Many crash/bug fixes, visual polishing, see http://fpuelz-kde.blogspot.de/. (The install.sh script is actually unchanged, just select the new version)

30.12.2012:
(version 0.11 alpha 2)
Providers are now hosted on openDesktop.org, download via GHNS, many fixes etc. See http://fpuelz-kde.blogspot.de/. (The install.sh script is actually unchanged, just select the new version)

04.12.2012:
(version 0.11 alpha)
Many improvements, new features, GTFS support, etc. See http://fpuelz-kde.blogspot.de/.
Update: Improved install script, automatically select latest version for installation, show available versions sorted by date, allow switching to another version when starting the script again with the repository already cloned
Update 2: Allow selecting git HEAD for installation again (the script shows Current_Development_Version for it), HEAD contains a fix for building with GTFS support but without protocol buffers installed

18.10.2011:
(version 0.10 RC2)
Applet:
- Fix link errors
- Fix memory leaks
- Fix applet collapsing to popup icon in desktop
- Drawing performance improvements
- Use of KPixmapCache for vehicle type icons
- New monochrome icons, shown in the popup icon
- Add possibility to put the applet into the notification area
- Better layout adjustments for small sizes
- Change applet tooltip according to current departure group in popup icon
- Shorter alarm names, alarm names in notifications
- Nicer alarm background
- Fix color groups and route time display for arrivals
TimetableMate:
- Fix for missing KWebKitPart include file, it now uses KWebView directly
Library:
- Fix a crash with GraphicalTimetableLine (missing null pointer check)




LicenseGPL
Source(Source)
Arch(by cmlr)
Ubuntu(deb i386 packages by takanowaka (outdated v. 0.8.3)
Ubuntu(x86_64 by Chillawowa (outdated version 0.8.3))
Gentoo(ebuild by Finswimmer)
Mandriva(x86_64 by tigger-gg, outdated, v 0.5.4)
openSUSE Factory
openSUSE Tumbleweed
Donate
Send to a friend
Subscribe
Other  Apps  from fpuelz
Report inappropriate content



goto page: prev  ... 10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25 ...

-
.

 new version yaaay

 
 by takanowaka on: Jan 8 2010
 
Score 50%

i've updated my package.. build with checkinstall on karmic with kde 4.3.4


Reply to this

-
.

 Re: new version yaaay

 
 by fpuelz on: Jan 9 2010
 
Score 50%

Great, thanks :)


Reply to this

-

 Re: new version yaaay

 
 by takanowaka on: Jan 20 2010
 
Score 50%

there was a small problem with icon package (wrong/no description) which is now corrected


Reply to this

-
.

 Build fails

 
 by bitcrazy on: Jan 12 2010
 
Score 50%

/usr/src/packages/BUILD/publictransport-0.6/plasma-applet-publictransport-0.6/publictransport.cpp: In member function ‘virtual void PublicTransport::addState(AppletState)’:
/usr/src/packages/BUILD/publictransport-0.6/plasma-applet-publictransport-0.6/publictransport.cpp:1436: error: ‘setAssociatedApplicationUrls’ was not declared in this scope
make[2]: *** [CMakeFiles/plasma_applet_publictransport.dir/publictransport.o] Fehler 1

So, it doesn't build under 4.3.4. Correct?

Regards
m0nk


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Build fails

 
 by fpuelz on: Jan 12 2010
 
Score 50%

It should build now again, thanks!
It was because of the use of setAssociatedApplicationUrls. Short before uploading I added two more calls to that method... but forgot to include the preprocessor switches, so that it will compile with KDE < ~4.3.80. Sorry.
Maybe writing a plugin for KDevelop that manages such things would save me some time ;)


Reply to this

-

 Error in public transport

 
 by HeinzDo on: Jan 13 2010
 
Score 50%

In version 0.6.1 I cannot select db.de. Therefore I cannot use public transport. This message shows the program: 2 accessors acres errornous: de_dvb2, db.de


Reply to this

-

 Re: Error in public transport

 
 by fpuelz on: Jan 13 2010
 
Score 50%

Seems like the data engine wasn't updated? Either version 0.6.1 of the data engine wasn't installed or not loaded by plasma (kbuildsycoca4 should help.. or restart ;)). So please make sure, you have installed both the data engine and the applet in version 0.6.1.
That should help. If not, write again. Thanks :)


Reply to this

-

 Re: Re: Error in public transport

 
 by knilch on: Jan 15 2010
 
Score 50%

I have the same problem here. I installed version 0.6.1 data engine and the applet but cannot choose db.de


Reply to this

-

 Re: Re: Re: Error in public transport

 
 by knilch on: Jan 15 2010
 
Score 50%

Everything works fine now...my fault

Thanks for the applet... ;)


Reply to this

-
.

 db.de support broken?

 
 by daelph on: Jan 17 2010
 
Score 50%

I just built all three components from source and apparently everything went fine. But I cant get any information from db.de. International Flights and Berlin on the other hand work perfectly.
I went through the network traffic and both request and response look perfectly fine. The response contains all the right information, but the widget does not display them.


Reply to this

-

 Re: db.de support broken?

 
 by fpuelz on: Jan 18 2010
 
Score 50%

Did you try it with a version < 0.6 and did that work? Then there must be something wrong in the script, because the data from db.de is now parsed by a script (to make it more flexible and easier to debug).
I tried some different stops in germany, all worked fine for me. Which stop did you try? When I can reproduce the error here I should be able to fix it :)


Reply to this

-

 Re: Re: db.de support broken?

 
 by daelph on: Jan 18 2010
 
Score 50%

I did not try any other version than the source package linked on this page.

Could it be that the linked source package has got some kind of version mix up in the db.de data provider? I'm asking because the info box for db.de says its version 1.1 but the only feature listed is "Arrivals". According to your screen shot there should be a ton of other features.


Reply to this

-
.

 Re: Re: Re: db.de support broken?

 
 by fpuelz on: Jan 18 2010
 
Score 50%

No, that's because the feature list was automatically generated based on the old regular-expression-xmls, but those aren't used anymore for db.de. There's now a script that does the parsing.
But I should add something to the script so that the feature list works again, thanks for the hint :)

Ah.. and the LED in the config dialog doesn't get green any longer. Maybe I'll add that again or I just remove it. The LED got green, when the stop "worked", ie. parsable results were received.

Please tell me the stop you're trying. Hm, or some stop that also doesn't work if you don't want to publish your home stop ;) Or does no stop work for you (eg. "Berlin")?


Reply to this

-

 Re: Re: Re: Re: db.de support broken?

 
 by daelph on: Jan 18 2010
 
Score 50%

I have tried a crap load of different stops including:
- Hasseldieksdammer Weg, Kiel
- Universität, Kiel
- Kiel Hbf
- Hamburg Dammtor

None of them worked. Plus I don't get any suggestions when I type in the edit box for home stop configuration. These suggestions do work for the local provider for Berlin and flights.

As for the LED: I don't see the point. As long as you use one of the suggestions correctness is implied and vice versa.


Reply to this

-

 Re: Re: Re: Re: Re: db.de support broken?

 
 by fpuelz on: Jan 18 2010
 
Score 50%

Ok, the stops all work for me. You should at least get suggestions. That's weird.. Does anyone else have this problem?
It seems like the "db_de.js" file isn't installed or Qt sees some problems with it (but I don't think so, because for me it works). It could be because I'm using Qt 4.6, but I don't see where the problem could be..

The only idea I currently have is that you could reinstall the data engine. It tells you what files get installed. Make sure that "db_de.js" is listed (not only "db_de.xml").
If it's installed, try to run "plasmoidviewer publictransport" from a terminal (eg. Konsole). It should give some more information. Please try to put some letters into the stop field in the config and send me the output in the terminal.
When I have a better idea I'll let you know.

The LED is from the time were there was no stop suggestion. And for some providers there're still no suggestions. I think I will hide the LED for providers with suggestions.


Reply to this

-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by knilch on: Jan 18 2010
 
Score 50%

I have the same problem.

I also don't get any suggestions when typing in a home stop.

The local provider for Berlin works, but it doesn't show the local trains. So I depend on db.de which doesn't work ;)



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by fpuelz on: Jan 18 2010
 
Score 50%

I think you both use Qt 4.5 with KDE 4.3?
That's the only thing I can think of being the problem. But I have no clue, what exactly the problem could be.. sorry.

Please try getting some output from "plasmoidviewer publictransport".



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by daelph on: Jan 18 2010
 
Score 50%

I'm on KDE 4.3.4 with Qt 4.5.3.

de_db.js got installed to /usr/share/kde4/apps/plasma_engine_publictransport/accessorInfos/

And the requested output: The first two lines appeared during launch, the next two when starting the settings dialog and the rest during shutdown. Typing in a home stop and doing a search did not yield any output.

$ plasmoidviewer publictransport
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.
AAA 19
Object::connect: No such slot PublicTransportSettings::filterLineTypeAvaibleSelctionChanged(int)
Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data)
Object::disconnect: (sender name: 'http://www.bvg.de/index.php')
Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data)
Object::disconnect: (sender name: 'http://www.nasa.de/')

There's another problem I've just encountered, maybe its related: When I try to get a flight to anywhere the plasmoid freezes up and spams stderr with TimetableAccessorHtml::parseDocument Setting vehicle type to default 200



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by fpuelz on: Jan 18 2010
 
Score 50%

Sorry, most debug messages are missing. Please run "kdebugdialog", type "plasm" in the search field and check plasmoidviewer and libplasma. This enables "KDE-Debug-Messages". You can uncheck everything afterwards. The program should be installed by default, I hope ;)

Then start plasmoidviewer again and you will hopefully see more interesting output.

Thanks!



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by knilch on: Jan 18 2010
 
Score 50%

I'm also on KDE 4.3.4 and QT 4.5.3.

Here is my output:

$ plasmoidviewer publictransport
plasmoidviewer(2651)/plasma main: setting FormFactor to "planar"
plasmoidviewer(2651)/plasma main: setting Location to "floating"
plasmoidviewer(2651)/plasma main: setting containment to "null"
plasmoidviewer(2651)/plasma FullView::addApplet: adding applet "publictransport" in "null"
plasmoidviewer(2651)/libplasma Plasma::CoronaPrivate::addContainment: loading of containment "null" failed.
findServiceByDesktopPath: not found
plasmoidviewer(2651)/libplasma Plasma::AppletPrivate::init: Check your constructor! You probably want to be passing in a Service::Ptr or a QVariantList with a valid storageid as arg[0].
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by knilch on: Jan 18 2010
 
Score 50%

I'm also on KDE 4.3.4 and QT 4.5.3.

Here is my output:

$ plasmoidviewer publictransport
plasmoidviewer(2651)/plasma main: setting FormFactor to "planar"
plasmoidviewer(2651)/plasma main: setting Location to "floating"
plasmoidviewer(2651)/plasma main: setting containment to "null"
plasmoidviewer(2651)/plasma FullView::addApplet: adding applet "publictransport" in "null"
plasmoidviewer(2651)/libplasma Plasma::CoronaPrivate::addContainment: loading of containment "null" failed.
findServiceByDesktopPath: not found
plasmoidviewer(2651)/libplasma Plasma::AppletPrivate::init: Check your constructor! You probably want to be passing in a Service::Ptr or a QVariantList with a valid storageid as arg[0].
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.
QGraphicsItem::installSceneEventFilter: event filters can only be installed on items in a scene.



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by TheUnknownOne on: Jan 20 2010
 
Score 50%

Perhaps only a typo?

These go with a second "e" in "Sel_e_ction":

~/publictransport-0.6.1> ack filterLineTypeAvaibleSelectionChanged
plasma-applet-publictransport-0.6.1/settings.cpp
180:void PublicTransportSettings::filterLineTypeAvaibleSelectionChanged( int ) {

plasma-applet-publictransport-0.6.1/settings.h
188: void filterLineTypeAvaibleSelectionChanged( int );

This one misses the "e" in "Selction":

~/publictransport-0.6.1> ack filterLineTypeAvaibleSelctionChanged
plasma-applet-publictransport-0.6.1/settings.cpp
500: this, SLOT(filterLineTypeAvaibleSelctionChanged(int)) );

While your're at it: How about making it "Avai_la_ble", too?



-

 Re: Re: Re: Re: Re: Re: db.de support broken?

 
 by fpuelz on: Jan 20 2010
 
Score 50%

I found the "Selction" typo, but didn't see the "Avaible" one. Thanks! Must have been in a hurry while writing that method name ;) But it worked for me also with those typos..
I will now upload a new version, which uses Kross for scripting instead of QScriptEngine. Maybe that helps or at least prints some warnings.

@knilch: Is that your output with the kdebugdialog stuff checked? Then there must be something else preventing the kDebug()-output to be printed. But I don't know what..



-

 Anyone interested in adding...

 
 by mintlars on: Jan 20 2010
 
Score 50%

...a Swedish public transport? This one here is a local one, but covers a pretty big area of sweden with lots of people.

Here's a departure board (where you fill in a stop and get the time to departure in real time):
http://www.vasttrafik.se/Trafiklaget/Avgangar-i-realtid/Nasta-Tur/

There's an autofill function in the textbox, so you can probably fill in any letter there and get a list of stops. Here's some examples of stops anyway:
Hogenskildsgatan (a small one)
Brunnsparken (a bigger one)
Borås resecentrum (in another town)

Hope this helps. Thanks for a great plasmoid.


Reply to this

-
.

 Re: Anyone interested in adding...

 
 by fpuelz on: Jan 20 2010
 
Score 50%

Unfortunately the site is using asp.net. And I don't know how to construct an url directly to the site containing the timetable (if it's possible at all?). So if anyone knows how to do this, please tell me :)


Reply to this

-

 Re: Re: Anyone interested in adding...

 
 by LtWorf on: Jan 28 2013
 
Score 50%

I made a python module to download data from Västtrafik. They provide a public API.
Unfortunately i couldn't put the api key on git because i am not really aware of their conditions for its use.

https://github.com/ltworf/pysttrafik


Perhaps today is a good day to die
Reply to this

-

 0.6.2

 
 by takanowaka on: Jan 20 2010
 
Score 50%

i tried new svk/atlas.sk accessor but i can't see any departures

anyway thanks for new version :)


Reply to this

-

 Re: 0.6.2

 
 by fpuelz on: Jan 20 2010
 
Score 50%

For me it works.. but sometimes not for the first time. The stop suggestions are a bit clumsy with atlas.sk. Maybe I can improve it for the next version.
Did it work better with prior versions?


Reply to this

-

 Re: Re: 0.6.2

 
 by takanowaka on: Jan 21 2010
 
Score 50%

i don't know how it worked in previous versions cos i'm not using this accessor regularly ;) i just tested it because it changed to scripted ;)
nevertheless it's weird cos no matter how many times i tried it i get only empty departure table and autosuggestion doesn't work either..


Reply to this

goto page: prev  ... 10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25 ...

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.