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
7.8
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

As Arch Linux maintainer, I find the current tarball organization much harder to work with than earlier versions. Please go back to the old system, where everything was included in a single tarball. Arch is a binary distribution, but for addons such as plasmoids, we use source. My script must explicitly list all downloads; it cannot download a script such as packagers.sh which downloads further files. This would create a security hole. So I have to read and modify your packagers.sh script. That's a lot of work.

Report

C

fpuelz

8 years ago

You can simply clone the GIT repository and checkout the version you want:
> git clone git://anongit.kde.org/publictransport
> git tag -l (list versions)
> git checkout <VERSION> (eg. <VERSION> = unstable-0.10-beta7)

Or, if you want it in a tarball with a single command (example for version unstable-0.10-beta7):
> git archive --format=tar --remote=git://anongit.kde.org/publictransport unstable-0.10-beta7 | gzip > publictransport_0.10_beta7.tar.gz
(just as before)

These commands and more are described in the README file of the archive you download here.

Report

cmlr

8 years ago

Thanks, that solves my problem.

Report

buschmann23

8 years ago

Some of the include files are added wrong. They are searched in the system include directories and not in the project directory. They are not installed at compile time. :)

See https://build.opensuse.org/package/view_file?file=include-fixes.patch&package=libpublictransporthelper&project=home%3Abuschmann23%3AKDE4&srcmd5=8660442b311f2295df6d762ec5e0b2ed

Report

C

fpuelz

8 years ago

... now I got it.. you only changed it for the unit tests of the library :) Yes, that's definitely wrong.

These tests aren't needed in a package. Maybe I should put them into a separate GIT branch to exclude them from the normal sources?

Report

buschmann23

8 years ago

If the compilation works, there is no problem for me. :) I could exclude them from the package after compilation has succeed.

Report

C

fpuelz

8 years ago

The library can be installed before compiling the applets/runner/timetablemate. With angle brackets as it is now it needs to ;)

I had the library sources moving around a bit, starting as a sub-directory of the publictransport applet. Therefore I used angle brackets.

But now everything is in one GIT repository in it's own dir, so it should be ok to use double quotes as you suggested. As long as the library doesn't become an extern library, but why should it..

Pros / Cons:
+ Makes it compilable without previously installing the library.
+ Can't get confused with incompatible old library version.
-? Library sources need to be in the same root dir.. No problem I think.

So I'll change it to double quotes :)

Report

hoderlump

8 years ago

OK, those ubuntu packages are working, but up-to-date ones would be nice.

Is it very hard to do them on my own? I have some knowledge in programming but never used the gcc...

Greetz
Johannes

btw: good piece of software, i like especially the aspect of the regular updates!

Report

takanowaka

8 years ago

using checkinstall is probably the easiest way to create package for yourself.. and for missing dependecies use apt-file

i don't have enough time lately so i won't create/upload package till 10.00 stable

Report

C

fpuelz

8 years ago

Hi,
I don't think that creating a package is too hard, but I never did it ;) You need to know the dependencies. The CMakeList.txt files show some dependencies in the target_link_libraries command (eg. libplasma). The old Ubuntu packages might also help you.

I found this link, which explains how to build debian packages: http://www.debian.org/doc/maint-guide/index.en.html.
You don't need to worry about gcc, it's automatically used by make. And the Makefile gets generated by cmake. A call to make install then installs all needed files.
There're INSTALL files in the directories, which explain how to build it on your own (cmake, make, make install).

If you have more questions, just ask :)
And leave a note if you were succesful.

Report

vkmaheshbhat

8 years ago

Wonderful Widget... Really liked it!

Report

misiakdurko

8 years ago

Great widget, thanks!
But please would it be possible to add dynamic data for BRNO?
Or at least fix this: when it downloads from CHAP provider there is only 1 hour interval of departures on the page and widget shows same departures repeatedly but with tomorrow suffix. Then it shows for example only 10 actual departures and next 10 departures displayed arent for next hour but for next day, same hour.
But the best solution would be to have dynamic data. I suggest GoogleMaps provides theese data for Brno and Praha...
Oncemore: great widget, very big potential! Thanks a lot :)

Report

