Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay is printed as NaN #37

Open
ashold7 opened this issue Mar 17, 2019 · 5 comments
Open

Delay is printed as NaN #37

ashold7 opened this issue Mar 17, 2019 · 5 comments

Comments

@ashold7
Copy link

ashold7 commented Mar 17, 2019

Hi,
i installed your software and configured my connections. However the software just states: "has a delay of: NaN" Could u help?

Thank you in advance

@ashold7 ashold7 changed the title Delay is peinted as NaN Delay is printed as NaN Mar 17, 2019
@joachimprinzbach
Copy link
Owner

Could you tell me your connection details?

@ashold7
Copy link
Author

ashold7 commented Mar 21, 2019

This is my config:
{ "token": "xxx", "delay": "1", "connections": [ { "connectionId": "1", "chatId": "-375634915", "start": "Gelnhausen", "destination": "Frankfurt(Main)Hbf", "crawlStart": { "hour": "5", "minute": "01" }, "crawlEnd": { "hour": "10", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "2", "chatId": "-375634915", "start": "Frankfurt(Main)Hbf", "destination": "Gelnhausen", "crawlStart": { "hour": "17", "minute": "01" }, "crawlEnd": { "hour": "20", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "3", "chatId": "-375634915", "start": "Langenselbold", "destination": "Gelnhausen", "crawlStart": { "hour": "17", "minute": "01" }, "crawlEnd": { "hour": "21", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "4", "chatId": "-375634915", "start": "Frankfurt(Main)Süd", "destination": "Frankfurt(Main)Hbf", "crawlStart": { "hour": "5", "minute": "01" }, "crawlEnd": { "hour": "10", "minute": "31" }, "runOnWeekend": true, "minDelay": "1" } ] }

Furthermore it also recognizes Gelnhausen as Gelsenkirchen.

So I basically have four Connection details:
Gelnhausen-Frankfurt (Main) Hbf: Crawl Start: 5:01: Crawl End: 10:01
Frankfurt (Main) Hbf-Gelnhausen: Crawl Start: 17:01: Crawl End: 20:01
Langenselbold-Gelnhausen: Crawl Start: 17:01: Crawl End: 21:01
Frankfurt (Main) Süd-Frankfurt (Main) Hbf: Crawl Start: 5:01: Crawl End: 10:31

@joachimprinzbach
Copy link
Owner

Sorry for the late response, I need to have a closer look. Especially to the problem with Gelsenkirchen.

@joachimprinzbach
Copy link
Owner

The bot uses the autocompletion from https://www.bahn.de/p/view/index.shtml. Can you Enter a more specific station name? Like Gelnhause (Bahnhof) or something? So that it won't autocomplete with Gelsenkirchen (What it should not do anyways)

@ashold7
Copy link
Author

ashold7 commented Mar 29, 2019

It still prints the Delay as NaN and the station still stays Gelsenkirchen:

I chnaged my file to this:
{ "token": "887628908:AAH-IpXaSExwVpeacmKyRqmTn9ni3Y1gO-U", "delay": "1", "connections": [ { "connectionId": "1", "chatId": "-375634915", "start": "Gelnhausen", "destination": "Frankfurt(Main)Hbf", "crawlStart": { "hour": "5", "minute": "01" }, "crawlEnd": { "hour": "10", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "2", "chatId": "-375634915", "start": "Frankfurt(Main)Hbf", "destination": "Gelnhausen", "crawlStart": { "hour": "17", "minute": "01" }, "crawlEnd": { "hour": "20", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "3", "chatId": "-375634915", "start": "Langenselbold", "destination": "Gelnhausen Bahnhof", "crawlStart": { "hour": "16", "minute": "01" }, "crawlEnd": { "hour": "21", "minute": "1" }, "runOnWeekend": true, "minDelay": "1" }, { "connectionId": "4", "chatId": "-375634915", "start": "Frankfurt(Main)Süd", "destination": "Frankfurt(Main)Hbf", "crawlStart": { "hour": "5", "minute": "01" }, "crawlEnd": { "hour": "10", "minute": "31" }, "runOnWeekend": true, "minDelay": "1" } ] }

Just to make it clear, I just changed one name, in order to test it, I tested the change in the defined time window. I furthermore checked that "Gelnhausen" is actually called "Gelnhausen" at bahn.de and not "Gelnhausen Bahnhof" or anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants