Page 1 of 1

JSON not working properly outside Domoticz webserver / No Php support in Domoticz own webserver

Posted: Monday 09 October 2017 19:32
by perrydomoticz
Version: 3.8153
Platform: Raspberry Pi 3
Plugin/Hardware: Razberry 2 z-wave
Description:

I'm running a custom website with a frontend for switches in Domoticz based on JSON. I've gotten the code from the three youtube companion articles found here: https://fabuloushomeautomation.wordpress.com/

I used to have the website running on Apache webserver on Raspberry Pi, and everything worked perfectly until I updated Domoticz to a new version. After this, it has only worked one way (if something changes in Domoticz, it does so in my website also --- but if I press a button on my website, nothing happens).

I know that there's nothing wrong with the coding, since it works perfectly when I upload the site to within Domoticz own webserver.
Domoticz own webserver, however, doesn't have Php-functionality, which I need for other purposes.

That leaves me with two possible ways of solving this:
1.) Add Php-functionality to Domoticz own (proprietary?) webserver
2.) Somehow solve the issue that JSON-commands only works one way outside of Domoticz webserver.

I'm at a loss to know how to go about this
Plz help.

Re: JSON not working properly outside Domoticz webserver / No Php support in Domoticz own webserver

Posted: Wednesday 18 October 2017 9:44
by holdemblow
After updating Domoticz it's kinda ignorant assuming the script should still be okay as it worked before..
Probably the call or arguments to switch on/off have changed.

Probably wise to check the logs of your php scripts as the information you're currently providing isn't helping much :)

Re: JSON not working properly outside Domoticz webserver / No Php support in Domoticz own webserver

Posted: Wednesday 18 October 2017 10:15
by jannl
Starting a one point, the password for switches needs to be in the json call. This once was in a Domoticz update.
Do you use protected switches?