diff --git a/src/py/bbctrl/Web.py b/src/py/bbctrl/Web.py index bfc8dab..827d71c 100644 --- a/src/py/bbctrl/Web.py +++ b/src/py/bbctrl/Web.py @@ -611,11 +611,12 @@ class RotaryHandler(bbctrl.APIHandler): log = self.get_log('RotaryHandler') try: - onefinity_defaults_path = bbctrl.get_resource('onefinity_defaults.json') + onefinity_defaults_path = bbctrl.get_resource('http/onefinity_defaults.json') + template_path = bbctrl.get_resource('http/config-template.json') + with open(onefinity_defaults_path, 'r') as f: defaults = json.load(f) - template_path = bbctrl.get_resource('config-template.json') with open(template_path, 'r') as f: template = json.load(f) diff --git a/src/resources/config-template.json b/src/resources/config-template.json index c7e5410..dc3d01d 100644 --- a/src/resources/config-template.json +++ b/src/resources/config-template.json @@ -246,6 +246,11 @@ "index": "0123", "default": [{ "axis": "X" }, { "axis": "Y" }, { "axis": "Z" }, { "axis": "A" }], "template": { + "axis": { + "type": "enum", + "values": ["X", "Y", "Z", "A", "B", "C"], + "default": "X" + }, "min-soft-limit": { "type": "float", "default": 0