PublicTransport

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

60
Score 85.2%
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.
Last changelog:

6 years ago

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)

thomasjfedora

9 years ago

Great, wasted space due to my stupidity. I was testing a new svn snapshot of webkitpart and forgot to install the -devel part.. Sorry for that.

Report

C

fpuelz

9 years ago

no problem ;)

Report

cmlr

9 years ago

Could I ask a favor? It's much easier for package maintainers when the source files and directories have consistent numbering. For example, in the sources for 0.8.4, the source file name contains 0.8.4, but the subdirectories and files use 0.8.3. Likewise, the source file name has ttmate-0.2, but subdirectories and files have 0.2.1.

Report

thomasjfedora

9 years ago

Indeed. I'm the Fedora packager and i copy that. It's right now a mess.

Another issue i would love to see fixed is the License. The included file is a GPL file, but the source files state it's LGPL.

Report

mschuerig

9 years ago

First and foremost PublicTransport is great. I'd like to make a few suggestions that would make it even more useful for me.

* I'm using PT on a Notebook which, by its nature, is not always close to the same stop. Being able to choose from several location presets would be nice. Ideally, the KDE infrastructure would supply information about the current location.

* I'm not just interested in one stop, but several. Two public transport stops near to where I live and two train stations a bit further.

* Remember the layout. On my system, by default, the list view is too short and columns are cramped to the point of truncating their content. Dragging the list to a bigger size is easy, whereas uncramping the columns is rather tricky. After I've done it, I'd really like PT to remember it.

* Most of the time I don't need to know anything about any departures. Therefore there's really no need to download the data (and increase the load on the provider). Consequently, I'm only updating data manually. As downloads are pretty quick, it would probably be fast enough to do an update when the user clicks the icon.

Report

takanowaka

9 years ago

hi.. ttmate's menu entry doesn't contain category (it ends up in lost and found) and imo description is too long - better move it to comment

Report

Finswimmer

9 years ago

Hi,

I have updated the ebuild.
But withoout Timetablemate as Gentoo currently does not have a stable version of kwebkitpart.

Finswimmer

Report

FollowByWhiteRabbit

9 years ago

There is an error during compilation. Anyone has same problem ???

Report

Finswimmer

9 years ago

Please be more specific.
What error?

Report

FollowByWhiteRabbit

9 years ago

...
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:591: warning: unused parameter ‘requestUrl’
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:613: warning: unused parameter ‘requestUrl’
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp: In member function ‘void PublicTransport::createJourneySearchWidgets()’:
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:2272: error: ‘class Plasma::LineEdit’ has no member named ‘setNativeWidget’
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp: In member function ‘void PublicTransport::setTitleType(TitleType)’:
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:2516: error: ‘Animation’ is not a member of ‘Plasma’
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:2516: error: ‘animOut’ was not declared in this scope
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:2516: error: ‘create’ is not a member of ‘Plasma::Animator’
/var/tmp/portage/kde-misc/publictransport-0.8.3/work/publictransport-0.8.3/plasma-applet-publictransport-0.8.3/publictransport.cpp:2516: error: ‘FadeAnimation’ is not a member of ‘Plasma::Animator’
make[2]: *** [CMakeFiles/plasma_applet_publictransport.dir/publictransport.o] Błąd 1
make[1]: *** [CMakeFiles/plasma_applet_publictransport.dir/all] Błąd 2
make: *** [all] Błąd 2
...

It occurs 3 times more to final error compilation.

Report

C

fpuelz

9 years ago

This is because you're compiling under KDE 4.3. It should have worked and will again after the next update ;)

Report

Finswimmer

9 years ago

Hmm.
Sorry, I have no idea.
I have only tested it on amd64

Report

FollowByWhiteRabbit

9 years ago

I see, x86 singiel core here. I just wondering if only I have such an error or it is common.

Report

sadiqhuq

9 years ago

hey is there a version available for win 7 gadgets...

danke schön..

Report

C

fpuelz

9 years ago

I don't think microsoft will ever support plasma applets ;)
And there's no package for publicTransport with kde-on-windows, but that may change at some time.
At http://windows.kde.org/ you can download KDE 4.4 for windows and try out plasma on windows. It's not yet complete though, the tasks list and system tray are missing.

