Parameter Method


The notification method allows you to access your tank parameters.

Base Url

GET   http://www.reefware.com/api/request/v1/parameter

Response

{ id: [parameter_id],
tank: [tank_token],
alk: [alkalinity_value],
calc: [calcium_value],
mag: [magnesium_value],
ph: [ph_value],
salt: [specific_gravity_value],
temp: [temperature_value],
ammo: [ammonia_value],
nitrite: [nitrite_value],
nitrate: [nitrate_value],
phos: [phosphate_value],
log: [aquarium_log],
date: [date_added]
}


Data Options

id
optional

  • 'id' will return the parameter id.
  • The parameter id is unique for each saved parameter.
  • This option will return as a number.

This option can't be changed.

tank
optional

  • 'tank' will return the tank token for the specific parameter.
  • This option will return as a string.

This option mus be a valid tank token.

alk
optional

  • 'alk' will return the alkalinity value for this specific entry.
  • This option will return as a number.

calc
optional

  • 'calc' will return the calcium value for this specific entry.
  • This option will return as a number.

mag
optional

  • 'mag' will return the magnesium value for this specific entry.
  • This option will return as a number.

ph
optional

  • 'ph' will return the pH value for this specific entry.
  • This option will return as a number.

salt
optional

  • 'salt' will return the specific gravity value for this specific entry.
  • This option will return as a number.

temp
optional

  • 'temp' will return the temperature value for this specific entry.
  • This option will return as a number.

ammo
optional

  • 'ammo' will return the ammonia value for this specific entry.
  • This option will return as a number.

nitrite
optional

  • 'nitrite' will return the nitrite value for this specific entry.
  • This option will return as a number.

nitrate
optional

  • 'nitrate' will return the nitrate value for this specific entry.
  • This option will return as a number.

phos
optional

  • 'phos' will return the phosphate value for this specific entry.
  • This option will return as a number.

log
optional

  • 'log' will return the aquarium log text for this specific entry.
  • This option will return as a string.

date
optional

  • 'date' will return the date the parameter was added.
  • This option will return as a date timestamp.

 

Example Request

GEThttp://www.reefware.com/api/request/v1/parameter/data/tank.calc.date

Response

  1. [
  2. [
  3. {
  4. "tank": "jdkDJSKdjskXdsj",
  5. "calc": 380,
  6. "date": 2013-10-28 18:00:05
  7. }
  8. ]
  9. ]