diff --git a/hydrobot_def.json b/hydrobot_def.json new file mode 100644 --- /dev/null +++ b/hydrobot_def.json @@ -0,0 +1,263 @@ +{ + "devices" : [ + { + "id" : "0x00", + "name" : "master", + "display" : "Master", + "class" : "None" + }, + { + "id" : "0x01", + "name" : "airsense", + "display" : "AirSense", + "class" : "AirSenseModule" + }, + { + "id" : "0x02", + "name" : "relaydrive", + "display" : "RelayDrive", + "class" : "RelayDriveModule", + "io" : [ + { + "name" : "input_1", + "type" : "input", + "sensor_num" : "1", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_2", + "type" : "input", + "sensor_num" : "2", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_3", + "type" : "input", + "sensor_num" : "3", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_4", + "type" : "input", + "sensor_num" : "4", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_5", + "type" : "input", + "sensor_num" : "5", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_6", + "type" : "input", + "sensor_num" : "6", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_7", + "type" : "input", + "sensor_num" : "7", + "functions" : [ + "digital_in", + "freq_in" + ] + }, + { + "name" : "input_8", + "type" : "input", + "sensor_num" : "8", + "functions" : [ + "digital_in", + "freq_in" + ] + } + ] + }, + { + "id" : "0x03", + "name" : "watersense", + "display" : "WaterSense", + "class" : "WaterSenseModule" + }, + { + "id" : "0x04", + "name" : "protomodule", + "display" : "ProtoModule", + "class" : "ProtoModule" + } + ], + "data_keys" : [ + { + "key" : "0x0001", + "name" : "digital_in", + "display" : "Digital Input", + "units" : "bool" + }, + { + "key" : "0x0002", + "name" : "freq_in", + "display" : "Frequency Input", + "units" : "Hz" + }, + { + "key" : "0x0003", + "name" : "analog_in", + "display" : "Analog Input", + "units" : "V" + }, + { + "key" : "0x0004", + "name" : "digital_out", + "display" : "Digital Output", + "units" : "bool" + }, + { + "key" : "0x0005", + "name" : "pwm_out", + "display" : "PWM Output", + "units" : "%Duty" + }, + { + "key" : "0x0006", + "name" : "analog_out", + "display" : "Analog Output", + "units" : "V" + }, + { + "key" : "0x0007", + "name" : "air_temp", + "display" : "Air Temp", + "units" : "degC" + }, + { + "key" : "0x0008", + "name" : "air_humidity", + "display" : "Air Humidity", + "units" : "%RH" + }, + { + "key" : "0x0009", + "name" : "air_pressure", + "display" : "Air Pressure", + "units" : "hPa" + }, + { + "key" : "0x000A", + "name" : "ambient_light", + "display" : "Ambient Light", + "units" : "lux" + }, + { + "key" : "0x000B", + "name" : "water_temp", + "display" : "Water Temp", + "units" : "degC" + }, + { + "key" : "0x000C", + "name" : "water_level", + "display" : "Water Level", + "units" : "%Full" + }, + { + "key" : "0x000D", + "name" : "ec", + "display" : "Conductivity", + "units" : "uS" + }, + { + "key" : "0x000E", + "name" : "ph", + "display" : "pH", + "units" : "pH" + }, + { + "key" : "0x0100", + "name" : "can_id", + "display" : "CAN ID", + "units" : "hex" + }, + { + "key" : "0x0101", + "name" : "data_rate", + "display" : "Data Rate", + "units" : "seconds" + }, + { + "key" : "0x0102", + "name" : "led_brightness", + "display" : "LED Brightness", + "units" : "%" + }, + { + "key" : "0x0103", + "name" : "input", + "display" : "Input", + "units" : "" + }, + { + "key" : "0x0104", + "name" : "output", + "display" : "Output", + "units" : "" + } + ], + + "command_keys" : [ + { + "key" : "0x00", + "name" : "e_stop", + "display" : "E-Stop", + "units" : "bool" + }, + { + "key" : "0x01", + "name" : "silence_bus", + "display" : "Silence Bus", + "units" : "bool" + }, + { + "key" : "0x10", + "name" : "set_output", + "display" : "Set Output", + "units" : "Data Key" + }, + { + "key" : "0x11", + "name" : "get_data", + "display" : "Get Data", + "units" : "Data Key" + }, + { + "key" : "0x12", + "name" : "config", + "display" : "Config", + "units" : "Data Key" + }, + { + "key" : "0x13", + "name" : "calibrate", + "display" : "Calibrate", + "units" : "Data Key" + } + ] +}