• 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
  pilight for Raspbian Buster (raspberry pi 4) ? starob 32 7,407 Yesterday, 09:12 AM
Last Post: simanuel
  pilight switch node in node-red framp 0 245 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 920 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 423 05-10-2020, 08:19 AM
Last Post: scootermacro
  Can't send or receive on Raspberry Pi Zero W ChristophH 12 846 04-09-2020, 06:34 PM
Last Post: curlymo
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 3,183 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 869 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 922 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 957 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 708 01-19-2020, 09:13 AM
Last Post: Caleus

Forum Jump:


Browsing: 1 Guest(s)