From 6b490cb28995a6148ffd71813abfbcb3047e8517 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 24 Feb 2018 01:14:21 +0000 Subject: [PATCH] - Added bed and hotend temperature values --- r0b3bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/r0b3bot.py b/r0b3bot.py index b37c139..fc3a8ef 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -102,10 +102,15 @@ async def printpic(ctx): time_elapsed = "%s Hours %s Minutes" % (print_hours, print_min) time_remaining = "%s Hours %s Minutes" % (print_hoursleft, print_minleft) + printer_bed = "%s°C" % (octoapi.get_printer_dict()["temperature"]["bed"]["actual"]) + printer_hotend = "%s°C" % (octoapi.get_printer_dict()["temperature"]["tool0"]["actual"]) + embed = discord.Embed(title="R0b3's 3D Printer Status", description="File Name: " + print_filename, color=0xF5A623) embed.add_field(name="Percent Complete: ", value=str(print_completion) + "%") embed.add_field(name="Time Elapsed: ", value=time_elapsed) embed.add_field(name="Time Remaining: ", value=time_remaining) + embed.add_field(name="Bed Temp.: ", value=printer_bed) + embed.add_field(name="Hotend Temp.: ", value=printer_hotend) await ctx.send(embed=embed) @bot.command()