• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
piScheduler -- A pilight extension for the daily switch plan
#15
Additional 'curl' tests gives more confusion:

Code:
~$ curl -v http://admin:admin@192.168.178.16:5001/config
* About to connect() to 192.168.178.16 port 5001 (#0)
*   Trying 192.168.178.16... connected
* Server auth using Basic with user 'admin'
> GET /config HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406023776"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0

Note: entering the same call on FX asks for the authentication and gives the 'config' result.

curl -v http://admin:admin@192.168.178.16:5001/send?{..} gives
Code:
~$ curl -v http://admin:admin@192.168.178.16:5001/send?{"message":"send","code":{"location":"Aussen","device":"Haustuer","state":"on"}}                  
* About to connect() to 192.168.178.16 port 5001 (#0)
*   Trying 192.168.178.16... connected
* Server auth using Basic with user 'admin'
> GET /send?message:send HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
*   Trying 192.168.178.16... connected
> GET /send?code:location:Aussen HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
*   Trying 192.168.178.16... connected
> GET /send?code:device:Haustuer HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Ignoring duplicate digest auth header.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
*   Trying 192.168.178.16... connected
> GET /send?code:state:on HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0

Any help?

From the 'config' output I have:
"version":[ "5.0", "5.0", "v5.0" ]
Is the /send? only supported with the "dev" version of pilight?
If yes, please give the correct download address.

Guenter
 
Reply
  


Messages In This Thread
RE: piSchedule for pilight --problem with vers.5.0 - by gneandr - 07-22-2014, 11:26 AM
piSchedule error - by donbucknall - 01-02-2016, 05:30 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Connect pilight to your hue bridge hannemann 4 3,449 10-26-2020, 02:08 PM
Last Post: Michelebup
  Does piSchedule work with pilight 8.1.1-nightly Peter S 0 2,139 06-29-2018, 07:57 PM
Last Post: Peter S
  pilight-console - an LCD / keypad interface for pilight frenchie71 3 1,967 11-21-2017, 11:15 PM
Last Post: curlymo
Wink PHP class using pilight socket connection Dan 0 1,860 11-03-2016, 11:41 AM
Last Post: Dan
  Controlling a RGB Led Strip over pilight mightyuhu 2 2,940 08-06-2016, 09:10 PM
Last Post: JohannK
  HomeBridge with pilight on raspbian Jurre 10 14,197 04-06-2016, 07:45 AM
Last Post: tomtom
  pilight voice commands kniazio 11 7,449 01-29-2016, 07:51 PM
Last Post: sral
  Python Ping pilight detect mobilephone Cryptomaster 0 2,547 01-10-2016, 04:17 PM
Last Post: Cryptomaster
  pilight config editor ktams 16 9,990 01-06-2016, 02:42 PM
Last Post: ktams
  command processing between pilight and openhab royhofman1989 3 3,341 07-13-2015, 11:26 AM
Last Post: curlymo

Forum Jump:


Browsing: 2 Guest(s)