Update date and add requirements.

This commit is contained in:
Pedro de Oliveira 2020-05-03 22:24:23 +01:00
parent 578d681d80
commit addc7fef6b
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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'))

View File

@ -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