Skip to content

Commit

Permalink
Merge branch 'webhooks'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.gitignore
  • Loading branch information
FlyingDiver committed Sep 2, 2020
2 parents 1927c97 + 99a0bc6 commit 8851efd
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 84 deletions.
2 changes: 1 addition & 1 deletion Rachio Sprinkler.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>1.1.3</string>
<string>2.0.2</string>
<key>ServerApiVersion</key>
<string>2.0</string>
<key>IwsApiVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
<TriggerLabel>Active Rachio Schedule</TriggerLabel>
<ControlPageLabel>Active Rachio Schedule</ControlPageLabel>
</State>
<State id="elevation">
<ValueType>Number</ValueType>
<TriggerLabel>Elevation</TriggerLabel>
<ControlPageLabel>Elevation</ControlPageLabel>
</State>
<State id="latitude">
<ValueType>Number</ValueType>
<TriggerLabel>Latitude</TriggerLabel>
Expand Down
10 changes: 10 additions & 0 deletions Rachio Sprinkler.indigoPlugin/Contents/Server Plugin/MenuItems.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
<Name>Toggle Debugging</Name>
<CallbackMethod>toggleDebugging</CallbackMethod>
</MenuItem>
<MenuItem id="toggleStandby">
<Name>Toggle Controller Standby Mode</Name>
<CallbackMethod>toggleStandbyMode</CallbackMethod>
<ConfigUI>
<Field id="targetDevice" type="menu">
<Label>Select Controller:</Label>
<List class="self" filter="" method="pickController" dynamicReload="true"/>
</Field>
</ConfigUI>
</MenuItem>
<MenuItem id="updateAllStatus">
<Name>Update All Status</Name>
<CallbackMethod>updateAllStatus</CallbackMethod>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@
<Field id="apiCallTimeoutLabel" type="label" fontSize="small" fontColor="darkgray" alignWithControl="true">
<Label>Number of seconds to wait for the API to reply before continuing. You probably don't need to adjust this unless instructed by support.</Label>
</Field>
<Field id="sep3" type="separator"/>
<Field id="useWebhooks" type="checkbox" defaultValue="false">
<Label>Use Rachio API Webhooks</Label>
</Field>
<Field id="useWebhooksNote" type="label" fontSize="small" fontColor="darkgray">
<Label>Requires HTTPd 2 plugin with port forwarding on router.</Label>
</Field>
<Field id="httpServerID" type="menu" visibleBindingId="useWebhooks" visibleBindingValue="true" alwaysUseInDialogHeightCalc="true">
<Label>HTTPd 2 Plugin Device:</Label>
<List method="httpServerList" dynamicReload="true" class="self" filter="" />
<CallbackMethod>configMenuChanged</CallbackMethod>
</Field>
</PluginConfig>
Loading

0 comments on commit 8851efd

Please sign in to comment.