Put the TelegramPush.py file in config/userplugins/hooks/TelegramPush.py and restart pyLoad and fill the bot token and chat ids in the plugin settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.5.2 (default, Nov 23 2017, 16:37:01) | |
[GCC 5.4.0 20160609] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import schiene2 | |
>>> s = schiene2.Schiene2() | |
>>> s.connections('Düsseldorf Hbf', 'Düsseldorf Flingern') | |
[{'products': ['STR'], 'ontime': True, 'time': '0:06', 'arrival': '00:14', 'canceled': False, 'departure': '00:08', 'transfers': 0, 'price': None}, {'products': ['S'], 'ontime': False, 'delay': {'delay_arrival': 15, 'delay_departure': 15}, 'time': '0:02', 'arrival': '00:32', 'canceled': False, 'departure': '00:30', 'transfers': 0, 'price': None}, {'products': ['S'], 'ontime': False, 'delay': {'delay_arrival': 17, 'delay_departure': 17}, 'time': '0:02', 'arrival': '00:39', 'canceled': False, 'departure': '00:37', 'transfers': 0, 'price': None}, {'products': ['Bus'], 'ontime': True, 'time': '0:40', 'arrival': '01:18', 'canceled': False, 'departure': '00:38', 'transfers': 1, 'price': None}, {'products': ['S', 'U', 'Bus'], 'ontime': False, 'delay': {'delay_departu |
I hereby claim:
- I am dominik-th on github.
- I am dthiemermann (https://keybase.io/dthiemermann) on keybase.
- I have a public key whose fingerprint is E076 78D2 0DE2 BE95 D865 9DA3 5EDF E3FD B239 6132
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew cask install --force `brew cask outdated` |