Double Slider not running on ESP, but running well locally

All that relates to Javascript, CSS, HTML, ....
User avatar
cicciocb
Site Admin
Posts: 2055
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1354 times
Contact:

Re: Double Slider not running on ESP, but running well locally

Post by cicciocb »

I tested on an ESP32 with wokwi, I'll try later on a real esp8266
User avatar
Electroguard
Posts: 860
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 274 times
Been thanked: 322 times

Re: Double Slider not running on ESP, but running well locally

Post by Electroguard »

Double-ended 24hr slider for setting On and Off times sounds like a neat usage.

I would be worried about having all my eggs in one basket (or chickens in the hen house) if running a critical 24/7 program which depends on javascript. I have several Annex devices which run 24/7 (including my Sentry Talking Alarm, Time Server, Weather Server, etc). All can be monitored and controlled from browser, but if I forget to disconnect the webpage then it can cause the javascript to eventually twist itself into a knot that can hang the device or crash its wifi connection.
It's not Annex's fault, which has kept running for months if not connected - it's the javascript connections screwing themselves up, and survival time depends on the amount of javascript interaction with the webpage (and perhaps my FF browser)... but a ship will eventually sink from any size of leak.
Am only bringing it up cos lives could be at stake.
Has caught me out too many times, so now I program my 24/7 devices to reboot nightly and start with a clean slate every day.

Wokwi sounds like a chinese pee-pot... just saying.
User avatar
cicciocb
Site Admin
Posts: 2055
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1354 times
Contact:

Re: Double Slider not running on ESP, but running well locally

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Fri Sep 29, 2023 1:26 pm Hi cicciocb,

this is absolutely great! Thanks a million.
Unfortunately, after a procedural life, I never got these objects right.

Hi Electroguard,

I found this to be the most user friendly way to control the opening and closing time of our henhouse door.
But I'm sure there are many other uses of this nice widget.

Cheers

Ulli
Just tested on a real ESP8266 and it works as expected.
Are you sure to have the files nouislider.min.css and nouislider.min.js uploaded on the "/" folder of the module?

this what I have
image.png
You do not have the required permissions to view the files attached to this post.
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Re: Double Slider not running on ESP, but running well locally

Post by ulli »

Yes, I have both files uploaded and I see exactly the same as you do.

Thanks again for your support.
The light at the end of the tunnel has been switched off for energy saving reasons.
Post Reply