The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.14-1~deb10u1 (Linux)
File Line Function
/showthread.php 895 errorHandler->error



  • 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
Change settings via API calls
#1
I am using pilight mainly as a background service and would like to configure it purely via API calls rather than edit the config.json by hand.

The problem is that you have removed the automatic detection of platform in recent nightly builds. This makes it necessary to edit the config.json to set the gpio-platform parameter to make pilight to work right after installation.

In the stable versions I did not need to do anything after installation. pilight worked just out of the box with the default config.json.

Basically, it would be enough to tell pilight via API the correct gpio-platform.
 
Reply
  


Messages In This Thread
Change settings via API calls - by Cipher - 08-23-2017, 07:44 AM
RE: Change settings via API calls - by curlymo - 08-23-2017, 05:45 PM
RE: Change settings via API calls - by Cipher - 08-29-2017, 11:10 PM
RE: Change settings via API calls - by curlymo - 08-30-2017, 06:17 AM
RE: Change settings via API calls - by Cipher - 08-30-2017, 09:36 AM
RE: Change settings via API calls - by curlymo - 08-30-2017, 05:57 PM
RE: Change settings via API calls - by Cipher - 08-30-2017, 09:30 PM
RE: Change settings via API calls - by curlymo - 08-30-2017, 09:34 PM

Forum Jump:


Browsing: 1 Guest(s)