Limit of task in file.esp ?
Moderators: grovkillen, Stuntteam, TD-er
Limit of task in file.esp ?
https://www.letscontrolit.com/wiki/inde ... _Dashboard
Is it normal for me to add a maximum of 9 tasks? Subsequent ones do not return any value...
Is it normal for me to add a maximum of 9 tasks? Subsequent ones do not return any value...
Re: Limit of task in file.esp ?
A quick look at the code in WebServer_CustomPage.ino tells me that this .esp file is considered as a single command line (like in the rules)
So I think you're hitting the max. length of a command line.
If you're using shorter names, will it then stop working after 10th or later item?
So I think you're hitting the max. length of a command line.
If you're using shorter names, will it then stop working after 10th or later item?
Re: Limit of task in file.esp ?
Unfortunately, the situation is the same.
Re: Limit of task in file.esp ?
Ah, opened a new beer and now it has become clear.
Just had to hit the right Balmer peak I guess![Lach :)](./images/smilies/icon_e_smile.gif)
So there you have your "10 - 1" or as some people say "9".
I have no idea yet why it is set to "10 - 1", nor if it is needed anymore.
Just had to hit the right Balmer peak I guess
![Lach :)](./images/smilies/icon_e_smile.gif)
Code: Select all
/********************************************************************************************\
Parse string template
\*********************************************************************************************/
String parseTemplate(String &tmpString, byte lineSize)
{
String newString = "";
newString.reserve(lineSize);
parseSystemVariables(tmpString, false);
// replace task template variables
int leftBracketIndex = tmpString.indexOf('[');
if (leftBracketIndex == -1)
newString = tmpString;
else
{
byte count = 0;
byte currentTaskIndex = ExtraTaskSettings.TaskIndex;
while (leftBracketIndex >= 0 && count < 10 - 1)
{
[....]
leftBracketIndex = tmpString.indexOf('[');
count++;
}
[...]
I have no idea yet why it is set to "10 - 1", nor if it is needed anymore.
Re: Limit of task in file.esp ?
So there's nothing I can do about it?
I still have an idea. Create a temp2.esp and in temp1.esp create a button to quickly move between pages...
![Neutraal :|](./images/smilies/icon_neutral.gif)
Re: Limit of task in file.esp ?
Like I said, I have no idea why this limit was introduced in the first place, but you can try and remove (or increase) the limit to see if it does fix your issue.
Re: Limit of task in file.esp ?
How to change? Do I have to compile espeasy again?
Re: Limit of task in file.esp ?
Yep it is part of the source code.
I can also have a look at it, but that may take a while (lots and lots of other issues at hand)
Re: Limit of task in file.esp ?
If you can change it in the next version it would be great. I'll try to compile it myself...
Re: Limit of task in file.esp ?
To what value?
Like I said, I have no idea why this limit is being used in the first place, and also why it has such a strange notation (10 - 1).
So I will not change it until I know what this limit is used for and what may break if it is changed.
Re: Limit of task in file.esp ?
20 would be enough. Or maybe you want to compile such a bulid especially for me?
Re: Limit of task in file.esp ?
Just to let you know, I've been taking a thorough look at the code and made some major changes.
See pull request https://github.com/letscontrolit/ESPEasy/pull/2617
I will build a test build for it, so you can test if it all is working.
It should have no limit any more, except for free memory (which is different per configuration)
At least it should be using quite a bit less memory allocations, which does save time and resources.
Edit:
Please try this test build: https://www.dropbox.com/s/68u55dhvayhok ... 7.zip?dl=0
Re: Limit of task in file.esp ?
Now it's working great.
35 lines and each one gets the data correctly. Is it possible to use it in subsequent versions? I would like to use the latest versions with this feature
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
![Lach :)](./images/smilies/icon_e_smile.gif)
Re: Limit of task in file.esp ?
Well, it is a pull-request, meant to be merged eventually (likely tomorrow)
I've spent almost all free time of today on it to make the routine as memory efficient as possible, since it was quite a resource user with all the memory allocations done inside.
So let's hope it will also make ESPeasy more stable.
I've spent almost all free time of today on it to make the routine as memory efficient as possible, since it was quite a resource user with all the memory allocations done inside.
So let's hope it will also make ESPeasy more stable.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 133 guests