• 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
pilight send URLEncode
#1
Hi there!

Trying to send a raw command via the API. What am I doing wrong?

Code:
{
    "action": "send",
    "code": {
        "protocol": [ "raw" ],
        "code": "4758 1560 312 780 676 416 312 780 312 780 312 806 676 416 676 442 286 806 312 806 312 780 676 416 676 416 312 806 286 806 650 442 312 806 312 780 676 416 676 442 676 416 286 806 286 806 312 806 286 806 312 806 650 442 286 806 312 780 312 780 312 780 312 780 676 442 286 806 312 780 312 780 676 442 312 780 312 780 312 780 676 8944"
    }
}

Looks URL encoded like this:

Code:
%7B%0D%0A%20%20%20%20%22action%22%3A%20%22send%22%2C%0D%0A%20%20%20%20%22code%22%3A%20%7B%0D%0A%20%20%20%20%20%20%20%20%22protocol%22%3A%20%5B%20%22raw%22%20%5D%2C%0D%0A%20%20%20%20%20%20%20%20%22code%22%3A%20%224758%201560%20312%20780%20676%20416%20312%20780%20312%20780%20312%20806%20676%20416%20676%20442%20286%20806%20312%20806%20312%20780%20676%20416%20676%20416%20312%20806%20286%20806%20650%20442%20312%20806%20312%20780%20676%20416%20676%20442%20676%20416%20286%20806%20286%20806%20312%20806%20286%20806%20312%20806%20650%20442%20286%20806%20312%20780%20312%20780%20312%20780%20312%20780%20676%20442%20286%20806%20312%20780%20312%20780%20676%20442%20312%20780%20312%20780%20312%20780%20676%208944%22%0D%0A%20%20%20%20%7D%0D%0A%7D

But I get:

{"message":"failed"}

Any ideas?[/code]
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Real 433Mhz Remote is disturbed by pilight service henne111 2 132 10-06-2019, 06:18 PM
Last Post: wo_rasp
Tongue (solved) pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 5 542 10-03-2019, 01:15 PM
Last Post: fleisch
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 4 321 09-29-2019, 02:08 PM
Last Post: tomk
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 2,374 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 555 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 441 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,649 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 843 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 739 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 1,225 05-29-2019, 06:54 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)