schone lei

This commit is contained in:
Ton 2023-06-19 16:54:00 +02:00
parent 94555b0ce3
commit 0e1550a86d
9 changed files with 0 additions and 116 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +0,0 @@
De instellingen voor de Wemos D1 bij het zwembad.
Dit zijn de ESP-Easy rules en dat files.

View File

@ -1,23 +0,0 @@
On System#Boot do //When the ESP boots, do
gpio,14,0
timerSet,1,4 //Set Timer 1 for the next event in 30 seconds
endon
On Rules#Timer=1 do //When Timer1 expires, do
if [out#t] > [in#t]//abs function
TaskValueSet,verschil,1,[out#t]-[in#t]
else
TaskValueSet,verschil,1,[in#t]-[out#t]
endif
Publish domoticz/in,'{"idx":144,"nvalue":0,"svalue":"[verschil#t]"}'
Publish domoticz/in,'{"idx":143,"nvalue":0,"svalue":"[out#t]" }'
Publish domoticz/in,'{"idx":142,"nvalue":0,"svalue":"[in#t]" }'
LCD 2,1,"[verschil#t], [out#t], [in#t]"
//LCD 2,1,"[sw#s]"
LCD 1,1,'[%ip%]'
endif
TaskValueSet,11,1,[E1SW1#Switch]
timerSet,1,4 //Resets the Timer 1 for another 30 seconds
endon

View File

View File

@ -1,35 +0,0 @@
On System#Boot do //When the ESP boots, do
gpio,14,0
timerSet,1,4 //Set Timer 1 for the next event in 30 seconds
endon
On Rules#Timer=1 do //When Timer1 expires, do
if [Pomp#state]=1
gpio,14,0
if [out#t] > [in#t]//abs function
TaskValueSet,verschil,1,[out#t]-[in#t]
else
TaskValueSet,verschil,1,[in#t]-[out#t]
endif
// SendToHTTP api.thingspeak.com,80,/update?api_key=NKVTONNH0NRQAD2T&field1=[in#t]&field2=[out#t]
// Publish domoticz/in,{"idx":144,"nvalue":[verschil#t],"svalue":"[verschil#t]"}
// Publish domoticz/in,{"idx":143,"nvalue":[out#t],"svalue":"[out#t]"}
// Publish domoticz/in,{"idx":142,"nvalue":[in#t],"svalue":"[in#t]"}
//SendToHttp 85.148.156.144,8080,/json.htm?type=command&param=udevice&idx=144&svalue=[verschil#t]
//SendToHttp 85.148.156.144,8080,/json.htm?type=command&param=udevice&idx=143&svalue=[out#t]
//SendToHttp 85.148.156.144,8080,/json.htm?type=command&param=udevice&idx=142&svalue=[in#t]
//LCD 2,1,[verschil#t]
else
gpio,14,1
// gpio,2,1
// LCD 2,1,%uptime%
endif
// TaskValueSet,11,1,[E1SW1#Switch]
// TaskValueSet,dummy,2,[out#t]-[in#t]
// TaskValueSet,11,3,5678
// TaskValueSet,11,4,9012
timerSet,1,4 //Resets the Timer 1 for another 30 seconds
endon

View File

@ -1,14 +0,0 @@
Welcome to ESP Easy: Zwembad
MainConfigHardwareDevicesRulesTools
<> Task Device Name Port IDX/Variable GPIO Values
Edit 1 Temperature - DS18b20 bier 28-96-d8-d0-4-0-0-e2 1 GPIO-13 Temperature: 26.50
Edit 2 Temperature - DS18b20 water 28-ff-a2-45-52-15-1-e0 2 GPIO-13 Temperature: 25.50
Edit 3 Display - LCD2004 dsp1602 1 GPIO-4
GPIO-5
Edit 4 Temperature & Pressure - BMP085 pressure 3 GPIO-4 Temperature: 36.66
GPIO-5 Pressure: 1016.81
Powered by www.letscontrolit.com

View File

@ -1,42 +0,0 @@
On System#Boot do //When the ESP boots, do
gpio,14,0
timerSet,1,1 //Set Timer 1
endon
On Rules#Timer=1 do //When Timer1 expires, do
if [out#t]>[in#t]//abs function
TaskValueSet,verschil,1,[out#t]-[in#t]
else
TaskValueSet,verschil,1,[in#t]-[out#t]
endif
LCD,1,1 'Opwarming:[Verschil#t]'
LCD,2,1 'Pomp:[PompSwitch#state]'
// gpio,14,PompSwitch#state
timerSet,1,1 //Resets the Timer 1
endon
on Details#state=1 do
timerSet,1,4
LCDCMD,clear
LCD 1,1 '%ip%'
LCD 2,1 '%ssid%'//'%sysname%'
endon
on Details#state=11 do
timerSet,1,4
LCDCMD,clear
LCD 1,1 'in:[in#t],uit:[out#t]dak:[dak#t]'
LCD 2,1 'uit-in:[verschil#t],[dak#t]'
endon
on PompSwitch#state do
if [PompSwitch#state]=1
gpio,14,1
else
gpio,14,0
endif
// timerSet,1,4
// LCDCMD,clear
// LCD 1,1 '[PompSwitch#state]'
endon