• 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
  Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 5 36 Less than 1 minute ago
Last Post: vanillaice30
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 3 124 11-29-2019, 09:56 PM
Last Post: curlymo
  pilight crashing randomly PatiB 7 259 11-16-2019, 10:50 PM
Last Post: curlymo
  NOTICE: 433gpio send buffer full HuberDe 3 155 10-31-2019, 12:10 PM
Last Post: curlymo
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 300 10-18-2019, 10:25 PM
Last Post: DominikB1993
  Real 433Mhz Remote is disturbed by pilight service henne111 2 317 10-06-2019, 06:18 PM
Last Post: wo_rasp
Tongue (solved) pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 5 746 10-03-2019, 01:15 PM
Last Post: fleisch
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 4 528 09-29-2019, 02:08 PM
Last Post: tomk
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 3,335 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 679 07-14-2019, 08:35 AM
Last Post: Alex

Forum Jump:


Browsing: 1 Guest(s)