Search found 57 matches

by wiredcharlie
16 Dec 2023, 18:19
Forum: ESP Easy: Software
Topic: Trigger Event on Pulse Count
Replies: 1
Views: 1096

Trigger Event on Pulse Count

I'm using a hall effect liquid meter like this: https://espeasy.readthedocs.io/en/lates ... FS401.html

Is there a way to trigger an event when a value has been reached? (eg to stop a pump).

Thanks

Tony
by wiredcharlie
22 Aug 2023, 10:14
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

ESP_Easy_mega_20221224_normal_ESP8266_4M1M_VCC Dec 24 2022 (coloured rules) 10660 mS ESP_Easy_mega_20221105_normal_ESP8266_4M1M Nov 5 2022 (coloured rules) 11356 mS ESP_Easy_mega_20220809_normal_beta_ESP8266_4M1M Aug 9 2022 590 mS ESP_Easy_mega_20220616_normal_ESP8266_4M1M Jun 16 2022 438 mS From ob...
by wiredcharlie
20 Aug 2023, 23:59
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

In older builds I may have had the WiFi scan performed async, so it wasn't blocking, but that gave a lot of issues in connecting to WiFi.
Ahhh.....

Do you remember which is the newest older build with async wifi?

Thanks
by wiredcharlie
20 Aug 2023, 19:48
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

Thanks. But I appear to have not been clear. I am interested in the time interval between powering the device and being able to execute On Boot in rules. Experiment: On System#Boot Do TaskValueSet,1,1,%uptime_ms% longpulse_ms,2,0,5000 Endon ESP_Easy_mega_20220616_normal_ESP8266_4M1M Jun 16 2022 438 ...
by wiredcharlie
16 Aug 2023, 09:46
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

So On Boot is not executed until Wi-Fi is connected?
by wiredcharlie
14 Aug 2023, 22:05
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

That's really useful, thank you. I'm using a late version with rules cache. The overall performance is fast enough. My only concern is the time between applying power and seeing output on the LED display. I think what you're saying is that this is a function of the size of the rules file only, becau...
by wiredcharlie
12 Aug 2023, 14:16
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Re: Boot Time

I have a Rules file of 7657 characters - quite a bit of annotation In Devices: 7 segment display 1 wire Temp Switch 1 Switch 2 Reg Level control (for storing value between power cycles) 4 Dummy Devices Also, I don't really understand multiple Rules files. Are they all executed as if they are one file?
by wiredcharlie
12 Aug 2023, 09:37
Forum: ESP Easy: Software
Topic: Boot Time
Replies: 15
Views: 1530

Boot Time

I have an LED display on my application. When I hadn't written much code, initialization was instant. But as my code has grown there is now a very noticeable boot delay. What factors affect boot time and how can I shorten it?

Thanks
Tony
by wiredcharlie
19 Jul 2023, 12:26
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1627

Re: Switch State On Boot

Thanks TD-er!

That was really helpful. Also, by triggering the Monitor instruction after boot, I removed the unintended consequence of pre-setting the switch prior to power on.
by wiredcharlie
18 Jul 2023, 21:20
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1627

Re: Switch State On Boot

Have you enabled "Send boot state" in the switch-configuration? Tried that - but thanks :) It is not sure that the Switch plugin or 7Segment plugin are already initialized at the System#Boot event, so you might want to wait a little, ...but I had it displaying something else from On boot ...
by wiredcharlie
18 Jul 2023, 18:20
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1627

Switch State On Boot

I have a physical toggle switch as an input. I want to be able to read the sate of the switch onboot. Experiment: On System#Boot do If Pump#State=1 7dtext,On Endif If Pump#State=0 7dtext,Off Endif Endon No output! The switch has no state until it reveals itself by changing state?
by wiredcharlie
05 Jul 2023, 12:01
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4337

Re: PID control thermostat.

Nice work!

I have a coffee machine where I used a sort of fuzzy logic approach to temperature control, so I'd really like to try your PID. How did you tune the PID values?
What thermostat probe did you use?
by wiredcharlie
01 Jul 2023, 12:38
Forum: ESP Easy: Software
Topic: QR Code on OLED
Replies: 11
Views: 3351

Re: QR Code on OLED

