• 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
Rest API in nightly Image seems not to work
#1
Hi together,

first, many many thanks for this project and the work you are doing.....

I installed the last nightly image on my raspi because i want to use the new REST API instead of using the old webgui with this strange encoded url with parameters.
But unfortunately its not woking, i always get
Code:
{"message":"failed"}

Here ist what i execute:
Code:
http://<IP>:5001/send?protocol=elro_800_switch&state=on&system=31&unit=1
and
Code:
http://192.168.199.134:5001/send?protocol=elro_800_switch&state=on&systemcode=31&unitcode=1

I also tried the example
Code:
http://x.x.x.x:xx/send?protocol=kaku_switch&state=on&id=1&unit=1
from the nightly website.

In the log i get
Quote:[Jun 24 11:51:54:212312] pilight-daemon: ERROR: elro_800_switch: insufficient number of arguments

Has anyone any idea why this is not working?

Thx
spooniester
 
Reply
#2
It seems i made a mistake in the example:
Code:
http://10.0.0.200:5001/send?protocol=kaku_switch&id=1&unit=1&off=1
http://10.0.0.200:5001/send?protocol=elro_800_switch&systemcode=1&unitcode=1&off=1

Code:
http://10.0.0.200:5001/control?device=switch&state=on
http://10.0.0.200:5001/control?device=dimmer&state=on&values[dimlevel]=10
 
Reply
#3
Thx, this solved my problem, now its working!!!!!
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  hardware module issues in nightly apartmedia 17 1,059 04-05-2019, 06:59 PM
Last Post: curlymo
  pilight not working with fresh Openhab 2 image habitoti 2 438 01-24-2019, 08:44 PM
Last Post: habitoti
  REST API problem kaku_screen_old / elro_800_switch with pilight 8.1.4 pisperate 4 519 12-20-2018, 09:26 PM
Last Post: pisperate
  pilight v8.0 - Current work in progress curlymo 32 28,682 12-06-2018, 10:06 PM
Last Post: curlymo
Exclamation Brennenstuhl 433MHz RC C1 - pilight not work pitje87 0 569 10-31-2018, 12:38 PM
Last Post: pitje87
  [solved] kwmobile: repeating the remote signal doesn't work dawncrow 9 937 10-25-2018, 03:46 PM
Last Post: dawncrow
  cannot get pilight-flash to work n.kooij 7 1,645 07-21-2018, 02:52 PM
Last Post: Tamadite
  Update to v8.0.10-nightly-a1279212 Ulrich.Arnold 3 1,187 06-04-2018, 08:31 PM
Last Post: curlymo
  pilight-receive does not work RP3 UniCorny 9 2,838 04-10-2018, 07:03 AM
Last Post: honselbonsel
  Updates for nightly Ulrich.Arnold 1 530 01-26-2018, 07:31 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)