Code cleanup
This commit is contained in:
		| @@ -2,7 +2,7 @@ | |||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
|  |  | ||||||
| """ | """ | ||||||
| RSS module for inkyCal Project | RSS module for InkyCal Project | ||||||
| Copyright by aceisace | Copyright by aceisace | ||||||
| """ | """ | ||||||
|  |  | ||||||
| @@ -57,10 +57,10 @@ class Feeds(inkycal_module): | |||||||
|         raise Exception('config is missing {}'.format(param)) |         raise Exception('config is missing {}'.format(param)) | ||||||
|  |  | ||||||
|     # required parameters |     # required parameters | ||||||
|     self.feed_urls = self.config["feed_urls"].split(",") |     self.feed_urls = config["feed_urls"].split(",") | ||||||
|  |  | ||||||
|     # optional parameters |     # optional parameters | ||||||
|     self.shuffle_feeds = self.config["shuffle_feeds"] |     self.shuffle_feeds = config["shuffle_feeds"] | ||||||
|  |  | ||||||
|     # give an OK message |     # give an OK message | ||||||
|     print('{0} loaded'.format(filename)) |     print('{0} loaded'.format(filename)) | ||||||
|   | |||||||
| @@ -300,10 +300,3 @@ class Inkyimage(inkycal_module): | |||||||
|  |  | ||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|   print('running {0} in standalone/debug mode'.format(filename)) |   print('running {0} in standalone/debug mode'.format(filename)) | ||||||
|  |  | ||||||
|   #a = Inkyimage((480,800), {'path': "https://raw.githubusercontent.com/aceisace/Inky-Calendar/dev_ver2_0/Gallery/logo.png"}) |  | ||||||
|   #a = Inkyimage((480,800), {'path': "https://raw.githubusercontent.com/aceisace/Inky-Calendar/dev_ver2_0/Gallery/logo.png"}) |  | ||||||
|   a = Inkyimage((480, 800), {'path': "/home/pi/Desktop/im/IMG_0475.JPG"}) |  | ||||||
|   a.generate_image() |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user