New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json update of Domoticz does not work anymore. #2660
Comments
Hmm, that's a strange replacement of characters: Do you have any task or taskvalue containing |
No I don't. |
Can you test by simply having the last part of that senttohttp sent to log using the command |
LogEntry shows this: |
So at least it is consistent there. |
try this: |
@uzi18 Just curious. |
just a trick, to avoid conversion for ¶, if convert to %20 it should work on domoticz server |
In the logentry it does convert it to I was just having a look at the code and this one seems strange to me: Lines 810 to 833 in a4148c8
I recently split the functions of this code and it should not have changed functionality (apart from having the isFloat check now accepting leading spaces). |
I think the function should be changed.
|
maybe something is wrong with isFloat()/isNumerical() function |
Very well possible, only I cannot see what. What does bother me is that we now have several functions to check numericals. |
OK, took me a while, but I can now say that the change of
(I added the "Rule line" and "Rule action" lines here for debugging to see what may change the string) |
ok so not a bug |
Well, I'm still looking into the other parts of the code matching and parsing numericals. |
Interesting finding, but if the sentence remains intact, why does it noet work anymore. The same sentence did work some odd weeks ago. |
I did find some things with the compare functions which could in some edge cases yield incorrect results. |
Can you test this quick build: |
Fair enough. Daughters are very important. Build:⋄ | 20103 - Mega And it works correctly in Domoticz, but the string is still weird: |
Detecting time compare and value compare could give false matches in some cases.
Your code won't load. The Wemos quits working and has to be power cycled |
Hmm, that's strange. |
Something else is wrong. I can't even load the latest previous release anymore |
I managed to load your code. Unfortunately it does not help. |
OK, thanks for testing. Can you give the output of the |
first you should check this url in your browser: |
myurl actually is my Domoticz host on a rpi. |
so it should work, you can try to use ip address instead myurl in rules |
@TD-er The device collecting the data is a MHZ-19 CO2 sensor. It is only available in test mode. And the rules are: |
Can you also give the output of the Does Domoticz also have some hints in the logs to see what's going on? |
I have no clue how to get the output of espeasy. In the log of domoticz are no hints at all. And last but not least, i am away from home for a week. |
The json page is just in the browser. Or you use the url |
…#2660) The changed rules parsing may have added some spaces in replaced variables. Adding a trim() call to the parseString does remove any existing or added spaces in the parameter.
I made a test build which also includes a lot of other changes. |
Sure. I will do that today or tomorrow.
Did you by any chance include pmsx003 dust module in it?
Op vr 25 okt. 2019 10:37 schreef Gijs Noorlander <notifications@github.com>:
… I made a test build
<https://www.dropbox.com/s/7jrwom3mhluspbz/ESPEasy_mega-20191016-11-PR_2667.zip?dl=0>
which also includes a lot of other changes.
Can you please test it to see if sendtohttp now works like it should and
also if I broke something else?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2660?email_source=notifications&email_token=AA4CMGEXQXDVS3JC2J5D7LLQQKV6FA5CNFSM4JAIKOLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECHULLY#issuecomment-546260399>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4CMGAXOPGH4JN4BD42BNDQQKV6FANCNFSM4JAIKOLA>
.
|
Hmm P053 is included in the "testing" build and those failed to build in my test build due to size restrictions. |
@TD-er Your last test build works with respect to the json update.
Would like to have Nextion and the PMSx003 included :-) |
Can you try custom_ESP8266_4M1M_issue2660_Nextion.bin this one? |
Works fine on DUST and Nextion. |
Thanks for testing. |
Checklist
I have...
ESP_Easy_mega-20181001_test_ESP8266_4096_VCC.bin
)Steps already tried...
.bin
files are included in the ZIP)If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!
Summarize of the problem/feature request
Build:⋄ | 20104 - Mega
System Libraries:⋄ | ESP82xx Core 2.6.0-dev stage, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ | mega-20191003
Plugins:⋄ | 78 [Normal] [Testing]
Build Md5: | 34624f5fdcf92673bd2d8b2cf9fefbf
I try to update a dummy Air Quality device in Domoticz using a json syntax.
Rules sends:
sendtohttp myurl,8080,/json.htm?type=command¶m=udevice&idx=663&nvalue=[CO2#PPM]
In the log it looks like:
sendtohttp myurl,8080,/json.htm?type=command¶m=udevice&idx=663&nvalue=390
The effect is that when I enter:
myurl:8080/json.htm?type=command¶m=udevice&idx=663&nvalue=[CO2#PPM]
in a browser, I get an update in Domoticz.
With the sentence in Rules, I don't.
It used to work before.
Expected behavior
YOUR TEXT GOES HERE
Actual behavior
YOUR TEXT GOES HERE
Steps to reproduce
System configuration
Hardware:
ESP Easy version:
ESP Easy settings/screenshots:
Rules or log data
The text was updated successfully, but these errors were encountered: