no image processing on main
remove the weather scraper call from the inky image module
This commit is contained in:
parent
485228e35d
commit
0d8cb6c42a
@ -518,12 +518,12 @@ class Inkycal:
|
||||
def _optimize_im(image, threshold=220):
|
||||
"""Optimize the image for rendering on ePaper displays"""
|
||||
|
||||
buffer = numpy.array(image.convert('RGB'))
|
||||
red, green = buffer[:, :, 0], buffer[:, :, 1]
|
||||
#buffer = numpy.array(image.convert('RGB'))
|
||||
#red, green = buffer[:, :, 0], buffer[:, :, 1]
|
||||
|
||||
# grey->black
|
||||
buffer[numpy.logical_and(red <= threshold, green <= threshold)] = [0, 0, 0]
|
||||
image = Image.fromarray(buffer)
|
||||
#buffer[numpy.logical_and(red <= threshold, green <= threshold)] = [0, 0, 0]
|
||||
#image = Image.fromarray(buffer)
|
||||
return image
|
||||
|
||||
def calibrate(self):
|
||||
|
@ -6,7 +6,6 @@ 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
|
||||
@ -69,9 +68,6 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user