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

Moderator: leecollings

Post Reply
perrydomoticz
Posts: 1
Joined: Wednesday 16 August 2017 18:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
holdemblow
Posts: 3
Joined: Friday 18 November 2016 13:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post 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 :)
- domoticz rpi
- 1X RFXtrx433e USB 433.92MHz Transceiver
- 3x kaku plugs
- 3x Action kaku-like plugs
- 1x kaku inbouw
- 1x kak deurbel
- 3x Flamingo FA21RF
- 1 aeon labs z-wave plus
- neocoolcam NAS-WR01ZE smart stekker
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

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

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests