Esempio n. 1
0
	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]))
Esempio n. 2
0
	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"]))
Esempio n. 3
0
 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]))