Rules colors

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
azonneveld
Normal user
Posts: 10
Joined: 23 Nov 2023, 21:30

Rules colors

#1 Post by azonneveld » 23 Aug 2024, 21:47

A while ago syntax highlighting was introduced in the Rules, i really like it.
But since the last ~2 releases, it seems that the highlighting is gone.

Has it become an option, or is it completely removed?

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#2 Post by Ath » 23 Aug 2024, 22:09

Maybe you need to hard-refresh your browser? (ctrl-F5) Or update ESPEasy to the latest release (20240822...) to fetch the latest javascript stuff from CDN (Content delivery network) where for most not-MAX builds the javascript and CSS is retrieved from ;)
/Ton (PayPal.me)

azonneveld
Normal user
Posts: 10
Joined: 23 Nov 2023, 21:30

Re: Rules colors

#3 Post by azonneveld » 23 Aug 2024, 22:16

Ath wrote: 23 Aug 2024, 22:09 Maybe you need to hard-refresh your browser? (ctrl-F5) Or update ESPEasy to the latest release (20240822...) to fetch the latest javascript stuff from CDN (Content delivery network) where for most not-MAX builds the javascript and CSS is retrieved from ;)
Tried that, no effect, on both 14-apr-2024 and 22-aug-2024.

On other devices running older firmware it works (same browser, fw v 24-dec-2022).

BTW I noticed it on collection-G, other collections not tested.

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#4 Post by Ath » 23 Aug 2024, 22:24

Ah, for LIMIT_BUILD_SIZE ESP8266 builds, like all Collection builds, that feature may be disabled for reducing the bin size. That's already been there for quite some time. :?
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#5 Post by Ath » 23 Aug 2024, 22:27

ESP8266 has been deprecated, even by Espressif for some time, so we can only advise to switch to ESP32 (Classic, S3, C3, C6) for improved performance, and more/better features in ESPEasy :D
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 847
Joined: 10 Sep 2020, 16:02
Location: germany

Re: Rules colors

#6 Post by chromo23 » 29 Aug 2024, 16:21

azonneveld wrote: 23 Aug 2024, 21:47 Has it become an option, or is it completely removed?
If you still want the highlighting on the esp8266 i strongly recommend you to make your own custom builds and only add what you really need. ;)

azonneveld
Normal user
Posts: 10
Joined: 23 Nov 2023, 21:30

Re: Rules colors

#7 Post by azonneveld » 12 Sep 2024, 20:39

Ath wrote: 23 Aug 2024, 22:27 ESP8266 has been deprecated, even by Espressif for some time, so we can only advise to switch to ESP32 (Classic, S3, C3, C6) for improved performance, and more/better features in ESPEasy :D
The binaries are still in the releases.
The ESP32 is probably better, but the 8266 is performing well enough for my applications, and I have some stock left.

azonneveld
Normal user
Posts: 10
Joined: 23 Nov 2023, 21:30

Re: Rules colors

#8 Post by azonneveld » 12 Sep 2024, 20:39

chromo23 wrote: 29 Aug 2024, 16:21 If you still want the highlighting on the esp8266 i strongly recommend you to make your own custom builds and only add what you really need. ;)
Which option do I need to enable to get the syntax highlighting?

User avatar
chromo23
Normal user
Posts: 847
Joined: 10 Sep 2020, 16:02
Location: germany

Re: Rules colors

#9 Post by chromo23 » 12 Sep 2024, 21:36

azonneveld wrote: 12 Sep 2024, 20:39 Which option do I need to enable to get the syntax highlighting?
you need to add/change following:

Code: Select all

#define FEATURE_RULES_EASY_COLOR_CODE   1
in custom.h

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#10 Post by Ath » 12 Sep 2024, 21:59

azonneveld wrote: 12 Sep 2024, 20:39 The binaries are still in the releases.
Well, removing them would really disappoint 'some' users (including myself)... :lol: We're always trying to be as much backward compatible as possible.
azonneveld wrote: 12 Sep 2024, 20:39 The ESP32 is probably better, but the 8266 is performing well enough for my applications, and I have some stock left.
Use what you've got, that's fine of course, but when buying new stuff, it's (much) wiser to buy ESP32 of some kind, and to keep things simple, having 8 or 16 MB Flash makes things (ESP)easy, as you'll have all plugins and features included 8-).
/Ton (PayPal.me)

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: Rules colors

#11 Post by Adam » 06 Oct 2024, 02:40

I cant get Rules Colors to work in my (first ever) custom build 'custom_beta_ESP8266_1M.bin' . I have enabled #define FEATURE_RULES_EASY_COLOR_CODE 1 in Custom.h and everything else works perfectly except Rules Colors.

I have the following enabled in my build
C001
C013
N001
P001
P004
P033

Just wondering if I am missing something or the issue is lack of space in 1M build size.

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#12 Post by Ath » 06 Oct 2024, 15:01

Adam wrote: 06 Oct 2024, 02:40 Just wondering if I am missing something or the issue is lack of space in 1M build size.
That feature FEATURE_RULES_EASY_COLOR_CODE is explicitly disabled for all builds that have LIMIT_BUILD_SIZE enabled, and that is enabled for nearly all ESP8266 builds, and for 1M builds explicitly.

You can work around that check by commenting out these 4 lines around line 2808 in file define_plugin_sets.h:

Code: Select all

   #ifdef FEATURE_RULES_EASY_COLOR_CODE
     #undef FEATURE_RULES_EASY_COLOR_CODE
   #endif
   #define FEATURE_RULES_EASY_COLOR_CODE 0
With only your small set of plugins it will fit in a 1M build.

Earlier this week I wrote this:
Please be aware that ESP8266 is declared End-of-life by Espressif, and should not be used for new projects.
The fact that we still support it has to do with the large installed base of ESPEasy on such devices, but new features are mostly excluded from ESP8266 builds for build-size reasons, as the effort to make builds fit is rather daunting, and can better be spent on other ESPEasy features and improvements.
/Ton (PayPal.me)

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: Rules colors

#13 Post by Adam » 06 Oct 2024, 21:05

Thankyou for your reply, I will comment out those lines and try it out.

I have about 7 old smart sockets I bought years ago which I still use today. I think it is great that you still support this stuff otherwise I would probably need to throw them in the bin. Anything I buy now uses esp32.

User avatar
Ath
Normal user
Posts: 3954
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules colors

#14 Post by Ath » 06 Oct 2024, 22:45

I also have a set of those ESP8266 1MB Flash smart plugs, but I use the 1M Normal build on them (haven't upgraded them in a while, as I have to open them and upgrade via a wired connection), but that also doesn't have this feature included.

(I'll probably be upgrading my smart plugs in the near future... :? :lol: but I also use them for validating backward compatibility with the P2P protocol)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: uah007 and 2 guests