Git Product home page Git Product logo

iceportal-rich-presence's Introduction

iceportal rich presence

Show your current ride in discord via the ICE portal api.

Installation

Download the binary for your operating system from the current release or build it yourself.

How does it work?

It will fetch the current trip info from the ICE portal api every 30 seconds (so you have to be on the WIFIonICE) and publish it to discord. Also the right building series will be shown as an image.

You will be asked at which station you entered the train to show the time you need to arrival in discord. discord rich presence logo

iceportal-rich-presence's People

Contributors

adridevelopsthings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tomsiewert

iceportal-rich-presence's Issues

Image for BR 408 does not exist

There is no image for the series 408:
image
Status response:

{
  "connection": true,
  "serviceLevel": "AVAILABLE_SERVICE",
  "gpsStatus": "VALID",
  "internet": "HIGH",
  "latitude": 50.52263516666667,
  "longitude": 7.629329,
  "tileY": 58,
  "tileX": -141,
  "series": "408",
  "serverTime": 1674046560791,
  "speed": 283,
  "trainType": "ICE",
  "tzn": "ICE8009",
  "wagonClass": "SECOND",
  "connectivity": {
    "currentState": "NO_INFO",
    "nextState": null,
    "remainingTimeSeconds": null
  },
  "bapInstalled": true
}

Thanks to @tomsiewert for telling me that this issue exists.

"Next stop" not updating

I was riding the ICE 373 today from Basel to Bern, and somewhere around Liestal, I got this error:
grafik
The "next stop" in the rich presence also didn't update after that. (I never noticed it update, besides the timestamp)

After this, I tried to restart the application. However, the application told me to check whether I was connected with the ICE Wifi or not. I was connected, though (I tested it by reloading the site https://iceportal.de):
grafik
grafik

OS: Windows 10 Pro (Build 19045.2364)
ICE: 373 Basel-Bern (Complete train journey: Berlin-Interlaken)
Date: 02.01.2023

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.