This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Scripting: Request via API and JSON format file processing
#2
Hello,
I found a way to make my script verbose to better understand what is happening by redirecting messages to the logs.
After the HTTPS request, I inserted the following line of code:
Code:
log("Status code:", code)
And the output is as follows:
Code:
* arg: 1
  * string: Status code:
* arg: 2
  * string: wantread
The variable "code," which works on my PC by returning the value 200, gives me the value "104" when the script runs on the Wiser for KNX. Information online suggests updating libraries such as ssl.https, json, etc. I believe we may need to wait for a future firmware update. I will keep you informed if I manage to get my script working.

Thank you,
NiSAGNEL
Reply


Messages In This Thread
RE: Scripting: Request via API and JSON format file processing - by nisagnel - 06.01.2024, 20:33

Forum Jump: