def index(self, **kwargs): sw_version = get_version() return render_template("index.html", sw_version = sw_version, current_time = datetime.datetime.now(), os_info = ', '.join(platform.uname()[:4]))
def index(self, **kwargs): sw_version = get_version() return render_template("index.html", sw_version = sw_version, current_time = datetime.now().strftime("%A, %d. %B %Y %I:%M%p"), os_info = ', '.join(platform.uname()[:4]), notify_color= subprocess.check_output(["tail", "-n", "1", "indicator_light"]))
def index(self, **kwargs): sw_version = get_version() return render_template("index.html", sw_version=sw_version, current_time=datetime.datetime.now(), os_info=', '.join(platform.uname()[:4]))