Is this possible? Store data from Asus Router ajax .asp page for Temperature data.
-
Local expressions are only evaluated when the parent rule is evaluated. The changing of the
rawResponse
local variable does not cause an evaluation of the other variables. These would need to be global. -
@toggledbits OK thanks I will change them to global variables and a see.
My comment before the last one, both of those expressions were global, yet one of them didn't seem to be evaluating and I wasn't sure why..
-
OK I changed all three expressions to be global ones instead.
I waited a while, but a similar thing as yet they have not been evaluated.
I then press Play on them but still nothing.
I then ran the action in the rule that pulls down the Free Memory data, but they still say (has not been evaluated)
Edit: I am on build, latest-23196-40ef07f4, just checked I am up to date it seems.
Restarting MSR also doesn't help. I don't understand why these global variables don't seem to be evaluating.
-
toggledbitswrote on Jul 28, 2023, 3:23 PM last edited by toggledbits Jul 28, 2023, 11:29 AM
Not showing enough work here. What sets
RouterMemoryRaw
? Need detailsEdit: also, did you hard refresh after restarting MSR?
-
@toggledbits said in Is this possible? Store data from Asus Router ajax .asp page for Temperature data.:
What sets RouterMemoryRaw? Need details
A rule that I just set to run every hour.
@toggledbits said in Is this possible? Store data from Asus Router ajax .asp page for Temperature data.:
also, did you hard refresh after restarting MSR?
Yes I did.
Its been several days and these global expression still say (has not been evaluated)
Thanks
-
Works fine for me. Restart MSR if you have not, and hard refresh. They will be evaluated at restart. If they still show not evaluated, you need to dig deeper.
-
@toggledbits said in Is this possible? Store data from Asus Router ajax .asp page for Temperature data.:
Restart MSR if you have not, and hard refresh. They will be evaluated at restart
Just tried that and still not evaluated. I did look in the log but couldn't see anything obvious that stuck out.
-
I just deleted all 3 Global Expressions and recreated them, then restarted MSR and they still don't evaluate.
-
Rebooting the host Linux box doesn't help either. I am baffled as to why they do not evaluate.
-
What about where the values are used? Ignore the global expression displayed state/value for a moment, and look at any rules/conditions that use these globals. What do they show?
-
@toggledbits said in Is this possible? Store data from Asus Router ajax .asp page for Temperature data.:
What about where the values are used?
I didn't get that far yet in setting up the rule, as it seemed to not be working etc.
I was going to create other actions to send the values to a mutl-string device in Vera.
This is all that is in the rule currently
-
OK, but the target variable shown there is different from the one used in the expressions...
RouterMemoryResponse
vsRouterMemoryRaw
-
cw-kidreplied to toggledbits on Jul 30, 2023, 5:47 PM last edited by cw-kid Jul 30, 2023, 1:48 PM
That's because I just renamed the global expression to see if that made any difference.
-
-
Sorry, but let's stick with one issue at a time, please.
I want to see if that Expressions page view is actually broken and not showing complete/valid data. Make a dummy rule that contains a variable expression condition using the free memory value, and show what that displays for "current value" in both the rule editor and in the rule status view.
-
-
Can you make sure
RouterMemoryResponse
is defined before the other two variables in the list, restart MSR and check again. -
I can yes, however before I deleted them all and recreated them, the "RouterMemoryRaw" was above the other two in the list.
-
-
And the rule?
42/77