Coder Social home page Coder Social logo

jupadin / mmm-rnv Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 128 KB

MagicMirror² module to monitor a given station in the Rhein-Neckar-Verkehr (RNV) public transportation network.

License: MIT License

CSS 3.72% JavaScript 96.28%
bus magicmirror magicmirror2 public-transportation rhein-neckar-verkehr rnv train transportation vrn

mmm-rnv's People

Contributors

jupadin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mmm-rnv's Issues

API Verlängerung

Hallo Julian, wir hatten glaube ich vor einem Jahr mal schon Kontakt bzg. deinem MMM-RNV Modul....und der Config.
Hat bis jetzt alles Prima funktioniert bis letztens...da wurde nicht mehr angezeigt im MM. Ich habe daraufhin die RNV angeschrieben udn jetzt haben Sie mir folgendes gesendet per eMail:

hier die Credentials, aus unserem Portal:

Client ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Secret Text: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Ich hoffe, dass ich Ihnen damit weiterhelfen konnte. Die Gültigkeit
des Key wird im System nur verlängert. Der Key ändert sich nicht.

und hier noch meine config:

{
module: 'MMM-RNV',
header: 'RNV Abfahrstmonitor',
position: 'bottom_center',
config: {
updateInterval: "60000",
animationSpeed: "2000",
stationID: "1160", // HD-Bahnhof
numJourneys: "10",
clientID: 'xxxxxxxxxxxxxxxxxxxxxxx',
tenantID: '87xxxxxxxxxxxxxxxxxxxxxxx',
clientSecret: 'xxxxxxxxxxxxxxxxxAyT4gaxxxxxxxxx0',
resourceID: '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
coloredLines: "true",
showLineIcons: "true",
useColorForRealTimeInfo: "true",
showTableHeader: "true",
}
},
Es gibt doch aber noch die resourceID und tenantID

Benötige ich diese dann nicht oder bleibt die auch gleich...wenn ich die beiden Sachen ändere clientID und secret text alias clientSecret wird nichts angezeigt und im MM wird immer angezeigt:

No API credentials provided

Weisst Du woran das liegen kannn?
Über ne Info herzlichen Dank

Gruss
Heisemer

Module stops refreshing, if there was an error

Servus Julian,
tolles Modul.

Kleines Fehlerchen:
Wenn im node_helper der Client Request in den Catch Block in Zeile 166 läuft (z.B. weil es ein Connection Timeout gab), dann stellt das Modul leider seine Arbeit ein, weil das setTimeout nicht mehr durchlaufen wird.

MagicMirror - keine Anzeige

Hallo Julian, ich wollte dein Modul für Magic Mirror nutzen...habe es über console in den module ordner installiert wie beschrieben mit npm install....danach habe ich in der Magicmirror config datei folgendes eingetragen:

{
module: 'MMM-RNV',
header: 'RNV Abfahrstmonitor',
position: 'top_right',
config: {
apiKey: 'Enter your apiKey here',
// or
clientID: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
tenantID: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
clientSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
resourceID: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
},
header: "RNV Abfahrtsmonitor",
stationId: "1585",
numJourneys: "10",
updateInterval: "60000",
animationSpeed: "2000",
coloredLines: "true",
showLineIcons: "true",
useColorForRealTimeInfo: "true",
showTableHeader: "true",
},
API direkt hat mir die RNV nicht zugesendet...nur die ID´s!!

nach einem Start des MM kommt aber nur Lade......

Was mache ich falsch?
Über ne kurze Rückinfo herzlichen Dank

Gruss
Kussel

Modul friert ein - keine Aktualisierung

Moin,
das RNV Modul läuft bei mir soweit gut, nur mehrere Stunden nach einem MagicMirror Refresh erfolgen keine Aktualisierungen mehr. Dann sieht es z.B. so aus:
image
Hast du eine Idee woran das liegen könnte?
Danke und Grüße
Kai

typo and poor description

thanks for the update.
In MMM-RNV.js there is a typo in line 35: "cliendID" instead of "cientID".

Unfortunately the application only shows "Loading" with my credentials from the RNV data hub and is not working.
I received these credentials:
@clientID=ba589733-8724-4f95-b4d0-b9f18a0*****
@TenantID=87cd3c4f-1e0a-4350-889e-3969cd4*****
@clientSecret=JzuJc-4Ed~BXl4w2I.B8JUu.b0GEn*****
@resource=1484212f-edce-452a-aae9-46141ba*****
@scope=https://rnv-dds-sandbox-graphqlextern.azurewebsites.net/user_impersonation
@hostname=https://graphql-sandbox-dds.rnv-online.de

--> oAuthURL == scope?
--> tenantID is not necessary?

please update the description for users without an api key. Thanks.

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.