Configuration of PhytoSense data loggers can be done through the 'Particle' Settings dialog tab. Note that this dialog tab is not visible to all users.
The configuration of the data logger can be accessed by clicking on the edit button in the lower left of the dialog window.
Sending commands to the data logger can be done by typing the command in the text field at the bottom of the dialog and pressing enter.
Modifying the configuration
PhytoSense data logger configurations are described as JSON objects. Each configuration should contain at least a logger
(general data logger settings) and a board
(specific sensor board settigs) object.
Attention: only change data logger settings when you are 100% sure what you are doing. Errors in the configuration might result in an unresponsive data logger, increased data traffic or damage to the sensors.
Most measurements can be in one of three states: ON
(measured and sent to PhytoSense), STATUS
(measured but not sent to PhytoSense, available through the status command), OFF
(not measured). Switching certain measurements between the states will results in more or less data received by PhytoSense requiring changes in the data mapping sequence.
Example configuration:
[{"logger":{"measurementInterval":150,"voltage":"STATUS","voltageMultiplier":0.0157058,"signalStrength":"STATUS"}},
{"board": {"type":"STEM","dynagage":"ON","dynagageVoltage":4.5,"solartron":"ON","solartronNTC":"OFF","temperature":"STATUS"}}]
Reloading the configuration
Once a data logger configuration has been altered, the data logger needs to reload its configuration (this will not happen automatically) which can be done in three ways:
Physically rebooting the data logger (unplugging the data logger from the power supply and plugging it in again).
Sending a 'reload' command to the logger.
Sending a 'reboot' command to the logger. Reloading the configuration is part of the boot sequence.
Note: sending commands to a data logger will only work when the data logger is online. For data loggers in sleep mode, this is only the limited time when the logger comes out of sleep.