Skip to content

Commit

Permalink
[#11] adaptions regarding displaying temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
kaulketh committed Jan 22, 2019
1 parent 3cb9337 commit 467f942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bot/greenhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def message_values(update):
core_temp = (lib.core + lib.colon_space + core.get_temperature())
update.message.reply_text(lib.msg_temperature.format(
start_time(), temp, hum, core_temp), parse_mode=ParseMode.MARKDOWN)
display.show_core_temp()
return


Expand All @@ -278,6 +279,7 @@ def stop(bot, update):
logging.info('Bot stopped.')
cam_off()
display.show_off()
time.sleep(2)
display.show_core_temp()
update.message.reply_text(lib.msg_stop.format(update.message.from_user.first_name),
parse_mode=ParseMode.MARKDOWN, reply_markup=ReplyKeyboardRemove())
Expand Down
3 changes: 1 addition & 2 deletions bot/peripherals/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def disable_colon(on):

def show_core_temp():
disable_colon(True)
# display.show(core_temp.get_temp_as_digits())
scroll(core_temp.get_temp_as_digits(), 0.2)
display.show(core_temp.get_temp_as_digits())
return


Expand Down

0 comments on commit 467f942

Please sign in to comment.