Search found 83 matches
- 20 Oct 2019, 14:05
- Forum: ESP Easy: Software
- Topic: check if Sensor is active
- Replies: 18
- Views: 19475
Re: check if Sensor is active
the termperature event shows up as: EVENT: ds18b20#Temperature=15.50 but the SetTemp event never shows up in the log, even this rule: on [ds18b20#Temperature] do Event,SetTemp EndIf EndOn On SetTemp do if [ds18b20#Temperature]<[DummyVar#tempSetpoint] sendTo 1,event,RelayOn else sendTo 1,event,RelayO...
- 20 Oct 2019, 12:24
- Forum: ESP Easy: Software
- Topic: check if Sensor is active
- Replies: 18
- Views: 19475
Re: check if Sensor is active
i just tried
but seems also to be no valid code.
Code: Select all
on [DS18b20#Temperature]>10 or [DS18b20#Temperature]<100 do
if [DS18b20#Temperature]<[DummyVar#tempSetpoint]
sendTo 1,event,RelayOn
else
if [DS18b20#Temperature]>[DummyVar#tempSetpoint]
sendTo 1,event,RelayOff
endif
endon
- 20 Oct 2019, 12:00
- Forum: ESP Easy: Software
- Topic: check if Sensor is active
- Replies: 18
- Views: 19475
Re: check if Sensor is active
the boot event occurs only once? so it only checked on boottime if a sensor is present? i think im using if/else wrong timer 1 never expires (ist set in another rule, but i think that doesnt mater) so normally the whole rule should be skipped. edit:my wrong timer 1 is alway on so it should run only ...
- 20 Oct 2019, 00:43
- Forum: ESP Easy: Software
- Topic: check if Sensor is active
- Replies: 18
- Views: 19475
check if Sensor is active
i tried this code to check if a sensor gives plausible values if its out of the range of 10 to 100 degrees(because of a broken cable e.g.) it should turn off the relay. but it doesnt work. it prevents from turning on as the value NaN is never valid for 10 to 100 i think, but it doesnt turn it off. o...
- 19 Oct 2019, 23:54
- Forum: ESP Easy: Software
- Topic: remote send a variable
- Replies: 2
- Views: 8597
Re: remote send a variable
many tnx,
i already tried TaskValueSet 5,4,RemotSend
but with the % it works.
i already tried TaskValueSet 5,4,RemotSend
but with the % it works.
- 19 Oct 2019, 22:21
- Forum: ESP Easy: Software
- Topic: remote send a variable
- Replies: 2
- Views: 8597
remote send a variable
i want to send a variabel via http, i think i need an event, or is it possible to change varibales directly? i tried: on RemoteSend do [DummyVar#TempSetpoint]=RemoteSend endon http://192.168.178.45/control?cmd=event,RemoteSend=50 gives this log: 10043: HTTP: event,RemoteSend=50 10100: EVENT: RemoteS...
- 19 Oct 2019, 21:41
- Forum: ESP Easy: Software
- Topic: count up a variable
- Replies: 2
- Views: 9685
Re: count up a variable
indeed it did , tnx.I think this will work.
- 19 Oct 2019, 21:15
- Forum: ESP Easy: Software
- Topic: count up a variable
- Replies: 2
- Views: 9685
count up a variable
hi i'm trying to count up /down a value that i initialized at boot, with two buttons. On System#Boot do //When the ESP boots, do //[DummyVar#TempSetpoint]=40 TaskValueSet 3,1,40 endon on ButtonLeft#state=0 do //[DummyVar#TempSetpoint]- TaskValueSet 3,1,-1 endon on ButtonRight#state=0 do //[DummyVar#...
- 17 Oct 2019, 19:02
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
i dont quite grasp the utility of "suggested interval"
(does TTL mean time to live?).
is there any difference between using TTL and TaskInterval?
(does TTL mean time to live?).
is there any difference between using TTL and TaskInterval?
- 16 Oct 2019, 22:39
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
man - and i thought i was done^^ <script onload="setInterval()"> var tempVarInterval = 1000; setInterval(async function () { response = await fetch("/json?view=sensorupdate"); myJson = await response.json(); tempVar = myJson.Sensors[1].TaskValues[0].Value; tempVarInterval = myJso...
- 16 Oct 2019, 20:36
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
got it! (i think) if someone is interested: <!DOCTYPE html> <html> <meta name="viewport" content="width=width=device-width, initial-scale=1"> <STYLE> * { font-family: sans-serif; font-size: 16pt; } .button { margin: 4px; padding: 4px 16px; background-color: #07D; color: #FFF; tex...
- 15 Oct 2019, 22:58
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
man - that was just too easy :(.. now the source code looks good, but the console throws SyntaxError: await is only valid in async functions and async generators at me. when i insert this to the console: const response = await fetch("/json?view=sensorupdate"); const myJson = await response...
- 15 Oct 2019, 20:43
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
i think im doing pretty much exact that.
when i save the file as .html the browser shows the sqaure brackets where they should be,
but unfortunately the site is shown as plain text, no idea why.
when i save the file as .html the browser shows the sqaure brackets where they should be,
but unfortunately the site is shown as plain text, no idea why.
- 13 Oct 2019, 11:42
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
i just optimized the code a little, and noticed that when i view the source code in the browser, the square brackets of the array are cut off, and the console shows variable not declared. Why is that? <head> <script> window.addEventListener("load", () => { const response = await fetch(&quo...
- 11 Oct 2019, 18:33
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
tnx, looks like it was a Problem with the Browser - on an other computer it works. now i have a little Problem with my code maybe someone can point me in the right direction. I think it might have something to do with scope, but im not sure. code part: <head> <script> object.onload = function tempSe...
- 09 Oct 2019, 18:48
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
i tried to fetch it this way: const response1 = await fetch('http://192.168.3.10/json'); const myJson1 = await response1.json(); console.log(JSON.stringify(myJson1)); but firefox tells me: "Content Security Policy: The page's settings blocked the loading of a recource http.... is this set in es...
- 20 Sep 2019, 18:06
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
tnx,
i'll try that.
does it make a performance or memory difference using
<espeasyip>/json
or only
<espeasyip>/json?tasknr=<tasknumber>&view=sensorupdate
?
i'll try that.
does it make a performance or memory difference using
<espeasyip>/json
or only
<espeasyip>/json?tasknr=<tasknumber>&view=sensorupdate
?
- 20 Sep 2019, 11:58
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
Re: mini dashboard reload
i´ve tried some code, but somehow it doesnt work: <br><br> <H3>DISTANZ:</h3> <br onload="meineFunktion()"> <script> function meineFunktion() { setInterval(document.write("[s04#Distance]"), 1000); } </script> <br> </HTML> the inspector in firefox is shown in the db2pic.png the fol...
- 19 Sep 2019, 23:11
- Forum: ESP Easy: Software
- Topic: mini dashboard reload
- Replies: 23
- Views: 16595
mini dashboard reload
hi,
is there an option to reload the value of a sensor like [ds18b20#Temperature]
automatically without reloading the whole page?
is there an option to reload the value of a sensor like [ds18b20#Temperature]
automatically without reloading the whole page?
- 06 Sep 2019, 23:57
- Forum: ESP Easy: Software
- Topic: send value via dashboard
- Replies: 4
- Views: 7299
Re: send value via dashboard
there is currently no way to add to this line <td><a class='button link' href="dashboarddemo.esp?cmd=event,valuedown">Down</a> a variable like <td><a class='button link' href="dashboarddemo.esp?cmd=event,valuedown <var>22</var> Down</a> i only can send the whole line via the button, o...
- 24 Aug 2019, 13:14
- Forum: ESP Easy: Software
- Topic: send value via dashboard
- Replies: 4
- Views: 7299
Re: send value via dashboard
my problem starts even earlier.
how to change "button" class to something that accepst a number input and and creates an ok button to send it.
how to change "button" class to something that accepst a number input and and creates an ok button to send it.
- 23 Aug 2019, 23:18
- Forum: ESP Easy: Software
- Topic: send value via dashboard
- Replies: 4
- Views: 7299
send value via dashboard
hi, i want to set the switching temperature of my smartplug on the mini dashboard. i've no html skills whatsoever, maybe someone could give me the code for an textfield which sends its value on button click so far i copied the code from the wiki and added my sensor to display its value, but im not a...
- 23 Aug 2019, 16:15
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
tnx, now it works
- 22 Aug 2019, 22:28
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
not sure if this fits this thread or if i should open a new one.. but when i try to send the command through the esp peer network, it does not work. sending esp rule: On ds18b20#Temperature Do If [ds18b20#Temperature]>-15 sendTo,1,RelayOn EndOn gives 345820: Command: sendto 360794: DS : Temperature:...
- 22 Aug 2019, 19:56
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
yes, thats enough for me for the moment.
maybe i try to get the temperature via http - dont know if that would work.
maybe i try to get the temperature via http - dont know if that would work.
- 22 Aug 2019, 18:53
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
no, i dont think so.grovkillen wrote: ↑22 Aug 2019, 18:40 PS. you're use of that app suggests to me that you have the unit exposed to the internet?
at least it have only entered a local ip..
- 22 Aug 2019, 16:58
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
i`m using an app to send the http request HTTP Request Shortcuts
when i send the command with this app, it switches pretty quick,
if i use a browser it reacts pretty slow.
(maybe the browser keeps state and blocks up the esp? dont know)
when i send the command with this app, it switches pretty quick,
if i use a browser it reacts pretty slow.
(maybe the browser keeps state and blocks up the esp? dont know)
- 22 Aug 2019, 16:46
- Forum: ESP Easy: Software
- Topic: Dashboard shows no peers
- Replies: 5
- Views: 5918
Re: Dashboard shows no peers
sry, didnt find that. normally there is a link to the doc and to the wiki on the config pages. Here it is missing. why are these setings in he advanced tab anyway? maybe they should be moved to the controller config.(the RPIeasy fork does this) also even if set in advanced menu, the controllerlist o...
- 21 Aug 2019, 23:18
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
Re: http send command or rule
tnx,
seems to work.
strangely it looks like if i`m triggering the event through the app the esp react relatively fast,
through the webbrowser it seems to slow down the esp quite a bit.
seems to work.
strangely it looks like if i`m triggering the event through the app the esp react relatively fast,
through the webbrowser it seems to slow down the esp quite a bit.
- 21 Aug 2019, 21:43
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11424
http send command or rule
hi, i tried to send a http command to a Smartplug to switch it on and off with an app. http://192.168.178.33/control?cmd=GPIO,14,0 works to switch the relais, but i also want to swicht a status led. can i send 2 commands in one request? i already have a rule that switches both relais and led with a ...
- 21 Aug 2019, 00:19
- Forum: ESP Easy: Software
- Topic: Dashboard shows no peers
- Replies: 5
- Views: 5918
Re: Dashboard shows no peers
tnx,
UDP port was set to 0.
couldnt find that in the docs.
UDP port was set to 0.
couldnt find that in the docs.
- 20 Aug 2019, 21:08
- Forum: ESP Easy: Software
- Topic: Dashboard shows no peers
- Replies: 5
- Views: 5918
Dashboard shows no peers
hi,
how to configure peer to peer network in espeasy?
i just enabled the p2p controller of both espeasy units and gave them 2 different numbers.
in dashboard i cant choose nodes.
something forgotten to activate?
how to configure peer to peer network in espeasy?
i just enabled the p2p controller of both espeasy units and gave them 2 different numbers.
in dashboard i cant choose nodes.
something forgotten to activate?
- 15 Aug 2019, 22:17
- Forum: ESP Easy: Software
- Topic: ESP-easy new controller
- Replies: 0
- Views: 7058
ESP-easy new controller
hi, would it be possible to add new controllers to espeasy? For example cayenne.mydevices.com needs 36 chars password lenght, it seems like thats the problem why i cant conntect to this service, apart from that the openhab module seems to be sufficent. Otherwise io.adafruit.com needs to have a speci...