buschmann23

8 years ago

On Fedora 14 the compilation of timetablemate fails:

Quote:
/usr/bin/ld: CMakeFiles/timetablemate.dir/timetablemate.o: undefined reference to symbol 'QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
/usr/bin/ld: note: 'QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)' is defined in DSO /usr/lib64/libQtWebKit.so.4 so try adding it to the linker command line
/usr/lib64/libQtWebKit.so.4: could not read symbols: Invalid operation


This is with KDE SC 4.5 and Qt 4.7.0. PublicTransport version is 0.10 beta 5.

Report

C

fpuelz

8 years ago

This has something to do with DSO linking... I don't understand what.. but it's explained here: http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

To resolve these errors, run cmake and make (or install.sh) one time, then edit build/CMakeCache.txt and run make again (or install.sh).

Modify the line:
CMAKE_EXE_LINKER_FLAGS:STRING=

To read:
CMAKE_EXE_LINKER_FLAGS:STRING=-lQtWebKit

for libpublictransporthelper I needed to change the line to:
CMAKE_EXE_LINKER_FLAGS:STRING=-lplasma

I found this solution on the kde-apps.org page for RecordItNow (in the comments).

Report

buschmann23

8 years ago

Thank you for your efforts. :) I will try it. Building packages for Fedora is quite new land for me... ;-)

Report

C

fpuelz

8 years ago

the errors seem very weird to me...

by the way: I just pushed updates to make applet-flights and applet-graphicaltimetableline compilable with KDE < 4.4 again. You can download the latest version in a tarball using:

> git archive --format=tar --remote=git://anongit.kde.org/publictransport HEAD | gzip > publictransport_head.tar.gz

I'm new to GIT but I really like it more and more :)

Report

buschmann23

8 years ago

plasma-applet-flights needs KDE SC 4.5 or newer:

/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-flights-0.1/flightdeparturelist.cpp: In constructor 'FlightDeparture::FlightDeparture(QGraphicsItem*)':
/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-flights-0.1/flightdeparturelist.cpp:58:10: error: 'class Plasma::Label' has no member named 'setWordWrap'

plasma-applet-graphicaltimetableline needs KDE SC 4.5 for:

/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-graphicaltimetableline-0.1/graphicaltimetableline.cpp: In member function 'virtual void GraphicalTimetableLine::init()':
/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-graphicaltimetableline-0.1/graphicaltimetableline.cpp:114:11: error: 'class Plasma::Label' has no member named 'setWordWrap'

and KDE SC 4.6 for:

/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-graphicaltimetableline-0.1/graphicaltimetableline.cpp: In member function 'virtual void GraphicalTimetableLine::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)':
/usr/src/packages/BUILD/publictransport-0.10_beta5/plasma-applet-graphicaltimetableline-0.1/graphicaltimetableline.cpp:1095:51: error: 'ViewTextColor' is not a member of 'Plasma::Theme'

Report

C

fpuelz

8 years ago

0.10 Beta 7 should build with KDE 4.5.
Next beta should then build with KDE 4.4 again (at least the errors you mentioned here are fixed).

Report

buschmann23

8 years ago

This is with PublicTransport 0.10 Beta 7:

Quote:
/usr/src/packages/BUILD/publictransport-0.10_beta7/plasma_applet_publictransport/journeysearchsuggestionwidget.cpp:108:62: error: 'ButtonFocusColor' is not a member of 'Plasma::Theme'


ButtonFocusColor was first introduced in KDE 4.6.

Report

C

fpuelz

8 years ago

Ok, I'll use Plasma::Theme::HighlightColor for KDE < 4.6. Thanks

Report

C

fpuelz

8 years ago

I'll update the other components to compile with KDE 4.5 again. I only fixed this for the main applet in beta 5..

Report

Robbi1987

8 years ago

you could add bvg.de for Berlin transportation:)

Report

C

fpuelz

8 years ago

It's already in there ;)
Try it: "Location:" => "Germany", "Service Provider:" => "Berliner Verkehrsbetriebe (BVG)".

Report

Finswimmer

8 years ago

is updated

Report

Finswimmer

8 years ago

is updated to beta5

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

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 31