f5c7bf8e9e
Add snow emoji for precipitation when it's snowing
...
Also added dict for all emojis
2020-12-01 08:14:30 +01:00
fbb2c65fd0
Fixed bug where subscription job did not query weather
...
Also added city name in response
2020-09-25 16:24:22 +02:00
5e598f3e4f
Added current weather for openweathermap
2020-09-24 20:03:16 +02:00
4f403561ba
Made conversation nicer
...
Messages now get deleted and deleted for a smoother experience.
Other small changes:
- States as constants
- String formatting with f-string-literals
2020-09-24 19:34:29 +02:00
d6debf6a46
Added push_feature for weather
...
Enables user to get weather information every day at a set time for a set city
City and time can be changed and the subscription can be deleted.
Formatting can be optimized
2020-09-24 11:41:17 +02:00
172efd7974
Merge branch 'master' into openweathermap
2020-09-24 11:23:00 +02:00
0ad11a4a20
Merge branch 'restructuring' into master
2020-09-24 11:17:24 +02:00
c1ccb19766
Deleted unnecessary code in bot.py
...
All command handling stuff already was in own files. Now it is deleted from bot.py
2020-09-24 11:12:57 +02:00
1b6afde312
Rain in hourly weather now displayed correctly
...
Was a dict conntaining '1h' as key. The value for this key is now used.
Also renamed get_weather() to query_weather() as it is not a getter but querying the api.
2020-09-24 11:03:16 +02:00
f6d0db3f41
Some code tweaks and improvements
...
str-function for weather now more modular
daily weather for first two days is not included anymore
Fixed bug: each daily weather now includes the real temperatures, not the ones from the last day
2020-09-19 19:21:26 +02:00
e623b317c9
Fixed city search case-sensitive
...
Closes #2
2020-09-19 13:00:30 +02:00
bcdf9a81a3
Added OpenWeatherMap API as new command
...
Now gives hourly and daily weather information for every city listed in the included list.
2020-09-18 22:36:37 +02:00
7a24a127c2
Restructured files
...
Every command handler and related functions are now in seperate files
Also made a seperate exception for not found weather station
2020-09-14 20:41:54 +02:00
b82dba3a9f
Reverted renaming of function call
...
Searching a weather station with vvs_station_searching is likely to fail..
2020-05-12 22:46:15 +02:00
db06e812ee
Added ability to query for weather
...
Uses meteomedia.de and a list of stations and their IDs to reply a fancy picture url with weather information.
2020-05-12 22:29:44 +02:00
bb1a7ce99a
Added __name__=__main__ for easier startup
...
Also made replies silent
2020-05-12 22:27:47 +02:00
JuliusFreudenberger
3510c87e4d
Make destination filter really case insensitive
...
Closes #1
2019-11-06 11:19:55 +01:00
JuliusFreudenberger
9f19440f9b
Message for selecting stations is now deleted after choice
...
this makes the chat shorter if a first query matched many possible
stations
2019-10-18 12:35:58 +02:00
JuliusFreudenberger
c11d324588
Added station name in first message
...
the name is parsed from the first departure information
2019-10-18 12:34:30 +02:00
JuliusFreudenberger
1077d9acc4
Added parentheses for delay
...
The delay is directly calculated in the departure time, so the delay is
now given in parentheses to make that clear
2019-10-18 12:33:11 +02:00
JuliusFreudenberger
7ee9e2a9f1
Now supports ambiguous stations.
...
When multiple stations are found, the user is presented with buttons to
chosse from. The arguments entered before will be preserved
2019-10-17 20:19:37 +02:00
JuliusFreudenberger
0d92c0abe6
Further externalization and exceptions
...
some more methods for easier accessing the steps done to give the answer
now also includes exeptions with handlers
2019-10-17 19:03:09 +02:00
JuliusFreudenberger
86438abdec
Externalized processing of requests to another method
...
Now it is easier to get the finished messages and send it if no reply is
possible
2019-10-17 16:42:14 +02:00
JuliusFreudenberger
0e08ae8b2b
removed unnecessary test method
2019-10-17 14:37:11 +02:00
JuliusFreudenberger
21a9da3684
Parsing args now based on regex; implemented filter by line
...
Implementing new arguments is now much easier!
Also user can now filter by line
2019-10-16 19:59:13 +02:00
JuliusFreudenberger
ce24dec0c2
Used wrong query term beacuse self. was missing
...
🤦 , querying for a method does not work obviously
2019-10-16 14:18:40 +02:00
JuliusFreudenberger
97f87cc9cc
Fixed error handling for unknown stations
2019-10-16 12:37:56 +02:00
JuliusFreudenberger
b23a86cd90
Fixed bug when query term was not complete when no destination was given
...
the last char was cut before
2019-10-16 12:36:14 +02:00
JuliusFreudenberger
274c5b1b48
Fixed bug when station containing "to" was treated as separator
2019-10-16 12:35:00 +02:00
JuliusFreudenberger
78c337a8eb
Added object for query; added option to filter by destination
...
Parsing and getting arguments now is much easier with object
if user additionally sends "to {destination}" the departures are
filtered to match only this destination (case-insensitive)
2019-10-15 19:42:35 +02:00
JuliusFreudenberger
9338990491
Added check for empty query response
...
Now an unknown station is reported to the user and no longer throws an
error.
2019-10-15 19:26:22 +02:00
JuliusFreudenberger
80c2fb4b9d
Renamed function 'get_stations_by_search_query'
...
renamed to 'get_station_id_list'
2019-10-15 19:17:57 +02:00
JuliusFreudenberger
69e5285b88
Added ability to give desired number of departures
...
the input is tested for the last argument: if the it is a number, it is
used as this number
2019-10-14 13:22:56 +02:00
JuliusFreudenberger
ccc9577716
Added first functional code
...
ability to insert a station_id via inline message; ability to display
departures for specified station_name or station_id in direct chat
2019-10-11 22:40:28 +02:00
JuliusFreudenberger
87b2b5c875
Add gitignore
2019-10-11 22:36:50 +02:00