From 26f48f1af26db14c9622b4041bcd537165d73e48 Mon Sep 17 00:00:00 2001 From: Attila Magyar Date: Sun, 27 Jun 2021 18:07:30 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 22a0434..9ff78f4 100644 --- a/README.md +++ b/README.md @@ -416,3 +416,24 @@ Quotations combined with the collection API offers some high level control struc ``` ## HTTP + +## Examples + +### Controlling a Daikin Air Conditioner + +```forth +: cool ( temperature -- http-code response ) + -> tp + #[ + 'pow' tp 0 = if 0 else 1 then + 'f_rate' 'A' ( auto fan ) + 'stemp' tp 24 min 20 max + 'mode' 3 ( cooling ) + 'f_dir' 0 ( fan direction ) + 'shum' 0 + ]# + 'http://192.168.0.25/aircon/set_control_info' + http-post +; +``` +