Media Method


The media method allows you to access the filter media on a tank.

Base Url

GET   http://www.reefware.com/api/request/v1/media/[tank]

Response

{ id: [media_id],
tank: [taank_token],
name: [media_name],
label: [media_label],
current: [current_level],
token: [media_token],
added: [date_added],
expired: [date_expires],
updated: [date_last_updated]
}


Data Options

id
optional

  • 'id' will return the filter media id.
  • The filter media id is unique for each media added.
  • This option will return as a number.

This option can't be changed.

tank
optional

  • 'tank' will return the tank token for each filter media.
  • This option will return as a string.

name
optional

  • 'name' will return the name of the filter media.
  • This option will return as a string.

name
optional

  • 'name' will return the name of the filter media.
  • This option will return as a string.

label
optional

  • 'label' will return the four letter label asociated with the filter media.
  • This option will return as a string.

current
optional

  • 'current' will return the decimal value for the filter media percentage.
  • This option will return as a number.

token
optional

  • 'token' will return the token for the filter media.
  • This option will return as a string.

added
optional

  • 'added' will return the date the filter media was replaced.
  • This option will return as a date timestamp.

expired
optional

  • 'expired' will return the date the filter media will need replaced.
  • This option will return as a date timestamp.

updated
optional

  • 'updated' will return the date the filter media will last updated.
  • This option will return as a date timestamp.

 

Example Request

GEThttp://www.reefware.com/api/request/v1/media/tank/HSFhdksSH9383/data/tank.name.label

Response

  1. [
  2. [
  3. {
  4. "tank": "HSFhdksSH9383",
  5. "name": "Calcium",
  6. "label": "CALC"
  7. }
  8. ]
  9. ]