From 61d8f5abac7299ef5bbee8bb12d82ff7ed4177f8 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Mon, 21 Aug 2017 14:04:06 +0200 Subject: [PATCH] DASH: SVG graphical view (1st version) --- python_suite/dashboard/dashboard.py | 5 + .../dashboard/static/gview/cooling.svg | 418 ++++++++++++++++++ 2 files changed, 423 insertions(+) create mode 100644 python_suite/dashboard/static/gview/cooling.svg diff --git a/python_suite/dashboard/dashboard.py b/python_suite/dashboard/dashboard.py index 3ffcc33..927a688 100755 --- a/python_suite/dashboard/dashboard.py +++ b/python_suite/dashboard/dashboard.py @@ -105,6 +105,11 @@ def list_pvs(page): return abort(404, 'Page not found') return {'config': CONFIG, 'req_page': page} +@route('/gview/') +@view('gview.jinja2') +def gview(name): + return {'config': CONFIG, 'svg': name} + @route('/api/values.json') def index(): return CONFIG diff --git a/python_suite/dashboard/static/gview/cooling.svg b/python_suite/dashboard/static/gview/cooling.svg new file mode 100644 index 0000000..0c45c04 --- /dev/null +++ b/python_suite/dashboard/static/gview/cooling.svg @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + Huber CC-405 + + deg C + 14.00 + + + + + + + + + + + + + + T + T + l/min + 0.000 + l/min + 0.000 + + deg C + 14.00 + + + deg C + 14.00 + + + + + + + + rpm + 0000 + + PRESTO Heatsink + + + + + + + -- 2.43.0