Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Initial Hug Concept #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/aiko/system_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import aiko.button
from aiko.common import map_value
import aiko.oled as oled
import aiko.mqtt as mqtt
import aiko.services as services
import aiko.upgrade

import configuration.system_ui
Expand Down Expand Up @@ -91,11 +93,13 @@ def console_log_feature():
oled.oleds_show_log()
oled.oleds_system_use(False)

hugs_message = [ "", "hey Leon,", "Let's figure", "something out ?", "... andyg :)" ]
hugs_message = [ "", "hey Andy,", "I figured", "something out !", "... techman83 :)" ]

def hugs_feature():
oled.oleds_system_use(True)
oled.oleds_show_log(hugs_message)
# TODO: Make recipient configurable?
mqtt.client.publish(services.topic_out + "/hugs", "Leon")
oled.oleds_system_use(False)

features = [
Expand Down