Rules colors
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 10
- Joined: 23 Nov 2023, 21:30
Rules colors
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?
But since the last ~2 releases, it seems that the highlighting is gone.
Has it become an option, or is it completely removed?
Re: Rules colors
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)
-
- Normal user
- Posts: 10
- Joined: 23 Nov 2023, 21:30
Re: Rules colors
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.
Re: Rules colors
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)
Re: Rules colors
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
/Ton (PayPal.me)
Re: Rules colors
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.
-
- Normal user
- Posts: 10
- Joined: 23 Nov 2023, 21:30
Re: Rules colors
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.
-
- Normal user
- Posts: 10
- Joined: 23 Nov 2023, 21:30
Re: Rules colors
you need to add/change following:azonneveld wrote: ↑12 Sep 2024, 20:39 Which option do I need to enable to get the syntax highlighting?
Code: Select all
#define FEATURE_RULES_EASY_COLOR_CODE 1
Re: Rules colors
Well, removing them would really disappoint 'some' users (including myself)... We're always trying to be as much backward compatible as possible.
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 .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.
/Ton (PayPal.me)
Re: Rules colors
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.
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.
Re: Rules colors
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
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)
Re: Rules colors
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.
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.
Re: Rules colors
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... but I also use them for validating backward compatibility with the P2P protocol)
(I'll probably be upgrading my smart plugs in the near future... but I also use them for validating backward compatibility with the P2P protocol)
/Ton (PayPal.me)
Who is online
Users browsing this forum: No registered users and 0 guests