So there's currently no way to download and install this applet on windows, sorry.

Report

zhick

9 years ago

Great plasmoid, but the install.sh in the source-tarball is outdated, so you'll always get "Data engine directory not found!" when you run it.
A simple
sed -i s/\.7/\.8\.1/g install.sh
fixes that.
And if you're like me and prefer su over sudo, you can make it use su -c with another
sed -i s/sudo\ make\ install/su\ -c\ \"make\ install\"/g */install.sh

Report

C

fpuelz

9 years ago

sorry, I always forget to update it..
Do you know how I could make it automatically find the right directory, ie. with any version number (there's always only one version of course)? Maybe I should just remove the version from the inner directories.

Report

zhick

9 years ago

Why don't you just use a wildcat? i.e. :
if [ ! -d plasma-dataengine-publictransport-* ]
I don't see a reason for this not to work.

Report

C

fpuelz

9 years ago

I just don't know much about shell scripts ;)

Report

takanowaka

9 years ago

1. on imhd.sk accessor around midnight i get parsing error message.. because it happened 3 days in a row around midnight i don't think it's server problem (but maybe i'm wrong ;) )
2. i suppose that requesting of data doesn't work per stop set but once for all stops.. because of this i don't get any departures on bus stop that i set +30 mins from my home stop
3. it would be nice if settings could be updated for all active plasmoids in realtime.. or give some info that you have to relog to apply changes to all plasmoids ;)

Report

C

fpuelz

9 years ago

1. The parser doesn't know if there is (currently) no departure or if departures in the document couldn't be parsed, due to a wrong/changed format. Therefore it always gives an parse error message if it didn't match anything in the given document. Seems, like there are no departures around midnight for your stop on imhd.sk? If they have a special message like "currently no departures" I could give a better error message :)

2. Requesting data works per stop, because it's not using an API from the providers (there is none) but just download the HTML documents and then parse them. And I haven't seen a site where departures for multiple stops can be shown at once? The reason that you get no results, is that imhd.sk has no way (I know of) to get departures at a time which isn't now.. If you know one please tell me :) That would be something I can write into the URL to the departure board. I haven't found anything in the site.

3. I will think of a way of doing this, should be possible to get informed if the global settings change..

Report

takanowaka

9 years ago

1. you're right there are no departures at that time ;) problem with this is that it always pops up 6 or so error messages each time it tries to search for departures which is really annoying :p i'll try to check if/what error message it shows when there are no departures later today.. but it may be better just to move error message to plasmoid instead of pop-up

2. oh.. yea.. i didn't realize that's problem of imhd.sk.. i know that only way to get now +x mins departure is to set destination stop too :|

3. great ;)

Report

C

fpuelz

9 years ago

It seems to be new in KDE SC 4.4.2 that the error messages (which are plasma dialogs) are popping up instead of just showing inside the applet. That's annoying, yes. The weather applet also has popup error messages which also annoys me ;) I'll change that.

Report

takanowaka

9 years ago

so this is new thing in 4.4.2 and i should prepare myself that other plasmoids will eventually do the same.. i wonder who is the evil mastermind behind this annoying change :p

Report

takanowaka

9 years ago

eh.. you said plasma dialogs.. so it looks more like they're now fixing bad design in cost of breaking some stuff.. well better late than never..

Report

6 years ago

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)

