If the only input available is the duration your device needs to consume or can export energy, call the schedule-by-duration endpoint. Flatpeak uses the Location’s tariff and, if a PV array is present, the local solar generation forecast to identify the lowest (or highest) cost time slots within the specified period. In the example below, you request the lowest-priced two-hour window within a given timeframe:Documentation Index
Fetch the complete documentation index at: https://docs.flatpeak.com/llms.txt
Use this file to discover all available pages before exploring further.

