All translations

Jump to navigation Jump to search

Enter a message name below to show all available translations.

Message

Found 2 translations.

NameCurrent message text
 h English (en)== Example ==
The settings are stored in <code>/home/settings/webhooks.json</code>. Example with one event with feedback and two actions:
<syntaxhighlight lang="json" line>
{
  "events": [
   {
     "name": "997:1_button_pressed",
     "url": "https://maker.ifttt.com/trigger/997:1_button_pressed/with/key/YOUR_IFTTT_KEY",
     "method": "POST"
   },
   {
     "name": "447:145_sensor_state",
     "url": "https://example.com/weather.json",
     "feedback": { "addr": "447:145", "regexp": "/\"temp\":\"(-?[0-9]+)\",/" }
   }
  ],
  "actions": [
   {
     "name": "401:1_lamp_on",
     "status": [ { "request": "status-set", "addr": "401:1", "status": { "state": "on" } } ]
   },
   {
     "name": "401:1_lamp_reverse",
     "status": [ { "request": "status-set", "addr": "401:1", "status": { "state": "reverse" } } ]
   }
  ]
}
</syntaxhighlight>
 h русский (ru)== Пример ==
Настройки хранятся в файле <code>/home/settings/webhooks.json</code>. Пример с событием с обратной связью и двумя действиями:
<syntaxhighlight lang="json" line>
{
  "events": [
   {
     "name": "997:1_button_pressed",
     "url": "https://maker.ifttt.com/trigger/997:1_button_pressed/with/key/YOUR_IFTTT_KEY",
     "method": "POST"
   },
   {
     "name": "447:145_sensor_state",
     "url": "https://example.com/weather.json",
     "feedback": { "addr": "447:145", "regexp": "/\"temp\":\"(-?[0-9]+)\",/" }
   }
  ],
  "actions": [
   {
     "name": "401:1_lamp_on",
     "status": [ { "request": "status-set", "addr": "401:1", "status": { "state": "on" } } ]
   },
   {
     "name": "401:1_lamp_reverse",
     "status": [ { "request": "status-set", "addr": "401:1", "status": { "state": "reverse" } } ]
   }
  ]
}
</syntaxhighlight>