12345678910
141
product-maker mirkogennari Jan 15 2017 9 excellent
product-maker matafleur Apr 08 2015 9 excellent
product-maker Soru Jun 07 2014 9 excellent
product-maker MatthiasM Mar 18 2013 9 excellent
product-maker lei00 Feb 25 2013 9 excellent
product-maker meyerm Oct 12 2012 9 excellent
product-maker djselbeck Dec 30 2011 9 excellent
product-maker vortex375 Nov 12 2011 9 excellent
product-maker Rando25 Nov 10 2011 9 excellent
product-maker Eol Nov 07 2011 9 excellent
product-maker nikore90 Oct 18 2011 9 excellent
product-maker warrob Sep 15 2011 9 excellent
product-maker quippini Aug 11 2011 9 excellent
product-maker jenzuslongus Jul 29 2011 9 excellent
product-maker tobaj Jul 22 2011 9 excellent
product-maker thrawn Jul 10 2011 9 excellent
product-maker mschu Mar 30 2011 9 excellent
product-maker Vistausss Mar 27 2011 9 excellent
product-maker Genserowski Mar 26 2011 9 excellent
product-maker roadracer Mar 11 2011 9 excellent
product-maker terwarf Mar 09 2011 9 excellent
product-maker FollowByWhiteRabbit Mar 04 2011 9 excellent
product-maker FraSMOG Mar 04 2011 9 excellent
product-maker terrorbaby92 Mar 03 2011 9 excellent
product-maker vkmaheshbhat Feb 28 2011 9 excellent
product-maker misiakdurko Feb 27 2011 9 excellent
product-maker FSchulz Feb 26 2011 9 excellent
product-maker nsaibot Feb 17 2011 9 excellent
product-maker Vzlom Feb 16 2011 9 excellent
product-maker nisavid Feb 12 2011 9 excellent
product-maker flanello Feb 06 2011 9 excellent
product-maker kovariadam Feb 06 2011 9 excellent
product-maker momonster Feb 06 2011 9 excellent
product-maker Weaselweb Feb 05 2011 9 excellent
product-maker Ireyon Feb 02 2011 9 excellent
product-maker vitoubien Feb 01 2011 3 bad
product-maker Finswimmer Jan 30 2011 9 excellent
product-maker EliasP Jan 19 2011 9 excellent
product-maker fixu Dec 16 2010 9 excellent
product-maker PyroLinux Nov 08 2010 9 excellent
product-maker thecrazyzorro Oct 30 2010 9 excellent
product-maker Dieter-MZ Oct 06 2010 9 excellent
product-maker Count: 4 Rating: 5.0

simgunz

Sep 29 2014

vortex375

Nov 12 2011

hoderlump

Nov 05 2011

tobaj

Oct 18 2011

jenzuslongus

Aug 03 2011

dyn0saur

Jun 03 2011

Naraku

Apr 16 2011

m00nraker

Mar 22 2011

terwarf

Mar 09 2011

nsaibot

Feb 16 2011

flanello

Feb 06 2011

rgreinhofer

Feb 04 2011

EliasP

Jan 19 2011

thecrazyzorro

Oct 30 2010

eikel

Jul 29 2010

rickdesantis

Jun 13 2010

thomasjfedora

May 24 2010

elric80

May 13 2010

sadiqhuq

Apr 06 2010

Rerghar

Mar 30 2010

balevas01

Mar 19 2010

poelzi

Feb 25 2010

lordlukas

Feb 16 2010

dtritscher

Feb 14 2010

H1bakusha

Feb 10 2010

msledziona

Feb 07 2010

Bottom-Egg

Feb 05 2010

nicodietrich

Jan 21 2010

knilch

Jan 20 2010

markum

Jan 02 2010

smihael

Dec 30 2009

Kummerpaule

Sep 29 2009

dixiecko

Aug 14 2009

weatherman

Aug 09 2009

JanMalte

Aug 09 2009

Hantilles

Aug 05 2009

kovariadam

Jul 29 2009

lokdp

Jul 28 2009

EinfachToll

Jul 28 2009

AndiBauer

Jul 26 2009

takanowaka

Jul 25 2009

poppei82

Jul 18 2009

frankbrian25

Jul 13 2009

alvanx

Jul 10 2009

Boccaccio

Jul 05 2009

Podstavsky

Jul 03 2009

painkiller101

Jun 26 2009

vejha

Jun 23 2009

buschmann23

Jun 19 2009

gravy

Jun 18 2009

pano

Jun 18 2009

k3ks

Jun 17 2009

Finswimmer

Jun 17 2009

Frank

Jun 16 2009

dejazmach

Jun 16 2009

jalpaka

Jun 15 2009

radecz3k

Jun 15 2009

Vistausss

Jun 14 2009

ZdadrDeM

Jun 13 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.11 beta
updated Jan 17 2013
added Jun 03 2009
downloads today
0
page views today 9