• 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
  bridging pilight and mosquitto hansrijn2 5 253 Yesterday, 06:31 PM
Last Post: hansrijn2
  problem publish to pilight MQTT server Emiks5 4 562 08-31-2020, 07:45 PM
Last Post: Emiks5
  pilight for Raspbian Buster (raspberry pi 4) ? starob 32 9,896 08-10-2020, 09:12 AM
Last Post: simanuel
  pilight switch node in node-red framp 0 555 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 1,673 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 810 05-10-2020, 08:19 AM
Last Post: scootermacro
  Can't send or receive on Raspberry Pi Zero W ChristophH 12 1,273 04-09-2020, 06:34 PM
Last Post: curlymo
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 4,575 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 1,312 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 1,430 01-28-2020, 08:02 PM
Last Post: hepcat72

Forum Jump:


Browsing: 1 Guest(s)