Search found 10 matches

by RonEN
Friday 24 November 2023 16:17
Forum: Switches and Scenes
Topic: JSON call does not work in new version
Replies: 17
Views: 7391

Re: JSON call does not work in new version

Gentlemen, Success. :D After many hours of fussing and trying, I finally got it working the way I want it to. The call is slightly different than what you suggested, but it works for me. Below is my test program. #!/usr/bin/python3 #imports import json import requests # Setup variables Domoticz ...
by RonEN
Thursday 23 November 2023 23:04
Forum: Switches and Scenes
Topic: JSON call does not work in new version
Replies: 17
Views: 7391

Re: JSON call does not work in new version

A breakthrough! With the above help I now indeed get the text in my device and the symbol changes color. :) URLstring="http://192.168.51.23:8080/json.htm?type=command&param=udevice&idx=7&nvalue=5+&svalue=Put vol" However, if I want to use the variables in the string of my first post in the current ...
by RonEN
Wednesday 22 November 2023 20:32
Forum: Switches and Scenes
Topic: JSON call does not work in new version
Replies: 17
Views: 7391

Re: JSON call does not work in new version

Gents, Thanks for your thoughts. I've tried some tips and I think it's in the Python call. If I copy the code from HTTP to the browser, it works and I get the text in the device and the coloring of the symbol in Domoticz. When I run the Python code in a terminal I get the error "SyntaxError: Invalid ...
by RonEN
Tuesday 21 November 2023 10:54
Forum: Switches and Scenes
Topic: JSON call does not work in new version
Replies: 17
Views: 7391

Re: JSON call does not work in new version

Thanks for the responses. @willemd : I have already set the trusted networks settings for the IP address. I don't get an access denied message @waltervl : I have seen that there is a conversion tool from Python2 to Python3. I think I'll give that a try. Individual changes I tried from P2 to P3 did ...
by RonEN
Monday 20 November 2023 20:37
Forum: Switches and Scenes
Topic: JSON call does not work in new version
Replies: 17
Views: 7391

JSON call does not work in new version

After updating to the latest version and installing Python3, the JSON call below no longer works. httpresponse = urllib.urlopen("http://"+ domoticzserver +"/json.htm?type=command&param=udevice&idx=27&nvalue=" + str (Ingang_17_1) + "&svalue=" + str (Text_17) ) I've tried many things but I can't get ...
by RonEN
Tuesday 14 November 2023 18:25
Forum: Switches and Scenes
Topic: Inputs for MCP23017
Replies: 2
Views: 1507

Re: Inputs for MCP23017

Hey Waltervl,

Thanks for your comment. I read the post and it is from 2019. I hope someone has come up with a solution in the meantime.

Cheers,
Ronald.
by RonEN
Tuesday 14 November 2023 18:15
Forum: Other questions and discussions
Topic: rework code for hardware
Replies: 1
Views: 491

Re: rework code for hardware

Hey nielsvisser,

I am also looking to provide the MCP23017 with inputs via the hardware gateway. Have you already found a solution?

Cheers,
Ronald.
by RonEN
Tuesday 14 November 2023 12:55
Forum: Switches and Scenes
Topic: Inputs for MCP23017
Replies: 2
Views: 1507

Inputs for MCP23017

Dear reader, I have several MCP23017 connected to the GPIO via an I2C. Via dummy hardware and some code I can use both inputs and outputs. You can also create an i2c sensor gateway in the hardware and then select the MCP23017. In devices you then have all ports of the MCP23017 available (and it ...
by RonEN
Monday 20 June 2016 11:29
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Fighting with access to MCP23017 I/O Ports
Replies: 11
Views: 11255

Re: Fighting with access to MCP23017 I/O Ports

Hi SMQ,

Although it is some time ago since you wrote your message, i am very interesseted in your solution to control the MCP23017.
I hope you can help me with your "tutorial" :)

Regards,

Ronald.
by RonEN
Tuesday 07 June 2016 15:03
Forum: Other questions and discussions
Topic: MCP23017 over I2C
Replies: 0
Views: 1132

MCP23017 over I2C

Hello, I just swtiched from NODO to Domoticz. Because i have a complete I2C infrastructure round my house, coupled with MCP23017 and Arduino Nano's, you can imagine that i would like to keep this setup. I have the I2C bus on the Raspberry running and with the Raspberry commandline i can switch ...