call the openweather scraper from the image module

This commit is contained in:
mrbwburns
2023-11-20 17:29:45 +01:00
parent a0fa33d5e1
commit 6287affb0c
3 changed files with 12 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ Copyright by aceinnolab
"""
from inkycal.modules.template import inkycal_module
from inkycal.modules.inkycal_openweather_scrape import get_scraped_weatherforecast_image
from inkycal.custom import *
from inkycal.modules.inky_image import Inkyimage as Images
@@ -68,6 +69,9 @@ class Inkyimage(inkycal_module):
print(f'{__name__} loaded')
def generate_image(self):
"""Call the openweather scraper"""
_,_ = get_scraped_weatherforecast_image()
"""Generate image for this module"""
# Define new image size with respect to padding