Update date and add requirements.
This commit is contained in:
parent
578d681d80
commit
addc7fef6b
|
@ -2,4 +2,4 @@ apixu weather api client
|
|||
|
||||
Dont forget to:
|
||||
|
||||
config supybot.plugins.Apixu.apiKey your_api_key
|
||||
config supybot.plugins.Apixu.apiKey your_api_key
|
|
@ -1,5 +1,5 @@
|
|||
###
|
||||
# Copyright (c) 2019, Pedro de Oliveira
|
||||
# Copyright (c) 2020, Pedro de Oliveira
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
###
|
||||
# Copyright (c) 2019, Pedro de Oliveira
|
||||
# Copyright (c) 2020, Pedro de Oliveira
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -52,7 +52,7 @@ class Apixu(callbacks.Plugin):
|
|||
self.prepend = "8,12weatherstack"
|
||||
|
||||
def __do_request(self, action, arguments):
|
||||
baseurl = "http://api.weatherstack.com/"
|
||||
baseurl = "https://api.weatherstack.com/"
|
||||
response = requests.get(baseurl + action + "?" + urlencode(arguments))
|
||||
return json.loads(response.content.decode('utf-8'))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
###
|
||||
# Copyright (c) 2019, Pedro de Oliveira
|
||||
# Copyright (c) 2020, Pedro de Oliveira
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
|
Loading…
Reference in New Issue