About this query
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- Use this query to fire something when your electricity export price fell or rose past your set threshold and between your preferred time settings. Note: this query will only return future events after this Applet is created.
- API endpoint slug
- agile_octopus.history_of_energy_export_price_changes
- Runtime method
- performQuery("agile_octopus.history_of_energy_export_price_changes")
Query fields
Price threshold Text input
- Label
- At what price should this activate?
- Helper text
- Price in pence. Max 35 pence.
- Slug
- price_threshold
- Required
- true
- Can have default value
- true
When to trigger Dropdown list
- Label
- When to trigger?
- Slug
- when_to_trigger
- Required
- true
- Can have default value
- true
Happens after Dropdown list
- Label
- Happens after
- Slug
- happens_after
- Required
- true
- Can have default value
- false
Happens before Dropdown list
- Label
- Happens before
- Slug
- happens_before
- Required
- true
- Can have default value
- false
Ingredients
Created atDate and time event was created.
- Slug
- created_at
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.CreatedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
PriceExport energy price (pence) when trigger event occurred.
- Slug
- price
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.Price
- Type
- String
- Example
- 10.50
Triggered atDate and time when trigger event occurred.
- Slug
- triggered_at
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.TriggeredAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Trigger pricePrice (pence) threshold in trigger settings.
- Slug
- trigger_price
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.TriggerPrice
- Type
- String
- Example
- 10
Triggers afterTime (hours) in trigger settings, events happen after this time.
- Slug
- triggers_after
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.TriggersAfter
- Type
- String
- Example
- 12:00 AM
Triggers beforeTime (hours) in trigger settings, events happen before this time.
- Slug
- triggers_before
- Filter code
- AgileOctopus.historyOfEnergyExportPriceChanges.TriggersBefore
- Type
- String
- Example
- 12:00 PM