Not yet, but I guess it would be a nice feature to setup a "captive portal" which will redirect to the dashboard when available. There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured. So I guess we can add a checkbox to...
by wiredcharlie
03 Jun 2023, 12:01
Forum: ESP Easy: Software
Topic: ChatGPT wrote a PID Controller
Replies: 5
Views: 2566

Re: ChatGPT wrote a PID Controller

Oh - didn't realise I posted on April 1st! I've been playing with ChatGPT quite a bit, and would characterise it as similar to a smart journalist that didn't go to any maths, science or engineering lessons and understands the world from reading stuff written by other journalists that didn't go to an...
by wiredcharlie
01 Apr 2023, 09:50
Forum: ESP Easy: Software
Topic: ChatGPT wrote a PID Controller
Replies: 5
Views: 2566

ChatGPT wrote a PID Controller

Using Easy ESP rules type programming for ESP8266 outlined on this web site: https://espeasy.readthedocs.io/en/latest/ , write rules to implement a PID temperature controller. Sure, here's an example of implementing a PID temperature controller using Easy ESP rules type programming for ESP8266: 1. ...
by wiredcharlie
12 Feb 2023, 15:16
Forum: ESP Easy: Software
Topic: PostToHTTP
Replies: 3
Views: 1109

Re: PostToHTTP

Thanks!

This worked:
PostToHTTP,http://192.168.1.102/reboot.json

ESP_Easy_mega_20230204_normal_ESP8266_4M1M

https://github.com/letscontrolit/ESPEas ... /541875390
by wiredcharlie
12 Feb 2023, 12:55
Forum: ESP Easy: Software
Topic: PostToHTTP
Replies: 3
Views: 1109

PostToHTTP

I'm trying to do the equivalent of: curl -X POST http://192.168.1.102/reboot.json I tried this in Tools-Command PostToHTTP,http://192.168.1.102,,reboot.json Command Output Command unknown: PostToHTTP,http://192.168.1.102,,reboot.json Does this mean that the build I'm using doesn't include PostToHTTP...
by wiredcharlie
05 Jan 2023, 19:08
Forum: ESP Easy: Software
Topic: https - SendToHTTP ?
Replies: 1
Views: 869

https - SendToHTTP ?

Can SendToHTTP do https?

Thanks!
by wiredcharlie
20 Nov 2022, 18:57
Forum: ESP Easy: Hardware
Topic: MAX6675 Interval
Replies: 2
Views: 1166

Re: MAX6675 Interval

Thank you - really helpful :D
by wiredcharlie
20 Nov 2022, 09:28
Forum: ESP Easy: Hardware
Topic: MAX6675 Interval
Replies: 2
Views: 1166

MAX6675 Interval

Using MAX6675 with K-type thermocouple, on the Devices page the Interval is set to 1 sec, but the output is quite noisy.

Is it possible to set an interval below 1 sec then do some averaging in the Rules?

Thanks

Tony
by wiredcharlie
09 Oct 2022, 17:17
Forum: ESP Easy: Software
Topic: PWM with Solid State Relay
Replies: 6
Views: 2234

Re: PWM with Solid State Relay

I did paste from a text editor; but the when I tried on another board, I typed it directly into the Rules - so don't think it's special characters.
by wiredcharlie
09 Oct 2022, 16:35
Forum: ESP Easy: Software
Topic: PWM with Solid State Relay
Replies: 6
Views: 2234

Re: PWM with Solid State Relay

