- Show IO status indicators on configuration pages.
- Check that axis dimensions fit path plan dimensions.
- Show machine working envelope in path plan viewer.
+ - Don't reload browser view on reconnect unless controller has reloaded.
## v0.3.28
- Show step rate on motor configuration page.
errorTimeoutStart: 0,
errorShow: false,
errorMessage: '',
- reloadOnConnect: false,
confirmUpgrade: false,
confirmUpload: false,
firmwareUpgrading: false,
},
- connected: function () {
- if (this.reloadOnConnect) {
- if (typeof this.hostname != 'undefined' &&
- String(location.hostname) != 'localhost')
- location.hostname = this.hostname;
- location.reload(true);
- } else this.update();
- },
-
-
- disconnected: function () {this.reloadOnConnect = true},
+ connected: function () {this.update()},
update: function () {this.update()},
delete e.data.message;
}
+ // Check for session ID change on controller
+ if ('sid' in e.data) {
+ if (typeof this.sid == 'undefined') this.sid = e.data.sid;
+
+ else if (this.sid != e.data.sid) {
+ if (typeof this.hostname != 'undefined' &&
+ String(location.hostname) != 'localhost')
+ location.hostname = this.hostname;
+ location.reload(true);
+ }
+ }
+
update_object(this.state, e.data, false);
this.$broadcast('update');
import logging
import traceback
import copy
+import uuid
import bbctrl
self.set_callback('metric', lambda name: 1 if self.is_metric() else 0)
self.set_callback('imperial', lambda name: 0 if self.is_metric() else 1)
+ self.set('sid', str(uuid.uuid4()))
+
self.reset()