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)

cmlr

8 years ago

It's the kwebkit issue. I'll try it again.

Report

cmlr

8 years ago

This is the error message. I did install kwebkitpart.

/home/carl/Downloads/Second/src/publictransport-0.10beta1_timetablemate-0.2.2/timetablemate-0.2.2/src/timetablemate.cpp:60:23: fatal error: KWebKitPart: No such file or directory

Report

C

fpuelz

8 years ago

Ok, did you also install the development package, kwebkitpart-dev or kwebkitpart-devel?

Report

cmlr

8 years ago

Hmm. We don't have such a package, kwebkitpart-dev or development.

Report

C

fpuelz

8 years ago

Yes, only TimetableMate needs KWebKitPart. To compile it, the development files (headers) are needed. If there are no packages available for Arch, you would have to install the header files yourself from the KWebKitPart sources to compile TimetableMate.
Maybe I can make KWebKitPart usage optional. But TimetableMate is only needed to add support for new service providers, so it's not needed by the average user.

Report

cmlr

8 years ago

In fact I'm trying to make a package for Arch Linux, by using the compile scripts in each of the subdirectories. I succeeded, but only by not including timetablemate.

Report

9

Finswimmer

8 years ago

Hi,

I have updated the ebuild.

Report

9

Weaselweb

8 years ago

Are you working on an ebuild for the 0.10 beta versions? I tried and failed due to the lib it uses now.

Report

9

Finswimmer

8 years ago

Hi,

I am working on it.
But I get a sandbox violation.

I hope it will be ready the next days.

Report

9

Weaselweb

8 years ago

Meanwhile I succeeded in building an ebuild. But it is hacky. Where can I send it to you, so you can test it your own?

Report

9

Finswimmer

8 years ago

My ebuild will work with the next version.
Right now there is a problem with global symlinks.

Report

9

Finswimmer

8 years ago

A new version. Great.
I will provide a Gentoo Ebuild tomorrow.

Is it possible to change the conjunction of the filter?
I want to to this:
if ( (vehicle = S or RB) AND ( (destination = frankfurt) OR (destination = bad soden))

Destination filters work just fine, but I need to add vehicle type in order to get rid of the busses to frankfurt. But if I add the vehicle type filter I get trains to everywhere else...

Thank you

Report

C

fpuelz

8 years ago

Hi,
you can write the filter like this:

if ( ((vehicle = S or RB) AND (destination = frankfurt)) OR ((vehicle = S or RB) AND (destination = bad soden)) )

Thanks for the ebuild-update :)

Report

9

Finswimmer

8 years ago

Yeah this works fine.
I missed the small + to use multiple querys in the same filter...

Report

9

Finswimmer

8 years ago

Unfortunaly, it does not work quite well.
I am using above filter combination.

It shows RB 60 Frankfurt till I update timetable.
If I disable and enable the filter RB 60 is shown until I (manually) update the timetable.

I started it with plasmoidviewer publictransport from konsole. Only while editing the filter this was shown:
Object::disconnect: No such slot QObject::dataUpdated(QString,Plasma::DataEngine::Data)
Object::disconnect: (sender name: 'Stops de_rmv|stop=Darmstadt Hauptbahnhof')


After that (enabling/disabling filter) does not show any output.

What could be the problem?

Thank you

Report

9

Finswimmer

8 years ago

Hm.
RE 60 is shown correctly while RB 60 is not.
Strange.

(If you want test it, the Stop is Darmstadt Hauptbahnhof and I am using RMV)

Report

9

Finswimmer

8 years ago

I tested the new .10beta. The problem still exists. It happens also when the only filter is "target contains frankfurt". It shows 2 RB and one Airport-Bus, only RB disappears.

Report

husky

8 years ago

Hi!
Thanks for that applet. I'd really love to use your installer, but it filas in two ways:
- my ubuntu uses sudo by default, root password is not set - auth fails, somehow replacing 'su' with 'sudo' doesn't work so far
- it fails to detect that installation failed.

A very nice script which allows to compile things and build a distribution package automagically is provided with the YaWP-applet - maybe you can adapt that script a little?

Report

husky

8 years ago

(un-)installation on ubuntu works when one replaces "su" with "sudo" and removes the -c option and the quote signs around the command in that line, e.g.
Quote: sudo ./.scripts/helper_install.sh -u $installDataEnginePT -v $installDataEngineOSM -w $installAppletPT -x $installRunnerPT -y $installIconsPT -z $installTTMate -s $show_install_output

Report

C

fpuelz

8 years ago

sudo works for me, too on openSuse. Maybe I can somehow check if "sudo" is available and otherwise try "su". Something like checking if "whereis sudo" returns something (I'm no shell script expert ;)).
I'll look into how it's done with the YaWP-applet.

Report

husky

8 years ago

sorry, I forgot: the link to the ubuntu package from AndiBauer doesn't work anymore, it should be removed.

Report

C

fpuelz

8 years ago

done, thanks :)

Report

buschmann23

8 years ago

When I try to compile Public Transport for KDE 4.6 RC an KDE Trunk, the following error occures:

Quote:
Linking CXX executable timetablemate
cd /usr/src/packages/BUILD/publictransport-0.9_timetablemate-0.2.1/timetablemate-0.2.1/builddir/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/timetablemate.dir/link.txt --verbose=1
/usr/bin/c++ -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions CMakeFiles/timetablemate.dir/timetablemate_automoc.o CMakeFiles/timetablemate.dir/timetablemate.o CMakeFiles/timetablemate.dir/main.o CMakeFiles/timetablemate.dir/timetablemateview.o CMakeFiles/timetablemate.dir/publictransportpreview.o CMakeFiles/timetablemate.dir/accessorinfoxmlreader.o CMakeFiles/timetablemate.dir/javascriptcompletionmodel.o CMakeFiles/timetablemate.dir/javascriptmodel.o CMakeFiles/timetablemate.dir/javascriptparser.o CMakeFiles/timetablemate.dir/scripting.o CMakeFiles/timetablemate.dir/settings.o -o timetablemate -rdynamic /usr/lib/libkdeui.so.5.6.0 /usr/lib/libkparts.so.4.6.0 /usr/lib/libplasma.so.3.0.0 /usr/lib/libktexteditor.so.4.6.0 /usr/lib/libkrosscore.so.4.6.0 -lkwebkit /usr/lib/libkparts.so.4.6.0 /usr/lib/libkio.so.5.6.0 /usr/lib/libQtNetwork.so /usr/lib/libnepomukutils.so.4.6.0 /usr/lib/libnepomuk.so.4.6.0 -lsoprano /usr/lib/libkdeui.so.5.6.0 /usr/lib/libQtGui.so /usr/lib/libQtSvg.so /usr/lib/libkdecore.so.5.6.0 /usr/lib/libQtCore.so -lpthread /usr/lib/libQtDBus.so /usr/lib/libQtScript.so /usr/lib/libQtXml.so
/usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld: cannot find -lkwebkit
collect2: ld returned 1 exit status

All webkit dependencies seem to be installed. With KDE 4.5 and older it works.

Report

C

fpuelz

8 years ago

The "CMakeLists.txt" for TimetableMate is bad. Instead of

target_link_libraries( timetablemate ... kwebkit )

it should be
target_link_libraries( timetablemate ... ${KDE4_WEBKIT_LIBS} )

Then it compiles and works again :)
Will be in the next version.

Report

buschmann23

8 years ago

Thank you, now it works. :)

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 Base: 4 x 5.0 Ratings
Be the first to comment
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
FollowByWhiteRabbit
Mar 02 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 MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.11 beta
updated Jan 17 2013
added Jun 03 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 13