FlowerPower.Calculate
This module takes the data structure from the parrot flower power api calls and returns data structures that are more digestable.
Steps to using this module:
1. Query api with a date range to get the data from the parrots web service
2. Pass the data graph to one of these functions to transform the data to a data structure
thats easier to reason about when used for situations like charting
Summary
Functions
Calculates the daily soil moisture for the given day in the data graph that is retrieve when calling the api service. The returned value will be a single number with unspecified precision: 21.80029710232427
Gets the highest moisture measurement of the day based on the day the sensor reading was taken that’s in the garden data graph. The sensor takes a reading every 15 minutes
Returns a keyword list that has the hour and the soil percentage for that hour in the following format: [{6, 22.639327889313865}, {7, 22.3569090340487}]
Returns a keyword list with the hour, soil moisture percentage and light intensity. Example: [{6, 23.911042707773333, 0.10000000000000002}, {7, 23.34991703012, 0.1}]
Gets the lowest moisture measurement of the day based on the day the sensor reading was taken that’s in the garden data graph. The sensor takes a reading every 15 minutes
Functions
Calculates the daily soil moisture for the given day in the data graph that is retrieve when calling the api service. The returned value will be a single number with unspecified precision: 21.80029710232427
Gets the highest moisture measurement of the day based on the day the sensor reading was taken that’s in the garden data graph. The sensor takes a reading every 15 minutes.
It returns a tuple in the following format: {moisture_rate, timestamp}
Returns a keyword list that has the hour and the soil percentage for that hour in the following format: [{6, 22.639327889313865}, {7, 22.3569090340487}]
Returns a keyword list with the hour, soil moisture percentage and light intensity. Example: [{6, 23.911042707773333, 0.10000000000000002}, {7, 23.34991703012, 0.1}]