Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gez-homescreen-skill/__init__.py /
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (12 sloc)
550 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from mycroft import MycroftSkill | |
| from mycroft.skills import resting_screen_handler | |
| class PersonalHomescreen(MycroftSkill): | |
| def __init__(self): | |
| MycroftSkill.__init__(self) | |
| @resting_screen_handler("Personalised homescreen") | |
| def handle_homescreen(self, message): | |
| halloween_img = "https://mycroft.ai/wp-content/uploads/2019/02/haloween-Mark-I.png" | |
| background_img = self.settings.get("background_img", halloween_img) | |
| self.gui.show_image(background_img) | |
| def create_skill(): | |
| return PersonalHomescreen() |