Mercurial > code > home > repos > homeauto
annotate service/shuttlepro/gui.js @ 1748:d012c53c5ae8
powereagle now registers a hostname with dhcp so we don't have to hunt for it
author | drewp@bigasterisk.com |
---|---|
date | Sat, 23 Mar 2024 14:57:59 -0700 |
parents | 57ae7dc0f417 |
children |
rev | line source |
---|---|
130 | 1 (function () { |
2 function abbreviateTrig(trig) { | |
3 // prefixes, abbreviations, make everything into links, etc | |
4 return trig; | |
5 } | |
6 | |
7 var model = { | |
8 current: ko.observable("...") | |
9 }; | |
10 model.refreshGraph = function() { | |
11 $.ajax({ | |
12 url: "graph", | |
13 success: function(data) { | |
14 model.current(abbreviateTrig(data)); | |
15 } | |
16 }); | |
17 }; | |
18 model.refreshGraph(); | |
19 ko.applyBindings(model); | |
20 })(); |