From edec81cab7354745ad3081cdecf74ca57a33cc4f Mon Sep 17 00:00:00 2001 From: andrescvargasr Date: Tue, 28 Nov 2023 01:17:15 +0100 Subject: [PATCH] test: update snapshot --- .../__snapshots__/index.test.js.snap | 1801 +++++++++++++---- 1 file changed, 1430 insertions(+), 371 deletions(-) diff --git a/src/__tests__/__snapshots__/index.test.js.snap b/src/__tests__/__snapshots__/index.test.js.snap index 86eb870..ae4e95c 100644 --- a/src/__tests__/__snapshots__/index.test.js.snap +++ b/src/__tests__/__snapshots__/index.test.js.snap @@ -1,8 +1,1195 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`legoino-device-information test Beemos 1`] = ` +Object { + "description": "Bee Monitoring System data result", + "id": "B", + "kind": "Beemos", + "name": "Bee Monistoring System", + "numberLogParameters": 26, + "numberParameters": 52, + "parameters": Array [ + Object { + "description": "External temperature", + "factor": 100, + "label": "A", + "name": "Ext temperature", + "unit": "°C", + "variable": "externalTemperature", + "writable": false, + }, + Object { + "description": "External humidity", + "factor": 100, + "label": "B", + "name": "Ext humidity", + "unit": "%", + "variable": "externalHumidity", + "writable": false, + }, + Object { + "description": "Press", + "factor": 10, + "label": "C", + "name": "Pressure", + "unit": "mbar", + "variable": "pressure", + "writable": false, + }, + Object { + "description": "Luminosity (Arbitrary unit)", + "factor": 1, + "label": "D", + "name": "Luminosity", + "unit": "", + "variable": "luminosity", + "writable": false, + }, + Object { + "description": "Red luminosity (Arbitrary unit)", + "factor": 1, + "label": "E", + "name": "Red", + "unit": "", + "variable": "red", + "writable": false, + }, + Object { + "description": "Green luminosity (Arbitrary unit)", + "factor": 1, + "label": "F", + "name": "Green", + "unit": "", + "variable": "green", + "writable": false, + }, + Object { + "description": "Blue luminosity (Arbitrary unit)", + "factor": 1, + "label": "G", + "name": "Blue", + "unit": "", + "variable": "blue", + "writable": false, + }, + Object { + "description": "Infrared luminosity (Arbitrary unit)", + "factor": 1, + "label": "H", + "name": "Infrared", + "unit": "", + "variable": "infrared", + "writable": false, + }, + Object { + "description": "Latitude", + "factor": 100, + "label": "I", + "name": "Latitude", + "unit": "°", + "variable": "latitude", + "writable": false, + }, + Object { + "description": "Longitude", + "factor": 100, + "label": "J", + "name": "Longitude", + "unit": "°", + "variable": "longitude", + "writable": false, + }, + Object { + "description": "Internal temperature", + "factor": 100, + "label": "K", + "name": "Int temperature", + "unit": "°C", + "variable": "internalTemperature", + "writable": false, + }, + Object { + "description": "Internal humidity", + "factor": 100, + "label": "L", + "name": "Int humidity", + "unit": "%", + "variable": "internalHumidity", + "writable": false, + }, + Object { + "description": "Internal temperature A", + "factor": 100, + "label": "M", + "name": "Int temperature A", + "unit": "°C", + "variable": "internalTemperatureA", + "writable": false, + }, + Object { + "description": "Internal temperature B", + "factor": 100, + "label": "N", + "name": "Int temperature B", + "unit": "°C", + "variable": "internalTemperatureB", + "writable": false, + }, + Object { + "description": "Weight in internal unit", + "factor": 1, + "label": "O", + "name": "Weight internal unit", + "unit": "", + "variable": "weightInternalUnit", + "writable": false, + }, + Object { + "description": "Weight", + "factor": 100, + "label": "P", + "name": "Weight", + "unit": "kg", + "variable": "weight", + "writable": false, + }, + Object { + "label": "Q", + }, + Object { + "label": "R", + }, + Object { + "label": "S", + }, + Object { + "label": "T", + }, + Object { + "label": "U", + }, + Object { + "label": "V", + }, + Object { + "description": "Battery voltage", + "factor": 1000, + "label": "W", + "name": "Battery", + "unit": "V", + "variable": "battery", + "writable": false, + }, + Object { + "description": "Indication showing if the battery is charging", + "factor": 1, + "label": "X", + "name": "Charging", + "unit": "", + "variable": "charging", + "writable": false, + }, + Object { + "description": "Power of Wifi signal", + "factor": 1, + "label": "Y", + "name": "Wifi RSSI", + "unit": "dB", + "variable": "rssi", + "writable": false, + }, + Object { + "description": "Current error code", + "factor": 1, + "label": "Z", + "name": "Error", + "unit": "", + "variable": "error", + "writable": false, + }, + Object { + "description": "Interval in seconds between logs", + "factor": 1, + "label": "AA", + "name": "Logging interval", + "unit": "s", + "variable": "loggingInterval", + "writable": true, + }, + Object { + "description": "Offset to convert weight from internal unit", + "factor": 1, + "label": "AB", + "name": "Weight offset", + "unit": "", + "variable": "weightOffset", + "writable": false, + }, + Object { + "description": "Factor to convert the weight from internal unit", + "factor": 1, + "label": "AC", + "name": "Weight factor", + "unit": "", + "variable": "weightFactor", + "writable": false, + }, + Object { + "label": "AD", + }, + Object { + "label": "AE", + }, + Object { + "label": "AF", + }, + Object { + "label": "AG", + }, + Object { + "label": "AH", + }, + Object { + "label": "AI", + }, + Object { + "label": "AJ", + }, + Object { + "description": "Number of input on gate 1", + "factor": 1, + "label": "AK", + "name": "Gate 1 IN", + "unit": "", + "variable": "gate1In", + "writable": false, + }, + Object { + "description": "Number of output on gate 1", + "factor": 1, + "label": "AL", + "name": "Gate 1 OUT", + "unit": "", + "variable": "gate1Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 2", + "factor": 1, + "label": "AM", + "name": "Gate 2 IN", + "unit": "", + "variable": "gate2In", + "writable": false, + }, + Object { + "description": "Number of output on gate 2", + "factor": 1, + "label": "AN", + "name": "Gate 2 OUT", + "unit": "", + "variable": "gate2Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 3", + "factor": 1, + "label": "AO", + "name": "Gate 3 IN", + "unit": "", + "variable": "gate3In", + "writable": false, + }, + Object { + "description": "Number of output on gate 3", + "factor": 1, + "label": "AP", + "name": "Gate 3 OUT", + "unit": "", + "variable": "gate3Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 4", + "factor": 1, + "label": "AQ", + "name": "Gate 4 IN", + "unit": "", + "variable": "gate4In", + "writable": false, + }, + Object { + "description": "Number of output on gate 4", + "factor": 1, + "label": "AR", + "name": "Gate 4 OUT", + "unit": "", + "variable": "gate4Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 5", + "factor": 1, + "label": "AS", + "name": "Gate 5 IN", + "unit": "", + "variable": "gate5In", + "writable": false, + }, + Object { + "description": "Number of output on gate 5", + "factor": 1, + "label": "AT", + "name": "Gate 5 OUT", + "unit": "", + "variable": "gate5Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 6", + "factor": 1, + "label": "AU", + "name": "Gate 6 IN", + "unit": "", + "variable": "gate6In", + "writable": false, + }, + Object { + "description": "Number of output on gate 6", + "factor": 1, + "label": "AV", + "name": "Gate 6 OUT", + "unit": "", + "variable": "gate6Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 7", + "factor": 1, + "label": "AW", + "name": "Gate 7 IN", + "unit": "", + "variable": "gate7In", + "writable": false, + }, + Object { + "description": "Number of output on gate 7", + "factor": 1, + "label": "AX", + "name": "Gate 7 OUT", + "unit": "", + "variable": "gate7Out", + "writable": false, + }, + Object { + "description": "Number of input on gate 8", + "factor": 1, + "label": "AY", + "name": "Gate 8 IN", + "unit": "", + "variable": "gate8In", + "writable": false, + }, + Object { + "description": "Number of output on gate 8", + "factor": 1, + "label": "AZ", + "name": "Gate 8 OUT", + "unit": "", + "variable": "gate8Out", + "writable": false, + }, + ], + "url": "", +} +`; + +exports[`legoino-device-information test Computer 1`] = ` +Object { + "description": "", + "id": "C", + "kind": "Computer", + "name": "Computer monitoring", + "numberLogParameters": 16, + "numberParameters": 16, + "parameters": Array [ + Object { + "description": "", + "factor": 1, + "label": "A", + "name": "CPU Temperature", + "unit": "°C", + "variable": "cpuTemperature", + "writable": false, + }, + Object { + "description": "Free memory in percent", + "factor": 1, + "label": "B", + "name": "Free memory", + "unit": "%", + "variable": "memFree", + "writable": false, + }, + Object { + "description": "Free swap in percent", + "factor": 1, + "label": "C", + "name": "Free swap", + "unit": "%", + "variable": "swapFree", + "writable": false, + }, + Object { + "description": "File system read in kb", + "factor": 1, + "label": "D", + "name": "FS Read", + "unit": "kb", + "variable": "fsRead", + "writable": false, + }, + Object { + "description": "File system read in kb", + "factor": 1, + "label": "E", + "name": "FS Write", + "unit": "kb", + "variable": "fsWrite", + "writable": false, + }, + Object { + "description": "File system read in kb", + "factor": 1, + "label": "F", + "name": "Network Read", + "unit": "kb", + "variable": "networkRead", + "writable": false, + }, + Object { + "description": "File system read in kb", + "factor": 1, + "label": "G", + "name": "Network Write", + "unit": "kb", + "variable": "networkWrite", + "writable": false, + }, + Object { + "description": "Total load", + "factor": 1, + "label": "H", + "name": "Load", + "unit": "%", + "variable": "load", + "writable": false, + }, + Object { + "description": "Load from user", + "factor": 1, + "label": "I", + "name": "User load", + "unit": "%", + "variable": "userLoad", + "writable": false, + }, + Object { + "description": "Load from system", + "factor": 1, + "label": "J", + "name": "System load", + "unit": "%", + "variable": "systemLoad", + "writable": false, + }, + Object { + "description": "Load for Nice", + "factor": 1, + "label": "K", + "name": "Nice load", + "unit": "%", + "variable": "niceLoad", + "writable": false, + }, + Object { + "description": "Idle percent of time", + "factor": 1, + "label": "L", + "name": "Idle load", + "unit": "%", + "variable": "idleLoad", + "writable": false, + }, + Object { + "description": "Load due to IRQ", + "factor": 1, + "label": "M", + "name": "IRQ load", + "unit": "%", + "variable": "irqLoad", + "writable": false, + }, + Object { + "description": "Minimal percent spaced used in a filesystem", + "factor": 1, + "label": "N", + "name": "FS minimal use", + "unit": "%", + "variable": "fsMinimalUse", + "writable": false, + }, + Object { + "description": "Maximal percent spaced used in a filesystem", + "factor": 1, + "label": "O", + "name": "FS maximal use", + "unit": "%", + "variable": "fsMaximalUse", + "writable": false, + }, + Object { + "label": "P", + }, + ], + "url": "", +} +`; + exports[`legoino-device-information test OpenBio 1`] = ` Object { - "description": "", + "description": "", + "events": Array [ + Object { + "description": "", + "id": 1, + "name": "Arduino boot", + }, + Object { + "description": "", + "id": 2, + "name": "Set safe mode", + }, + Object { + "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "flags": Object { + "0": "stepper", + "1": "food", + "2": "pid", + "7": "sedimentation", + "8": "filling", + "9": "emptying", + }, + "id": 3, + "name": "Status enable", + }, + Object { + "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "flags": Object { + "0": "stepper", + "1": "food", + "2": "pid", + "7": "sedimentation", + "8": "filling", + "9": "emptying", + }, + "id": 4, + "name": "Status disable", + }, + Object { + "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "flags": Object { + "0": "pcb temperature probe", + "1": "liquid temperature probe", + "2": "pcb temperature range", + "3": "liquid temperature range", + "4": "target temperature range", + "5": "weight range", + }, + "id": 6, + "name": "Error: failed", + }, + Object { + "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "flags": Object { + "0": "pcb temperature probe", + "1": "liquid temperature probe", + "2": "pcb temperature range", + "3": "liquid temperature range", + "4": "target temperature range", + "5": "weight range", + }, + "id": 7, + "name": "Error: recover", + }, + Object { + "description": "", + "id": 20, + "name": "Rotation start", + }, + Object { + "description": "", + "id": 21, + "name": "Rotation stop", + }, + Object { + "description": "", + "id": 150, + "name": "Not found log entry N", + }, + Object { + "description": "", + "id": 255, + "name": "Save all parameters", + }, + Object { + "description": "", + "id": 256, + "name": "Change value of A", + }, + Object { + "description": "", + "id": 257, + "name": "Change value of B", + }, + ], + "id": "$", + "kind": "OpenBio", + "name": "Open bioreactor", + "numberLogParameters": 26, + "numberParameters": 52, + "parameters": Array [ + Object { + "description": "Temperature of the bioreactor solution", + "factor": 100, + "label": "A", + "name": "T° LIQ", + "unit": "°C", + "variable": "liquidTemp", + "writable": false, + }, + Object { + "description": "Temperature of the bioreactor circuit", + "factor": 100, + "label": "B", + "name": "T° PCB", + "unit": "°C", + "variable": "pcbTemp", + "writable": false, + }, + Object { + "description": "PID absolute value", + "factor": 1, + "label": "C", + "name": "Pid", + "unit": "", + "variable": "pidTemp", + "writable": false, + }, + Object { + "description": "Target temperature", + "factor": 100, + "label": "D", + "name": "T° target", + "unit": "°C", + "variable": "targetTemp", + "writable": true, + }, + Object { + "description": "Weight of the bioreactor tank, in internal value", + "factor": 1, + "label": "E", + "name": "Weight", + "unit": "", + "variable": "weight", + "writable": false, + }, + Object { + "description": "Weight of the bioreactor tank, in gr if calibrated", + "factor": 1, + "label": "F", + "name": "Weight (g)", + "unit": "g", + "variable": "grWeight", + "writable": false, + }, + Object { + "description": "Time in min since last weight event", + "factor": 1, + "label": "G", + "name": "Time since last event", + "unit": "min", + "variable": "waitSinceLast", + "writable": false, + }, + Object { + "description": "Weight min in internal unit", + "factor": 1, + "label": "H", + "name": "Weight min", + "unit": "", + "variable": "minWeight", + "writable": false, + }, + Object { + "description": "Weight max in internal unit", + "factor": 1, + "label": "I", + "name": "Weight max", + "unit": "", + "variable": "maxWeight", + "writable": false, + }, + Object { + "label": "J", + }, + Object { + "label": "K", + }, + Object { + "label": "L", + }, + Object { + "label": "M", + }, + Object { + "label": "N", + }, + Object { + "label": "O", + }, + Object { + "label": "P", + }, + Object { + "label": "Q", + }, + Object { + "label": "R", + }, + Object { + "label": "S", + }, + Object { + "label": "T", + }, + Object { + "label": "U", + }, + Object { + "label": "V", + }, + Object { + "label": "W", + }, + Object { + "label": "X", + }, + Object { + "description": " + bit 0: pcb probe, 1: liquid probe, 2: pcb temperature, + 3: liquid temperature, 4: target temp. range, 5: weight range", + "factor": 1, + "flags": Object { + "liquidProbe": Object { + "bit": 1, + "description": "Liquid temperature probe not responding", + }, + "liquidTemperature": Object { + "bit": 3, + "description": "Liquid temperature out of range", + }, + "pcbProbe": Object { + "bit": 0, + "description": "PCB temperature probe not responding", + }, + "pcbTemperature": Object { + "bit": 2, + "description": "PCB temperature out of range", + }, + "targetTemperature": Object { + "bit": 4, + "description": "Target temperature out of range", + }, + "weight": Object { + "bit": 5, + "description": "Weight out of range", + }, + }, + "label": "Y", + "name": "Error", + "unit": "", + "variable": "error", + "writable": true, + }, + Object { + "description": "Status of the Bioreactor, the bits of this integer code + for the state of specific elements of the reactor (eg. motor ON/OFF, PUMP ON/OFF etc.). + bits: 0: stepper, 1: weight, 2: pid, 7: sedimentation, 8: filling, 9: emptying + ", + "factor": 1, + "flags": Object { + "emptying": Object { + "bit": 9, + "description": "Emptying tank", + }, + "filling": Object { + "bit": 8, + "description": "Filling tank", + }, + "food": Object { + "bit": 1, + "description": "Food running", + }, + "pid": Object { + "bit": 2, + "description": "PID running", + }, + "sedimentation": Object { + "bit": 7, + "description": "Sedimentation running", + }, + "stepper": Object { + "bit": 0, + "description": "Stepper running", + }, + }, + "label": "Z", + "name": "Status", + "unit": "", + "variable": "status", + "writable": true, + }, + Object { + "description": "", + "factor": 1, + "label": "AA", + "name": "Stepper speed", + "unit": "RPM", + "variable": "stepperSpeed", + "writable": true, + }, + Object { + "description": "Time in (s) for which the stepper stays on", + "factor": 1, + "label": "AB", + "name": "Stepper on delay", + "unit": "s", + "variable": "stepperOnDelay", + "writable": true, + }, + Object { + "description": "Time to wait in (s) before between stirring periods", + "factor": 1, + "label": "AC", + "name": "Stepper off delay", + "unit": "s", + "variable": "stepperOffDelay", + "writable": true, + }, + Object { + "label": "AD", + }, + Object { + "label": "AE", + }, + Object { + "description": "Sedimentation time in min after Semi-batch operation,corresponds to the waiting time without stirring before emptying the reactor to the minimum level", + "factor": 1, + "label": "AF", + "max": 32767, + "min": 0, + "name": "Sedimentation Time", + "unit": "min", + "variable": "sedTime", + "writable": true, + }, + Object { + "description": "Filled time in min after Semi-batch operation,corresponds to the total time with and without stirring before emptying the reactor to the minimum levelmust be set longer than the sedimentation time if stirring is desired", + "factor": 1, + "label": "AG", + "max": 32767, + "min": 0, + "name": "Filled Time", + "unit": "min", + "variable": "filledTime", + "writable": true, + }, + Object { + "description": "Factor allowing to convert the internal weight value to g", + "factor": 1, + "label": "AH", + "name": "Weight factor", + "unit": "", + "variable": "weightFactor", + "writable": false, + }, + Object { + "description": "", + "factor": 1, + "label": "AI", + "name": "Weight offset", + "unit": "", + "variable": "weightOffset", + "writable": false, + }, + Object { + "label": "AJ", + }, + Object { + "label": "AK", + }, + Object { + "label": "AL", + }, + Object { + "label": "AM", + }, + Object { + "label": "AN", + }, + Object { + "label": "AO", + }, + Object { + "label": "AP", + }, + Object { + "label": "AQ", + }, + Object { + "label": "AR", + }, + Object { + "label": "AS", + }, + Object { + "label": "AT", + }, + Object { + "label": "AU", + }, + Object { + "label": "AV", + }, + Object { + "label": "AW", + }, + Object { + "label": "AX", + }, + Object { + "label": "AY", + }, + Object { + "description": "pid - food - stepper : ex. 1: only stepper", + "factor": 1, + "flags": Object { + "food": Object { + "bit": 1, + "description": "Food control", + }, + "pid": Object { + "bit": 2, + "description": "PID control", + }, + "stepper": Object { + "bit": 0, + "description": "Stepper control", + }, + }, + "label": "AZ", + "name": "Enable", + "unit": "", + "variable": "enable", + "writable": true, + }, + ], + "url": "", +} +`; + +exports[`legoino-device-information test OpenSpectro 1`] = ` +Object { + "description": "", + "id": "S", + "kind": "OpenSpectro", + "name": "Open spectrophotometer", + "numberParameters": 26, + "parameters": Array [ + Object { + "description": "which point of the linear detector is the maximum for red", + "factor": 1, + "label": "A", + "name": "Red point", + "unit": "pixel#", + "writable": false, + }, + Object { + "description": "which point of the linear detector is the maximum for green", + "factor": 1, + "label": "B", + "name": "Green point", + "unit": "pixel#", + "writable": false, + }, + Object { + "description": "which point of the linear detector is the maximum for blue", + "factor": 1, + "label": "C", + "name": "Blue point", + "unit": "pixel#", + "writable": false, + }, + Object { + "description": "0 means no compression, can be set", + "factor": 1, + "label": "D", + "name": "Compression", + "unit": "", + "writable": true, + }, + Object { + "description": "Red led intensity (0 to 255)", + "factor": 1, + "label": "E", + "name": "R-Intensity", + "unit": "", + "writable": false, + }, + Object { + "description": "Green led intensity (0 to 255)", + "factor": 1, + "label": "F", + "name": "G-Intensity", + "unit": "", + "writable": false, + }, + Object { + "description": "Blue led intensity (0 to 255)", + "factor": 1, + "label": "G", + "name": "B-Intensity", + "unit": "", + "writable": false, + }, + Object { + "description": "Number of scans (maximum 64)", + "factor": 1, + "label": "H", + "max": 64, + "min": 1, + "name": "Scan#", + "unit": "", + "writable": true, + }, + Object { + "description": "Delay between experiments in seconds", + "factor": 1, + "label": "I", + "name": "DelayExp", + "unit": "s", + "writable": false, + }, + Object { + "description": "Accumulation time in ms(in ms, good value=30)", + "factor": 1, + "label": "J", + "name": "Acq Time", + "unit": "ms", + "writable": true, + }, + Object { + "description": "Red maximum wavelength (nm)", + "factor": 1, + "label": "K", + "name": "lambda-R", + "unit": "nm", + "writable": false, + }, + Object { + "description": "Green maximum wavelength (nm)", + "factor": 1, + "label": "L", + "name": "lambda-G", + "unit": "nm", + "writable": false, + }, + Object { + "description": "Blue maximum wavelength (nm)", + "factor": 1, + "label": "M", + "name": "lambda-M", + "unit": "nm", + "writable": false, + }, + Object { + "label": "N", + }, + Object { + "label": "O", + }, + Object { + "label": "P", + }, + Object { + "label": "Q", + }, + Object { + "label": "R", + }, + Object { + "label": "S", + }, + Object { + "label": "T", + }, + Object { + "description": "Set intensity of red led for test (0 -> 255)", + "factor": 1, + "label": "U", + "name": "red test", + "unit": "", + "writable": false, + }, + Object { + "description": "Set intensity of green led for test (0 -> 255)", + "factor": 1, + "label": "V", + "name": "green test", + "unit": "", + "writable": false, + }, + Object { + "description": "Set intensity of blue led for test (0 -> 255)", + "factor": 1, + "label": "W", + "name": "blue test", + "unit": "", + "writable": false, + }, + Object { + "description": "Set intensity of white led for test (0 -> 255)", + "factor": 1, + "label": "X", + "name": "white test", + "unit": "", + "writable": false, + }, + Object { + "label": "Y", + }, + Object { + "label": "Z", + }, + ], + "url": "", +} +`; + +exports[`legoino-device-information test PHMeter 1`] = ` +Object { + "description": "Open PH and conductivity meter", "events": Array [ Object { "description": "", @@ -15,53 +1202,67 @@ Object { "name": "Set safe mode", }, Object { - "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "description": " + bit 0: alkaline control, 1: acid control, 2: alkaline/acid aux control 1, 3: alkaline/acid aux control 2, 4: EC reading, 5: EC calibration, 6: pH control, 7: pH calibration, 8: acid addition, 9: alkaline addition, 10: test probes", "flags": Object { - "0": "stepper", - "1": "food", - "2": "pid", - "7": "sedimentation", - "8": "filling", - "9": "emptying", + "0": "alkaline control", + "1": "acid control", + "10": "test probes", + "2": "alkaline/acid aux. control 1", + "3": "alkaline/acid aux. control 2", + "4": "EC reading", + "5": "EC calibration", + "6": "pH control", + "7": "pH calibration", + "8": "acid addition", + "9": "alkaline addition", }, "id": 3, "name": "Status enable", }, Object { - "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "description": " + bit 0: alkaline control, 1: acid control, 2: alkaline/acid aux control 1, 3: alkaline/acid aux control 2, 4: EC reading, 5: EC calibration, 6: pH control, 7: pH calibration, 8: acid addition, 9: alkaline addition, 10: test probes", "flags": Object { - "0": "stepper", - "1": "food", - "2": "pid", - "7": "sedimentation", - "8": "filling", - "9": "emptying", + "0": "alkaline control", + "1": "acid control", + "10": "test probes", + "2": "alkaline/acid aux. control 1", + "3": "alkaline/acid aux. control 2", + "4": "EC reading", + "5": "EC calibration", + "6": "pH control", + "7": "pH calibration", + "8": "acid addition", + "9": "alkaline addition", }, "id": 4, "name": "Status disable", }, Object { - "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "description": " + bit 0: liquid probe 1, 1: liquid probe 2, 2: liquid temperature 1, 3: liquid temperature 2, 4: pH probe, 5: EC probe", "flags": Object { - "0": "pcb temperature probe", - "1": "liquid temperature probe", - "2": "pcb temperature range", - "3": "liquid temperature range", - "4": "target temperature range", - "5": "weight range", + "0": "Liquid probe in the top failed (one-wire not answering)", + "1": "Liquid probe in the bottom failed (one-wire not answering)", + "2": "Temperature of liquid in the top is outside range", + "3": "Temperature of liquid in the bottom is outside range", + "4": "pH is out of range", + "5": "EC is out of range", }, "id": 6, "name": "Error: failed", }, Object { - "description": "0:stepper, 1:food, 2:pid, 7:sedimentation, 8:filling, 9:emptying", + "description": " + bit 0: liquid probe 1, 1: liquid probe 2, 2: liquid temperature 1, 3: liquid temperature 2, 4: pH probe, 5: EC probe", "flags": Object { - "0": "pcb temperature probe", - "1": "liquid temperature probe", - "2": "pcb temperature range", - "3": "liquid temperature range", - "4": "target temperature range", - "5": "weight range", + "0": "Liquid probe in the top failed (one-wire not answering)", + "1": "Liquid probe in the bottom failed (one-wire not answering)", + "2": "Temperature of liquid in the top is outside range", + "3": "Temperature of liquid in the bottom is outside range", + "4": "pH is out of range", + "5": "EC is out of range", }, "id": 7, "name": "Error: recover", @@ -97,92 +1298,80 @@ Object { "name": "Change value of B", }, ], - "id": "$", - "kind": "OpenBio", - "name": "Open bioreactor", + "id": "P", + "kind": "PHMeter", + "name": "PH and Conductivity meter", "numberLogParameters": 26, - "numberParameters": 52, + "numberParameters": 68, "parameters": Array [ Object { - "description": "Temperature of the bioreactor solution", + "description": "Temperature 1", "factor": 100, "label": "A", - "name": "T° LIQ", + "name": "T° 1", "unit": "°C", - "variable": "liquidTemp", + "variable": "temperature1", "writable": false, }, Object { - "description": "Temperature of the bioreactor circuit", + "description": "Temperature 2", "factor": 100, "label": "B", - "name": "T° PCB", + "name": "T° 2", "unit": "°C", - "variable": "pcbTemp", + "variable": "temperature2", "writable": false, }, Object { - "description": "PID absolute value", + "description": "pH of the test solution in ADC units", "factor": 1, "label": "C", - "name": "Pid", + "name": "pH Raw", "unit": "", - "variable": "pidTemp", + "variable": "phRaw", "writable": false, }, Object { - "description": "Target temperature", + "description": "pH of the test solution in potential hydrogen units", "factor": 100, "label": "D", - "name": "T° target", - "unit": "°C", - "variable": "targetTemp", - "writable": true, + "name": "pH", + "unit": "", + "variable": "ph", + "writable": false, }, Object { - "description": "Weight of the bioreactor tank, in internal value", - "factor": 1, + "description": "Target pH", + "factor": 100, "label": "E", - "name": "Weight", - "unit": "", - "variable": "weight", - "writable": false, + "name": "pH target", + "unit": "°C", + "variable": "phTarget", + "writable": true, }, Object { - "description": "Weight of the bioreactor tank, in gr if calibrated", + "description": "Electric Conductivity (raw values)", "factor": 1, "label": "F", - "name": "Weight (g)", - "unit": "g", - "variable": "grWeight", + "name": "Electric Conductivity raw", + "unit": "", + "variable": "eCRaw", "writable": false, }, Object { - "description": "Time in min since last weight event", + "description": "Electric Conductivity in unit of μSiemens/cm", "factor": 1, "label": "G", - "name": "Time since last event", - "unit": "min", - "variable": "waitSinceLast", + "name": "Electric Conductivity (uS/cm)", + "unit": "uS/cm", + "variable": "eC", "writable": false, }, Object { - "description": "Weight min in internal unit", - "factor": 1, "label": "H", - "name": "Weight min", - "unit": "", - "variable": "minWeight", - "writable": false, }, Object { - "description": "Weight max in internal unit", - "factor": 1, "label": "I", - "name": "Weight max", - "unit": "", - "variable": "maxWeight", - "writable": false, }, Object { "label": "J", @@ -206,13 +1395,31 @@ Object { "label": "P", }, Object { + "description": "Electric Conductivity in unit of μSiemens/cm", + "factor": 1, "label": "Q", + "name": "Electric Conductivity (uS/cm)", + "unit": "uS/cm", + "variable": "eC", + "writable": false, }, Object { + "description": "Electric Conductivity in unit of μSiemens/cm", + "factor": 1, "label": "R", + "name": "Electric Conductivity (uS/cm)", + "unit": "uS/cm", + "variable": "eC", + "writable": false, }, Object { + "description": "Electric Conductivity in unit of μSiemens/cm", + "factor": 1, "label": "S", + "name": "Electric Conductivity (uS/cm)", + "unit": "uS/cm", + "variable": "eC", + "writable": false, }, Object { "label": "T", @@ -231,34 +1438,15 @@ Object { }, Object { "description": " - bit 0: pcb probe, 1: liquid probe, 2: pcb temperature, - 3: liquid temperature, 4: target temp. range, 5: weight range", + bit 0: liquid probe 1, 1: liquid probe 2, 2: liquid temperature 1, 3: liquid temperature 2, 4: pH probe, 5: EC probe", "factor": 1, "flags": Object { - "liquidProbe": Object { - "bit": 1, - "description": "Liquid temperature probe not responding", - }, - "liquidTemperature": Object { - "bit": 3, - "description": "Liquid temperature out of range", - }, - "pcbProbe": Object { - "bit": 0, - "description": "PCB temperature probe not responding", - }, - "pcbTemperature": Object { - "bit": 2, - "description": "PCB temperature out of range", - }, - "targetTemperature": Object { - "bit": 4, - "description": "Target temperature out of range", - }, - "weight": Object { - "bit": 5, - "description": "Weight out of range", - }, + "0": "Liquid probe in the top failed (one-wire not answering)", + "1": "Liquid probe in the bottom failed (one-wire not answering)", + "2": "Temperature of liquid in the top is outside range", + "3": "Temperature of liquid in the bottom is outside range", + "4": "pH is out of range", + "5": "EC is out of range", }, "label": "Y", "name": "Error", @@ -267,36 +1455,22 @@ Object { "writable": true, }, Object { - "description": "Status of the Bioreactor, the bits of this integer code - for the state of specific elements of the reactor (eg. motor ON/OFF, PUMP ON/OFF etc.). - bits: 0: stepper, 1: weight, 2: pid, 7: sedimentation, 8: filling, 9: emptying - ", + "description": "Status of the test, the bits of this integer code + for the state of specific elements of the test (eg. PUMP ON/OFF, EC reading ON/OFF, etc.). + bits: 0: alkaline control, 1: acid control, 2: alkaline/acid aux. control 1, 3: alkaline/acid aux. control 2, 4: EC reading, 5: EC calibration, 6: pH control, 7: pH calibration, 8: acid addition, 9: alkaline addition, 10: test probes", "factor": 1, "flags": Object { - "emptying": Object { - "bit": 9, - "description": "Emptying tank", - }, - "filling": Object { - "bit": 8, - "description": "Filling tank", - }, - "food": Object { - "bit": 1, - "description": "Food running", - }, - "pid": Object { - "bit": 2, - "description": "PID running", - }, - "sedimentation": Object { - "bit": 7, - "description": "Sedimentation running", - }, - "stepper": Object { - "bit": 0, - "description": "Stepper running", - }, + "0": "alkaline control", + "1": "acid control", + "10": "test probes", + "2": "alkaline/acid aux. control 1", + "3": "alkaline/acid aux. control 2", + "4": "EC reading", + "5": "EC calibration", + "6": "pH control", + "7": "pH calibration", + "8": "acid addition", + "9": "alkaline addition", }, "label": "Z", "name": "Status", @@ -305,31 +1479,13 @@ Object { "writable": true, }, Object { - "description": "", - "factor": 1, - "label": "AA", - "name": "Stepper speed", - "unit": "RPM", - "variable": "stepperSpeed", - "writable": true, - }, - Object { - "description": "Time in (s) for which the stepper stays on", - "factor": 1, + "label": "AA", + }, + Object { "label": "AB", - "name": "Stepper on delay", - "unit": "s", - "variable": "stepperOnDelay", - "writable": true, }, Object { - "description": "Time to wait in (s) before between stirring periods", - "factor": 1, "label": "AC", - "name": "Stepper off delay", - "unit": "s", - "variable": "stepperOffDelay", - "writable": true, }, Object { "label": "AD", @@ -338,44 +1494,16 @@ Object { "label": "AE", }, Object { - "description": "Sedimentation time in min after Semi-batch operation,corresponds to the waiting time without stirring before emptying the reactor to the minimum level", - "factor": 1, "label": "AF", - "max": 32767, - "min": 0, - "name": "Sedimentation Time", - "unit": "min", - "variable": "sedTime", - "writable": true, }, Object { - "description": "Filled time in min after Semi-batch operation,corresponds to the total time with and without stirring before emptying the reactor to the minimum levelmust be set longer than the sedimentation time if stirring is desired", - "factor": 1, "label": "AG", - "max": 32767, - "min": 0, - "name": "Filled Time", - "unit": "min", - "variable": "filledTime", - "writable": true, }, Object { - "description": "Factor allowing to convert the internal weight value to g", - "factor": 1, "label": "AH", - "name": "Weight factor", - "unit": "", - "variable": "weightFactor", - "writable": false, }, Object { - "description": "", - "factor": 1, "label": "AI", - "name": "Weight offset", - "unit": "", - "variable": "weightOffset", - "writable": false, }, Object { "label": "AJ", @@ -426,21 +1554,14 @@ Object { "label": "AY", }, Object { - "description": "pid - food - stepper : ex. 1: only stepper", + "description": " + bit 0: alkaline control, 1: acid control, 2: alkaline/acid aux control 1, 3: alkaline/acid aux control 2", "factor": 1, "flags": Object { - "food": Object { - "bit": 1, - "description": "Food control", - }, - "pid": Object { - "bit": 2, - "description": "PID control", - }, - "stepper": Object { - "bit": 0, - "description": "Stepper control", - }, + "0": "alkaline control", + "1": "acid control", + "2": "alkaline/acid aux control 1", + "3": "alkaline/acid aux control 2", }, "label": "AZ", "name": "Enable", @@ -448,172 +1569,104 @@ Object { "variable": "enable", "writable": true, }, - ], - "url": "", -} -`; - -exports[`legoino-device-information test OpenSpectro 1`] = ` -Object { - "description": "", - "id": "S", - "kind": "OpenSpectro", - "name": "Open spectrophotometer", - "numberParameters": 26, - "parameters": Array [ - Object { - "description": "which point of the linear detector is the maximum for red", - "factor": 1, - "label": "A", - "name": "Red point", - "unit": "pixel#", - "writable": false, - }, - Object { - "description": "which point of the linear detector is the maximum for green", - "factor": 1, - "label": "B", - "name": "Green point", - "unit": "pixel#", - "writable": false, - }, - Object { - "description": "which point of the linear detector is the maximum for blue", - "factor": 1, - "label": "C", - "name": "Blue point", - "unit": "pixel#", - "writable": false, - }, Object { - "description": "0 means no compression, can be set", - "factor": 1, - "label": "D", - "name": "Compression", - "unit": "", - "writable": true, + "description": "Step 1", + "label": "BA", + "name": "Step 1", + "variable": "step01", }, Object { - "description": "Red led intensity (0 to 255)", - "factor": 1, - "label": "E", - "name": "R-Intensity", - "unit": "", - "writable": false, + "description": "Step 2", + "label": "BB", + "name": "Step 2", + "variable": "step02", }, Object { - "description": "Green led intensity (0 to 255)", - "factor": 1, - "label": "F", - "name": "G-Intensity", - "unit": "", - "writable": false, + "description": "Step 3", + "label": "BC", + "name": "Step 3", + "variable": "step03", }, Object { - "description": "Blue led intensity (0 to 255)", - "factor": 1, - "label": "G", - "name": "B-Intensity", - "unit": "", - "writable": false, + "description": "Step 4", + "label": "BD", + "name": "Step 4", + "variable": "step04", }, Object { - "description": "Number of scans (maximum 64)", - "factor": 1, - "label": "H", - "max": 64, - "min": 1, - "name": "Scan#", - "unit": "", - "writable": true, + "description": "Step 5", + "label": "BE", + "name": "Step 5", + "variable": "step05", }, Object { - "description": "Delay between experiments in seconds", - "factor": 1, - "label": "I", - "name": "DelayExp", - "unit": "s", - "writable": false, + "description": "Step 6", + "label": "BF", + "name": "Step 6", + "variable": "step06", }, Object { - "description": "Accumulation time in ms(in ms, good value=30)", - "factor": 1, - "label": "J", - "name": "Acq Time", - "unit": "ms", - "writable": true, + "description": "Step 7", + "label": "BG", + "name": "Step 7", + "variable": "step07", }, Object { - "description": "Red maximum wavelength (nm)", - "factor": 1, - "label": "K", - "name": "lambda-R", - "unit": "nm", - "writable": false, + "description": "Step 8", + "label": "BH", + "name": "Step 8", + "variable": "step08", }, Object { - "description": "Green maximum wavelength (nm)", - "factor": 1, - "label": "L", - "name": "lambda-G", - "unit": "nm", - "writable": false, + "description": "Step 9", + "label": "BI", + "name": "Step 9", + "variable": "step09", }, Object { - "description": "Blue maximum wavelength (nm)", - "factor": 1, - "label": "M", - "name": "lambda-M", - "unit": "nm", - "writable": false, + "description": "Step 10", + "label": "BJ", + "name": "Step 10", + "variable": "step10", }, - undefined, - undefined, - undefined, - undefined, - undefined, - undefined, - undefined, Object { - "description": "Set intensity of red led for test (0 -> 255)", - "factor": 1, - "label": "U", - "name": "red test", - "unit": "", - "writable": false, + "description": "Step 11", + "label": "BK", + "name": "Step 11", + "variable": "step11", }, Object { - "description": "Set intensity of green led for test (0 -> 255)", - "factor": 1, - "label": "V", - "name": "green test", - "unit": "", - "writable": false, + "description": "Step 12", + "label": "BL", + "name": "Step 12", + "variable": "step12", }, Object { - "description": "Set intensity of blue led for test (0 -> 255)", - "factor": 1, - "label": "W", - "name": "blue test", - "unit": "", - "writable": false, + "description": "Step 13", + "label": "BM", + "name": "Step 13", + "variable": "step13", }, Object { - "description": "Set intensity of white led for test (0 -> 255)", - "factor": 1, - "label": "X", - "name": "white test", - "unit": "", - "writable": false, + "description": "Step 14", + "label": "BN", + "name": "Step 14", + "variable": "step14", }, Object { - "label": "Y", + "description": "Step 15", + "label": "BO", + "name": "Step 15", + "variable": "step15", }, Object { - "label": "Z", + "description": "Step 16", + "label": "BP", + "name": "Step 16", + "variable": "step16", }, ], - "url": "", + "url": "https://github.com/Hackuarium/phmeter", } `; @@ -657,7 +1710,9 @@ Object { "unit": "Hz", "writable": false, }, - undefined, + Object { + "label": "E", + }, Object { "description": "Frequency related to the energy of red led through blank", "factor": 1, @@ -690,7 +1745,9 @@ Object { "unit": "Hz", "writable": false, }, - undefined, + Object { + "label": "J", + }, Object { "description": "Delay before the acquisition of the blank in seconds", "factor": 1, @@ -771,7 +1828,9 @@ Object { "unit": "°C", "writable": true, }, - undefined, + Object { + "label": "U", + }, Object { "description": "Active leds and other. A number between 0 and 63. Each bit represents a function (Red, Green, Blue, UV, Voltage, Temperature). 5 would correspond to Red and Blue (binary combination).", "factor": 1, @@ -880,20 +1939,20 @@ Object { Object { "description": "bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition", "flags": Object { - "0": "Enable/disable heating", - "1": "Enable/disable agitation control", - "10": "Enable/disable emptying pump (one of the phases of food control)", - "11": "Enable/disable pH calibration", - "12": "Enable/disable acid addition", - "13": "Enable/disable base addition", - "2": "Enable/disable food control 1", - "3": "Enable/disable food control 2", - "4": "Enable/disable food control 3", - "5": "Enable/disable food control 4", - "6": "Enable/disable pH control", - "7": "Enable/disable gas control", - "8": "Enable/disable sedimentation (one of the phases of food control)", - "9": "Enable/disable filling pump (one of the phases of food control)", + "0": "Heating control", + "1": "Agitation control", + "10": "Emptying pump", + "11": "pH calibration", + "12": "Acid addition", + "13": "Base addition", + "2": "Food control 1", + "3": "Food control 2", + "4": "Food control 3", + "5": "Food control 4", + "6": "pH control", + "7": "Gas control", + "8": "Sedimentation stage", + "9": "Filling pump", }, "id": 3, "name": "Status enable", @@ -901,20 +1960,20 @@ Object { Object { "description": "bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition", "flags": Object { - "0": "Enable/disable heating", - "1": "Enable/disable agitation control", - "10": "Enable/disable emptying pump (one of the phases of food control)", - "11": "Enable/disable pH calibration", - "12": "Enable/disable acid addition", - "13": "Enable/disable base addition", - "2": "Enable/disable food control 1", - "3": "Enable/disable food control 2", - "4": "Enable/disable food control 3", - "5": "Enable/disable food control 4", - "6": "Enable/disable pH control", - "7": "Enable/disable gas control", - "8": "Enable/disable sedimentation (one of the phases of food control)", - "9": "Enable/disable filling pump (one of the phases of food control)", + "0": "Heating control", + "1": "Agitation control", + "10": "Emptying pump", + "11": "pH calibration", + "12": "Acid addition", + "13": "Base addition", + "2": "Food control 1", + "3": "Food control 2", + "4": "Food control 3", + "5": "Food control 4", + "6": "pH control", + "7": "Gas control", + "8": "Sedimentation stage", + "9": "Filling pump", }, "id": 4, "name": "Status disable", @@ -928,7 +1987,7 @@ Object { "2": "Liquid probe in the bottom failed (one wire not answering)", "3": "Temperature of PCB is out of range", "4": "Temperature of liquid in the top is out of range", - "5": "emperature of liquid in the bottom is out of range", + "5": "Temperature of liquid in the bottom is out of range", "6": "Target temperature is out of range", "7": "Weight out of range", }, @@ -945,7 +2004,7 @@ Object { "2": "Liquid probe in the bottom failed (one wire not answering)", "3": "Temperature of PCB is out of range", "4": "Temperature of liquid in the top is out of range", - "5": "emperature of liquid in the bottom is out of range", + "5": "Temperature of liquid in the bottom is out of range", "6": "Target temperature is out of range", "7": "Weight out of range", }, @@ -1138,7 +2197,7 @@ Object { "2": "Liquid probe in the bottom failed (one wire not answering)", "3": "Temperature of PCB is out of range", "4": "Temperature of liquid in the top is out of range", - "5": "emperature of liquid in the bottom is out of range", + "5": "Temperature of liquid in the bottom is out of range", "6": "Target temperature is out of range", "7": "Weight out of range", }, @@ -1151,23 +2210,23 @@ Object { Object { "description": "Status of the Bioreactor, the bits of this integer code for the state of specific elements of the reactor (eg. motor ON/OFF, PUMP ON/OFF etc.). - bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pumpo 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition", + bits: 0: pid, 1: stepper, 2: pump 1, 3: pump 2, 4: pump 3, 5: pump 4, 6: ph, 7: gas, 8: sedimentation, 9: filling, 10: emptying, 11: ph calibration, 12: acid addition, 13: base addition", "factor": 1, "flags": Object { - "0": "Enable/disable heating", - "1": "Enable/disable agitation control", - "10": "Enable/disable emptying pump (one of the phases of food control)", - "11": "Enable/disable pH calibration", - "12": "Enable/disable acid addition", - "13": "Enable/disable base addition", - "2": "Enable/disable food control 1", - "3": "Enable/disable food control 2", - "4": "Enable/disable food control 3", - "5": "Enable/disable food control 4", - "6": "Enable/disable pH control", - "7": "Enable/disable gas control", - "8": "Enable/disable sedimentation (one of the phases of food control)", - "9": "Enable/disable filling pump (one of the phases of food control)", + "0": "Heating control", + "1": "Agitation control", + "10": "Emptying pump", + "11": "pH calibration", + "12": "Acid addition", + "13": "Base addition", + "2": "Food control 1", + "3": "Food control 2", + "4": "Food control 3", + "5": "Food control 4", + "6": "pH control", + "7": "Gas control", + "8": "Sedimentation stage", + "9": "Filling pump", }, "label": "Z", "name": "Status",