Mercurial > code > home > repos > homeauto
view service/shuttlepro/gui.js @ 1753:add4ce853035
another sensor
author | drewp@bigasterisk.com |
---|---|
date | Sun, 05 May 2024 17:59:05 -0700 |
parents | 57ae7dc0f417 |
children |
line wrap: on
line source
(function () { function abbreviateTrig(trig) { // prefixes, abbreviations, make everything into links, etc return trig; } var model = { current: ko.observable("...") }; model.refreshGraph = function() { $.ajax({ url: "graph", success: function(data) { model.current(abbreviateTrig(data)); } }); }; model.refreshGraph(); ko.applyBindings(model); })();