Git Product home page Git Product logo

woistderwagen's Introduction

WoIstDerWagen

WoIstDer Wagen ist ein Twitter Bot, der die Frage beantwortet, wo der Wagen eines Zugs steht. Schicke Ihm einfach einen Tweet. z.B.

@WoIstDerWagen #EC177 Berlin Wagen 254

und der Bot schickt dir nach ca.2-3 Minuten eine Antwort zurück.

Das Ganze ist noch sehr experimentell und wir übernehmen keine Gewähr.

Bekannte Probleme sind unter:

https://github.com/tabacha/WoIstDerWagen/issues

zu finden.

Solltest du ein neues Problem entdecken, hinterlasse dort bitte einen neuen Issue.

woistderwagen's People

Contributors

tabacha avatar weyhmueller avatar

Stargazers

Bernd Arnold avatar -drik S. avatar Frank Kleine avatar Markus Bergholz avatar Alexey Valikov avatar

Watchers

James Cloos avatar  avatar  avatar Patrick Müller avatar

woistderwagen's Issues

Fehler bei Anfrage ohne Bahnhof

Traceback (most recent call last):
File "main.py", line 34, in
txt='@' + mention.author.screen_name + ' ' + msgParse.answer(question, cnx)
File "/home/sven/git/WoIstDerWagen/pythonBot/msgParse.py", line 57, in answer
return wagenreihung.anfrage(cnx, zugArt, zugNr, bahnhof, waggonNr)
File "/home/sven/git/WoIstDerWagen/pythonBot/wagenreihung.py", line 34, in anfrage
rtn=live_api.getLiveData(zugArt+' '+zugNr, bahnhof)
File "/home/sven/git/WoIstDerWagen/pythonBot/live_api.py", line 21, in getLiveData
url="https://open-api.bahn.de/bin/rest.exe/location.name?authKey="+config.API_KEY+"&lang=de&input="+station+"&format=json"
TypeError: Can't convert 'NoneType' object to str implicitly

2016-07-24 16:07:13,669 [INFO] main: Starting WoIstDerWagen Twitter bot with pid 26946
2016-07-24 16:07:14,211 [INFO] main: ask twitter for new tweets since 757191401360818176
2016-07-24 16:07:14,449 [INFO] main: Tweet 757207491583279104 from JumpUp1991, Text: @WoIstDerWagen ICE 614 Wagen 21
2016-07-24 16:07:14,449 [INFO] msgParse: msg=" ICE 614 Wagen 21"
2016-07-24 16:07:14,467 [INFO] wagenreihung: Art: ICE Nr: 614 Bhf: None Wagen 21

MySQL Connection not available

Traceback (most recent call last):
File "main.py", line 34, in
txt='@' + mention.author.screen_name + ' ' + msgParse.answer(question, cnx)
File "/home/sven/git/WoIstDerWagen/pythonBot/msgParse.py", line 56, in answer
cursor = cnx.cursor()
File "/opt/python3.3/lib/python3.4/site-packages/mysql/connector/connection.py", line 807, in cursor
raise errors.OperationalError("MySQL Connection not available.")
mysql.connector.errors.OperationalError: MySQL Connection not available.

Doppelt Antwort erhalten

Bisher nur einmal vorgekommen, aber mir wurde heute im Abstand von 2 Minuten die gleiche Antwort (abgesehen von der Zeit seit/bis zur Abfahrt) doppelt gesendet.

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.