-
-
Notifications
You must be signed in to change notification settings - Fork 101
API
The following API calls are available for integration with other 3rd party software. All output is in JSON.
*All API calls with an asterisk needs authentication
This will give a list of all sensors and there properties and values
This will give a list of average values per sensor type
This will give the information of a single sensor
This will give a list of sensors filtered by the sensor type. Valid sensortype values are:
- temperature
- humidity
- distance
- moisture
- conductivity
- ph
- light
- fertility
This will give the average of the sensor list filtered by sensor type
This will give a list of all power switches
This will give the information of a single power switch
This will change the state of the power switch from on to off or vise versa
This will change the state of a power switch. Valid value values are:
- 0 is off, and 1 is on
- range from 0 to 100 if it is a dimmer
This will give a list of all door sensors
This will give a single door status based on all the available door sensors
This will give the information of a single door sensor
This will give a list of all webcams
This will give the information of a single webcam
This will give the information of a single webcam with image archive list
This will give a list of all the audio playlists
This will give a list of all the available audio files with meta information
This will give what is currently playing
This will give a list of all audio hardware devices. Internal as USB is supported
This will give the weather information like sun rise and sun set, as the weather forecast and current values
This will give all the profile information
This will give the complete environment data of all enabled parts
This will give the output of a single part of the environment system Valid environmentpart values are:
- light
- temperature
- humidity
- moisture
- ph
- conductivity
- watertank
This will give the uptime information
This will give the current power usage
This will give the current water flow
This will give the current system load and disk usage
This will give all the configuration values of all parts of TerrariumPI
This will give the history of a specified data part of TerrariumPI. By default it will return the last 24 hours Valid datatype values are:
- sensors
- switches
- doors
- weather
- system
This will give the history of a specified data part of TerrariumPI for the last period of time This period value can be used in all history API call as last part of the url Valid period values are:
- day
- week
- month
- year
This will give the history of a all the sensors filtered by sensor type. By default it will return the last 24 hours
This will give the history of a single senor. By default it will return the last 24 hours
This will give the history of the average values per sensor type. By default it will return the last 24 hours
This will give the history of a single power switch. By default it will return the last 24 hours
This will give the history of a single door. By default it will return the last 24 hours
This will give the history of the weather temperatures
This will give the history of the system. This includes cpu load, memory and disk usage
This will give the history of part of the system. Valid systempart values are:
- load
- cores
- uptime
- temperature
- memory
- disk