07-21-2014, 10:23 PM
After upgrading to pilight 5.0 Have problems with sending control commands like this:
The settings.json changed to:
Working with "pilight webgui" isn't a problem, so the config.json/hardware.json are OK, all GUI elements do their job, the switches work as expected.
Sending a cmd as shown above opens an 'Authentication Required" dialog asking for uname/pw. Also entering the right values, it repeats asking. /var/log/pilight.log doesn't give any info. Firefoy console also no output.
How is the trick? to work as it was with version 3.0?
Guenter
Code:
http://192.168.178.1:5001/send?{%22message%22:%22send%22,%22code%22:{%22location%22:%22Aussen%22,%22device%22:%22Haustuer%22,%22state%22:%22on%22}}
The settings.json changed to:
Code:
{
"log-level": 5,
"pid-file": "/var/run/pilight.pid",
"config-file": "/home/pi/pilight_config/config.json",
"hardware-file": "/etc/pilight/hardware.json",
"log-file": "/var/log/pilight.log",
"send-repeats": 10,
"receive-repeats": 1,
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/",
"webserver-port": 5001,
"webserver-authentication": [ "admin", "admin" ],
"webserver-cache": 1,
"webserver-user": "root",
"whitelist": "",
"update-check": 1,
"firmware-update": 0
}
Sending a cmd as shown above opens an 'Authentication Required" dialog asking for uname/pw. Also entering the right values, it repeats asking. /var/log/pilight.log doesn't give any info. Firefoy console also no output.
How is the trick? to work as it was with version 3.0?
Guenter