Giter Site home page Giter Site logo

timschneeb / onboard-plasmoid Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.58 MB

A KDE plasmoid that displays live local telemetry data about the train you're sitting in

License: GNU General Public License v3.0

CMake 12.88% C++ 69.96% C 1.71% QML 12.99% Shell 2.46%
bahn deutsche-bahn ice-portal onboard train travel kde plasma plasmoid public-transport wifionice

onboard-plasmoid's Introduction

onboard-plasmoid

Displays telemetry data about your current train trip in a plasmoid, if you are connected to a supported WIFI hotspot on the train.

In the panel:

screenshot-panel

On the desktop:

screenshot-desktop

Supported providers

  • WIFIonICE: IC/EC/ICE trains (Germany)

Installation

Arch Linux

Install onboard-plasmoid-git from the AUR:

yay -S onboard-plasmoid-git

Compile from sources

Install dependencies

Configure cmake project

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. 

Compile sources

make

Install CLI and plasmoid

sudo make install

If you are upgrading to a newer version and have already added the plasmoid to your panel or desktop, you also need to restart Plasma:

kquitapp5 plasmashell; kstart5 plasmashell

Usage

Plasmoid

Right-click your panel or desktop, select 'Add widgets' and choose the plasmoid called 'Onboard' from the list.

This plasmoid has a dynamic width and should be placed in front of a spacer if used in the panel. It will turn invisible and shrink in size a bit if you are not connected to a supported WIFI hotspot.

Please check this screenshot for a recommended layout choice: screenshot-full My panel uses the following widgets: Application Launcher | Virtual desktop pager | Onboard plasmoid | SPACER | Task manager | SPACER | System tray | Clock

I'm using the Papirus icon theme which has better looking arrows than the default one.

The plasmoid is configurable and also supports a test mode for local testing with saved API responses: screenshot-config

CLI

The plasmoid is bundled with a simple CLI application that can be used to monitor the train status within the terminal.

onboard -tn
Distance since start:     233.2km
Distance since last stop: 19.2km
Total distance:           467.8km
Line number:              ICE 1556
Destination:              Wiesbaden Hbf (8000250)

Next station:             Eisenach (8010097)
Remaining distance:       27.0km
Arriving on platform:     5
Scheduled arrival time:   02 Sep 2023 16:46:00 +0200
Actual arrival time:      02 Sep 2023 16:47:00 +0200
Scheduled departure time: 02 Sep 2023 16:48:00 +0200
Actual departure time:    02 Sep 2023 16:49:00 +0200

Credits

onboard-plasmoid's People

Contributors

timschneeb avatar

Stargazers

Neon avatar  avatar Patrick Hanft avatar Coelacanthus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.