no image processing on main
remove the weather scraper call from the inky image module
This commit is contained in:
		| @@ -518,12 +518,12 @@ class Inkycal: | |||||||
|     def _optimize_im(image, threshold=220): |     def _optimize_im(image, threshold=220): | ||||||
|         """Optimize the image for rendering on ePaper displays""" |         """Optimize the image for rendering on ePaper displays""" | ||||||
|  |  | ||||||
|         buffer = numpy.array(image.convert('RGB')) |         #buffer = numpy.array(image.convert('RGB')) | ||||||
|         red, green = buffer[:, :, 0], buffer[:, :, 1] |         #red, green = buffer[:, :, 0], buffer[:, :, 1] | ||||||
|  |  | ||||||
|         # grey->black |         # grey->black | ||||||
|         buffer[numpy.logical_and(red <= threshold, green <= threshold)] = [0, 0, 0] |         #buffer[numpy.logical_and(red <= threshold, green <= threshold)] = [0, 0, 0] | ||||||
|         image = Image.fromarray(buffer) |         #image = Image.fromarray(buffer) | ||||||
|         return image |         return image | ||||||
|  |  | ||||||
|     def calibrate(self): |     def calibrate(self): | ||||||
|   | |||||||
| @@ -6,7 +6,6 @@ Copyright by aceinnolab | |||||||
| """ | """ | ||||||
|  |  | ||||||
| from inkycal.modules.template import inkycal_module | from inkycal.modules.template import inkycal_module | ||||||
| from inkycal.modules.inkycal_openweather_scrape import get_scraped_weatherforecast_image |  | ||||||
| from inkycal.custom import * | from inkycal.custom import * | ||||||
|  |  | ||||||
| from inkycal.modules.inky_image import Inkyimage as Images | from inkycal.modules.inky_image import Inkyimage as Images | ||||||
| @@ -69,9 +68,6 @@ class Inkyimage(inkycal_module): | |||||||
|         print(f'{__name__} loaded') |         print(f'{__name__} loaded') | ||||||
|  |  | ||||||
|     def generate_image(self): |     def generate_image(self): | ||||||
|         """Call the openweather scraper""" |  | ||||||
|         _,_ = get_scraped_weatherforecast_image() |  | ||||||
|          |  | ||||||
|         """Generate image for this module""" |         """Generate image for this module""" | ||||||
|  |  | ||||||
|         # Define new image size with respect to padding |         # Define new image size with respect to padding | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 mrbwburns
					mrbwburns