vigonotion / pygti Goto Github PK
View Code? Open in Web Editor NEWaccess public transport information in hamburg, germany.
License: Apache License 2.0
access public transport information in hamburg, germany.
License: Apache License 2.0
I know from a reliable source ( ;-) ) that older GTI API versions will soon be ignored or switched off.
I would therefore be happy if the current GTI version is used.
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
Hello,
I just discovered your project and thought it would be great if there would be an integration for HA.
Is it maybe possible that you write an integration for HA?
I think I can't help yout with it, because I have no programming experience. Maybe I can assistant during tests or something else.
Thank you in advance.
Greetings from Hamburg.
When using the repo with Python3.8 the aiohttp library throws a "RuntimeError: Event loop is closed" when operation has ended.
It does not the affect the correct functionality of the program. It just clusters the output of it.
The error and a possible workaround is described here:
iojw/socialscan#13
We should have an eye on the next aiohttp lib update and update our requirements accordingly
The example of the getTrackCoordinates() requests returns an error.
Steps to reproduce:
pip install -r requirements
python example.py
Error
Example 12: getTrackCoordinates()
Traceback (most recent call last):
File ".\examples.py", line 218, in
asyncio.run(main())
File "c:\python38\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "c:\python38\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File ".\examples.py", line 192, in main
tc = await gti.getTrackCoordinates(payload)
File "C:\Users\finno\Documents\Github\pygti\pygti\gti.py", line 58, in getTrackCoordinates
response = await self.auth.request(
File "C:\Users\finno\Documents\Github\pygti\pygti\auth.py", line 75, in request
raise GTIError(return_code, error_text, error_dev_info)
pygti.exceptions.GTIError: ('ERROR_TEXT', 'Bei der Verarbeitung der Anfrage ist ein technisches Problem aufgetreten.', 'Internal server error')
I just looked into the documentation and saw that they updated the version of the API in March, but updating the version to 38 in the payload did not help. i also used the payload from the doc (2.11.6 p. 71), just without the dots at the end. That didn't work either.
I don't really understand the usage of this function so i don't know where to look next...
API version 38 was released in march.
Question:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.