Control the lighting and the heating of the aquarium.
Loading README and project media…

AT+ORGLAT+NAME=aquarium (the device's name must begin with "aquarium" to be recognized by aquarium-control app)AT+IPSCAN=1024,1,1024,1After establishing a connection, you can send commands to the aquarium
controller to setup it.
If a command has the correct format and can be successfully completed the
controller will send OK response. If the command has the wrong format, the
controller will send ERROR response. If the controller receives an unknown
command it will send UNKNOWN response.
The command must end with \n or \r. If the value of a parameter is bigger
than allowed one it will be reduced to max. allowed value.
statusGet information about current state of the aquarium.
Format:
status
Response:
Date: 01.01.17 Friday
Time: 13:29:59 (-3 sec at 12:00:00)
Temp: 22
Heat: OFF auto (20-22)
Light: ON manual (10:00:00-20:00:00) 43/50% 10min
Display: time
Meaning:
Line 1: the current date and the day of the week; Line 2: the current time and the information about the daily time correction; Line 3: the temperature of the water (°C); Line 4: the thermostat status:
ON - the heater is on, OFF - the heater is offauto - automatic mode, manual - manual modeLine 5: the lighting status:
ON - the light is on, OFF - the light is offauto - automatic mode, manual - manual modeLine 6: the display mode (time - the current time is shown, temp - the temperature of the water is shown)
dateSet a date.
Format:
date DD.MN.YY W
Parameters:
DD - day of the month (01-31)MN - month (01-12)YY - year (00-99)W - day of the week (1 - Monday ... 7 - Sunday)Response:
OK or ERROR
timeSet a time and/or a time correction
Format 1:
time HH:MM:SS
Parameters:
HH - hours (00-23)MM - minutes (00-59)SS - seconds (00-59)Format 2:
time +CC
time -CC
Parameters:
+ or - - add or subtract the time correction valueCC - time correction in seconds (00-59)Format 3:
time HH:MM:SS +CC
time HH:MM:SS -CC
Parameters:
HH - hours (00-23)MM - minutes (00-59)SS - seconds (00-59)+ or - - add or subtract the time correction valueCC - time correction in seconds (00-59)Response:
OK or ERROR
heatHeater setup.
Format 1:
heat LO-HI
Parameters:
LO - minimal temperature (18-35)HI - maximal temperature (18-35)Format 2:
heat on
heat off
heat auto
Parameters:
on - switch to the manual mode and turn on heateroff - switch to the manual mode and turn off heaterauto - switch to the automatic modeResponse:
OK or ERROR
lightLighting setup.
Format 1:
light H1:M1:S1-H2:M2:S2
Parameters:
H1:M1:S1 - light on time (00:00:00-23:59:59)H2:M2:S2 - light off time (00:00:00-23:59:59)Format 2:
light on
light off
light auto
Parameters:
on - switch to the manual mode and turn on lightoff - switch to the manual mode and turn off lightauto - switch to the automatic modeFormat 3:
light level LLL
Parameters:
LLL - brightness level in percent (000-100)Format: 4:
light rise RR
Parameters:
RR - time of the light rising in minutes (00-30)Format: 5:
light H1:M1:S1-H2:M2:S2 LLL RR
Parameters:
H1:M1:S1 - time of turn on light (00:00:00-23:59:59)H2:M2:S2 - time of turn off light (00:00:00-23:59:59)LLL - brightness level (000-100)RR - light rising time (00-30)Response:
OK or ERROR
displayDisplay setup.
Format:
display time
display temp
Parameters:
time - show the current timetemp - show the current temperature of the waterResponse:
OK or ERROR
rebootRestart the program.
Format:
reboot
Response:
OK
helpPrint the list of available commands.
Format:
help
Response:
Available commands:
status
date DD.MN.YY W
time HH:MM:SS
time +CC
time -CC
time HH:MM:SS +CC
time HH:MM:SS -CC
heat LO-HI
heat on
heat off
heat auto
light H1:M1:S1-H2:M2:S2
light level LLL
light rise RR
light H1:M1:S1-H2:M2:S2 LLL RR
light on
light off
light auto
display time
display temp
reboot
help