Mercurial > code > home > repos > homeauto
changeset 475:b264ca970aba
refactor common viewer setup
Ignore-this: bfb64bb135568d6a48ade6ab48052f34
author | drewp@bigasterisk.com |
---|---|
date | Sat, 20 Apr 2019 23:53:43 -0700 |
parents | 1d2817cb9a6f |
children | e1f33b9fb3df |
files | service/rfid_pn532_py/index.html service/rfid_pn532_py/requirements.txt |
diffstat | 2 files changed, 8 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/service/rfid_pn532_py/index.html Sat Apr 20 23:53:04 2019 -0700 +++ b/service/rfid_pn532_py/index.html Sat Apr 20 23:53:43 2019 -0700 @@ -7,29 +7,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="/lib/polymer/1.0.9/webcomponentsjs/webcomponents.min.js"></script> <script src="/lib/require/require-2.3.3.js"></script> - <script> - requirejs.config({ - paths: { - "streamed-graph": "/rdf/streamed-graph", - "quadstore": "/rdf/quadstore", - "async-module": "/lib/async/80f1793/async", - "async": "/lib/async/80f1793/async", - "jsonld-module": "/lib/jsonld.js/0.4.11/js/jsonld", - "jsonld": "/lib/jsonld.js/0.4.11/js/jsonld", - "rdfstore": "/lib/rdf_store/0.9.7/dist/rdfstore", - "moment": "/lib/moment.min", - "underscore": "/lib/underscore-1.5.2.min", - } - }); - </script> - <script> - window.NS = { - dev: 'http://projects.bigasterisk.com/device/', - room: 'http://projects.bigasterisk.com/room/', - rdfs: 'http://www.w3.org/2000/01/rdf-schema#', - sensor: 'http://bigasterisk.com/homeauto/sensor/', - }; - </script> + <script src="/rdf/common_paths_and_ns.js"></script> <link rel="import" href="rfid-console.html"> <style> .served-resources { @@ -45,6 +23,12 @@ <body> <rfid-console></rfid-console> + <template id="t" is="dom-bind"> + <streamed-graph url="graph/events" graph="{{graph}}"></streamed-graph> + <div id="out"></div> + <script type="module" src="/rdf/streamed_graph_view.js"></script> + </template> + <div class="served-resources"> <a href="stats/">/stats/</a> <a href="graph">/graph</a>
--- a/service/rfid_pn532_py/requirements.txt Sat Apr 20 23:53:04 2019 -0700 +++ b/service/rfid_pn532_py/requirements.txt Sat Apr 20 23:53:43 2019 -0700 @@ -1,7 +1,7 @@ docopt rdflib-jsonld==0.4.0 rdflib==4.2.2 -https://projects.bigasterisk.com/rdfdb/rdfdb-0.7.0.tar.gz +https://projects.bigasterisk.com/rdfdb/rdfdb-0.8.0.tar.gz git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93#egg=scales influxdb==3.0.0 https://github.com/drewp/cyclone/archive/python3.zip