Search found 117 matches

by JanvdW
Thursday 07 December 2023 21:42
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Problem solved. I changed the IP address in the json/curl commands with the internal IP address of the Docker container. That was probably what you meant, right? Works fine now! Anyway, in case of Docker one should use the internal Docker IP address for json/curl commands. I learned a lot about the ...
by JanvdW
Thursday 07 December 2023 17:59
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Right; that leads to the same error:

Code: Select all

<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></b 
by JanvdW
Thursday 07 December 2023 17:12
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

If you are using docker you have to add the internal IP adress of the docker container to the trusted network setting . So check that in the container with docker exec -it domoticz cat /etc/hosts I checked this IP address but it's already in the trusted network list. I saw this IP address in ...
by JanvdW
Wednesday 06 December 2023 23:58
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Recently I restored the Domoticz database on the Docker implementation. I can't find any, but maybe a reference to the previous Docker implementation (on another IP address) is left somewhere?
by JanvdW
Wednesday 06 December 2023 23:53
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

So please answer my questions: Are you using docker? Are you using a proxy for external access, and if yes, how did you configure it? Do you see an entry for unauthorized access in your Domoticz log when you run the dZvents acript? Yes, I use Docker No, I don't use a proxy for external access Yes ...
by JanvdW
Wednesday 06 December 2023 23:44
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

And there is my doubt, I think the server IP is not correct. Also Domoticz log should give a message about unauthorized access with an IP. Also all tests should be done without user:password entries in the url. I am sure about the IP address and checked it over and over again. And, it works fine in ...
by JanvdW
Wednesday 06 December 2023 23:38
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

And I guess running the same curl command from the command line using ssh to that machine works without problems....... My guess is that it will not but we will see. dZvents opens a new session with openUrl() so the IP of the server has to be in the trusted network settings. It has always been so ...
by JanvdW
Wednesday 06 December 2023 23:34
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

willemd wrote: Wednesday 06 December 2023 22:46 And I guess running the same curl command from the command line using ssh to that machine works without problems.......
Correct; on the command line there's no problem. Results as expected
by JanvdW
Wednesday 06 December 2023 22:27
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

No, I changed the url, port and idx
by JanvdW
Wednesday 06 December 2023 22:19
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Response is: 2023-12-06 22:14:00.570 Status: dzVents: Debug: ExecuteShellCommand: command = curl "http://ip:port/json.htm?type=command&param=getdevices&rid=idx" 2023-12-06 22:14:00.570 Status: dzVents: Debug: ExecuteShellCommand: callback = anothertest 2023-12-06 22:14:00.570 Status: dzVents: Debug ...
by JanvdW
Wednesday 06 December 2023 20:24
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Good question: in that case the same problem occurs (json url works in the browser, but fails with 'Unauthorized' when called in dzvents code). This problem is had to understand. How can Domoticz fail to run a script against its own database. Just to be sure: you have one single Domoticz ...
by JanvdW
Wednesday 06 December 2023 11:01
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Good question: in that case the same problem occurs (json url works in the browser, but fails with 'Unauthorized' when called in dzvents code).
by JanvdW
Wednesday 06 December 2023 10:03
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

Yes, these setttings are ok: the IP range is is trusted and Basic-Auth is on
by JanvdW
Tuesday 05 December 2023 23:29
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

The response of a openURL will be a HTTPresponse, not a ShellCommandResponse. Ah, thanks, you're right. I changed to HTTPresponse and get this response: <html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html> So, it is definitely an authorization error, but I don ...
by JanvdW
Tuesday 05 December 2023 20:46
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

Re: dzvents JSON call for Evohome device results in an error [Solved]

I use the full external IP address. Both a https and a http call work seamlessly in an incognito browser : https://<user>:<password>@<full external ip>:<portnumber>/json.htm?type=setused&idx=24&setpoint=10&mode=PermanentOverride&used=true http://<full external ip>:<portnumber>/json.htm?type=setused ...
by JanvdW
Monday 04 December 2023 22:08
Forum: dzVents
Topic: dzvents JSON call for Evohome device results in an error [Solved]
Replies: 34
Views: 3974

dzvents JSON call for Evohome device results in an error [Solved]

I have a weird issue: I try to set Evohome temparature with JSON. I can manually open the following JSON call in a browser, which results in a changes temperature for the Evohome device (idx 24); so the json string is fine: https://<server url:port>/json.htm?type=setused&idx=24&setpoint=10&mode ...
by JanvdW
Monday 04 December 2023 21:51
Forum: General Discussion
Topic: Oficial Docker Container
Replies: 210
Views: 100768

Re: Oficial Docker Container

Sure, I did check that already:

Code: Select all

-rwxr-xr-x 1 root root  1020 Dec  4 21:42 radiator_temp.py
by JanvdW
Monday 04 December 2023 21:45
Forum: General Discussion
Topic: Oficial Docker Container
Replies: 210
Views: 100768

Re: Oficial Docker Container

When I change the shebang like that I receive this error message:

Code: Select all

OCI runtime exec failed: exec failed: unable to start container process: exec /opt/domoticz/evohome-client/radiator_temp.py: no such file or directory: unknown
by JanvdW
Monday 04 December 2023 20:28
Forum: General Discussion
Topic: Oficial Docker Container
Replies: 210
Views: 100768

Re: Oficial Docker Container

I did a fresh install of a RPI4 (64 bit OS Lite), installed the latest Docker container for Domoticz beta and tried to get Evohome via scripting (web) working, but I do not succeed. I installed the evohome client and copied my custom config file (evoconfig.py) and py scripts to this folder with the ...
by JanvdW
Saturday 15 April 2023 11:02
Forum: dzVents
Topic: script to load ENTSOE day ahead electricity prices
Replies: 30
Views: 10169

Re: script to load ENTSOE day ahead electricity prices

I've tried adding this code to the code above to find the lowest price in the day ahead table, but I get an error saying that I am trying to do arithmetic on a nil value (global variable VarIndexStroom). I'm not completely understanding how to work with putting data in some sort of array (which I ...