Just an observation here, Pulse,0,1,([INT#30])*10 Kills the webserver when uploaded to Rules: 192008: GPIO : port#0: set to 0 192020: ACT : oledframedcmd,2,3% 192199: Upload: START, filename: rules1.txt 192321: Upload: WRITE, Bytes: 1999 192322: Upload: END, Size: 1999 192496: Webserver 1 Arguments:...
by wiredcharlie
09 Oct 2022, 13:37
Forum: ESP Easy: Software
Topic: PWM with Solid State Relay
Replies: 6
Views: 2234

Re: PWM with Solid State Relay

Thank you
by wiredcharlie
08 Oct 2022, 17:42
Forum: ESP Easy: Software
Topic: PWM with Solid State Relay
Replies: 6
Views: 2234

PWM with Solid State Relay

I'm using an S.S.Relay to drive a heater in a coffee boiler. The SSR does zero voltage switching of AC mains. I'm using PWM on a GPIO to vary the heater power. I just got round to looking at the PwM on an oscilloscope and I see it is 1Khz!!!! Is there a way to reduce the PWM frequency or a cunning w...
by wiredcharlie
12 Sep 2022, 11:15
Forum: ESP Easy: Hardware
Topic: MAX6675 K-type Thermocouple
Replies: 4
Views: 2661

Re: MAX6675 K-type Thermocouple

Polarity
by wiredcharlie
27 Aug 2022, 21:00
Forum: ESP Easy: Software
Topic: QR Code on OLED
Replies: 11
Views: 3351

Re: QR Code on OLED

Yes it is. But what if then flashed up an optional bitmap for an optional period of time? Eh?
by wiredcharlie
27 Aug 2022, 17:47
Forum: ESP Easy: Software
Topic: QR Code on OLED
Replies: 11
Views: 3351

Re: QR Code on OLED

IMG_2165.jpg
IMG_2165.jpg (20.24 KiB) Viewed 3329 times
Just one further thought. If the splash screen was customisable with a file and a settable time, that would do the trick!

But, no pressure. :)
by wiredcharlie
27 Aug 2022, 14:34
Forum: ESP Easy: Software
Topic: QR Code on OLED
Replies: 11
Views: 3351

Re: QR Code on OLED

There are examples on Youtube of QR code reading from 1.3" OLED - so that bit is viable. And my own experiments with small QR codes on a laptop screen give me some confidence. you can draw the QR code using rules - how can I do this? I have a 1.3" SH1106. There is already code for a "...
by wiredcharlie
27 Aug 2022, 12:45
Forum: ESP Easy: Software
Topic: QR Code on OLED
Replies: 11
Views: 3351

QR Code on OLED

I have made a heater controller for an Espresso machine. I have an OLED display and a web interface (dashboard) to set the temperature. My idea is to use the ESP in Access Point mode and show the QR code for the AP on start up. Then, ideally the dashboard would be the default web page. Tall order, I...
by wiredcharlie
27 Aug 2022, 09:59
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Thanks for your help. please don't use delay in rules. That's an absolute big no-no. My loop drives a heater. It applies heat for a set period, then waits before checking the effect. The Delay provides a comprehensible way of doing this. I assume the alternative is to break the whole lot up into sep...
by wiredcharlie
24 Aug 2022, 22:10
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Works with:

ESP_Easy_mega_20220809_normal_ESP8266_4M1M

I didn't notice the "302" when I loaded it. what does it mean?

Thanks

Tony
by wiredcharlie
24 Aug 2022, 22:03
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Sorry - I have 302 - whatever that is!?
by wiredcharlie
24 Aug 2022, 22:01
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Sorry, I don't understand:

normal normal build: ESP_Easy_mega_20220809_normal_ESP8266_4M1M
by wiredcharlie
24 Aug 2022, 12:03
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Screenshot 2022-08-24 at 10.57.11.png
Screenshot 2022-08-24 at 10.57.11.png (23.83 KiB) Viewed 4493 times
Build: ESP_Easy_mega_20220809_normal_302_ESP8266_4M1M Aug 9 2022

:cry:
by wiredcharlie
24 Aug 2022, 11:27
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Ath - I'm not disagreeing with you at all - and I'm really grateful for your help. In fact, I'm so grateful that such a powerful tool (ESP EASY) is available for free. To have made so much progress with this project with so little programming is amazing. Thank you! I agree that what you have suggest...
by wiredcharlie
24 Aug 2022, 00:47
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Thanks for the coding tips - I will optimise it with your suggestions.

But back to the persistent problem - can you see why that won't work?
by wiredcharlie
23 Aug 2022, 19:15
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

No I didn't forget the endon. :D I just didn't post the full script: On System#Boot do GPIO,0,0 oledframedcmd,linecount,2 oledframedcmd,display,high oledframedcmd,1,Target: oledframedcmd,2,[Set_Temp#GetLevel] delay,2000 timerSet,1,2 endon On Rules#Timer=1 do // Target temp let,1,[Set_Temp,#GetLevel]...
by wiredcharlie
23 Aug 2022, 18:45
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

I notice you added a comma - but that didn't help. endon is included - puzzled now!
by wiredcharlie
23 Aug 2022, 17:10
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

That's what I thought, but no result. From rules: On Rules#Timer=1 do // Target temp let,1,[Set_Temp#GetLevel] Log: 4509072: EVENT: Rules#Timer=1,1 4509095: ACT : let,1,Y 4509100: Calculate: Unknown token input: Y = 0 4509106: ACT : let,2,0-33 4509115: ACT : let,3,0-15 4509124: ACT : let,4,0-7 45091...
by wiredcharlie
23 Aug 2022, 15:44
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Thanks, that works. But then in the Rules, [Set_Temp#GetLevel] does not return a value.
by wiredcharlie
22 Aug 2022, 12:07
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Re: Persistent Variable

Thanks for that. What would the URL look like to set the Set Level?

I tried /control?cmd=config,3,Set_Temp,SetLevel,89

...but I seem to be barking up the wrong tree.

Help appreciated.

Tony
by wiredcharlie
22 Aug 2022, 09:39
Forum: ESP Easy: Software
Topic: Persistent Variable
Replies: 29
Views: 4643

Persistent Variable

Hi I've made an Espresso temperature controller and need to be able to store the set temperature as a variable that survives power loss. My plan is to use a custom dashboard.esp to set the temperature with a simple web interface. I can't see a way of storing a persistent variable. Please help! Tony
by wiredcharlie
22 Aug 2022, 09:20
Forum: ESP Easy: Hardware
Topic: MAX6675 K-type Thermocouple
Replies: 4
Views: 2661

Re: MAX6675 K-type Thermocouple

Spot on!

Thank you
by wiredcharlie
20 Aug 2022, 18:02
Forum: ESP Easy: Hardware
Topic: MAX6675 K-type Thermocouple
Replies: 4
Views: 2661

MAX6675 K-type Thermocouple

I see a rather puzzling behaviour here. Initial reading is 21.8 which is plausible room temperature. But then if I warm up the sensor, the value goes down!

What am I missing?

Please help!

Tony
by wiredcharlie
31 Jan 2022, 19:15
Forum: ESP Easy: General Discussion
Topic: Another WiFi Watchdog
Replies: 4
Views: 5091

Re: Another WiFi Watchdog

Ath wrote: 31 Jan 2022, 16:41 You have seen the "Restart WiFi Lost Conn:" setting on the Tools/Advanced page, right?
Yes, but my old Sonoff doesn't like Mega
by wiredcharlie
31 Jan 2022, 16:43
Forum: ESP Easy: Software
Topic: irSEND - Multi-function Tester TC1
Replies: 1
Views: 8273

irSEND - Multi-function Tester TC1

irSEND,NEC,01fe0bf4,32

IMG_1701.jpg
IMG_1701.jpg (39.27 KiB) Viewed 8273 times
How can I convert from the value shown on the tester to the value required by irSEND command?

Thanks
Tony
by wiredcharlie
31 Jan 2022, 16:28
Forum: ESP Easy: General Discussion
Topic: Another WiFi Watchdog
Replies: 4
Views: 5091

Re: Another WiFi Watchdog

Fair
by wiredcharlie
31 Jan 2022, 15:46
Forum: ESP Easy: General Discussion
Topic: Another WiFi Watchdog
Replies: 4
Views: 5091

Another WiFi Watchdog

Problem: Sometimes ESP falls off the WiFi and needs reseting. Solution: Make it reset itself. How: Two ESPs on the same network make HTTP requests of each other. The receipt of the HTTP request resets a timer. If the timer expires the ESP reboots. On System#Boot do timerSet,1,60 endon On System#Boot...
by wiredcharlie
28 Oct 2020, 09:40
Forum: uPyEasy: General Discussion
Topic: String Variable
Replies: 1
Views: 16469

String Variable

Please forgive me if this is covered in the docs, but if it is, there is not an example I can understand. I want to use a string variable: Let,4,"Bedroom" // Room Then later: sendtoHTTP,192.168.1.100,9000,/?player=[Var#4]&p0=mixer&p1=volume&p2=%2b[Var#3] Please help! Tony
by wiredcharlie
24 Oct 2020, 19:36
Forum: ESP Easy: General Discussion
Topic: Short DeepSleep?
Replies: 4
Views: 7105

Re: Short DeepSleep?

Thanks!
But I couldn't get "wifimode,off" and "wifimode,sta" to work. Can't find any documentation on this feature either. Please could you point me towards the firmware / docs?

Cheers

Tony