FlowerPower.ApiCache
Summary
Functions
Calls the flower power api with the passed in parameters with the following format:
{credentials, from_date, to_date}
Start the cache manager that will hold the results of the
Functions
Calls the flower power api with the passed in parameters with the following format:
{credentials, from_date, to_date}
The api client is a callback for actually calling the flower power api rest service.
If the date range is longer than 2 weeks, the flower power api will send back an error message asking to narrow the search. When the api successfully returns the garden data it’s saved in the State manager so it can be retrieved the next time a api call in made within the same hour. This is useful for getting the same data within the same hour so other calculations like the calculate module can be used without hitting the service to get the same data again.