summaryrefslogtreecommitdiffstats
path: root/conf.d/project/json.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project/json.d')
-rw-r--r--conf.d/project/json.d/CMakeLists.txt32
-rw-r--r--conf.d/project/json.d/README.md23
-rw-r--r--conf.d/project/json.d/onload-daemon-sample.json69
3 files changed, 0 insertions, 124 deletions
diff --git a/conf.d/project/json.d/CMakeLists.txt b/conf.d/project/json.d/CMakeLists.txt
deleted file mode 100644
index 8070997..0000000
--- a/conf.d/project/json.d/CMakeLists.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-###########################################################################
-# Copyright 2017 IoT.bzh
-#
-# author: Fulup Ar Foll <fulup@iot.bzh>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
-
-
-##################################################
-# Control Policy Config file
-##################################################
-PROJECT_TARGET_ADD(ctl-config.d)
-
- file(GLOB XML_FILES "*.json")
-
- add_input_files("${XML_FILES}")
-
- SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
- LABELS "DATA"
- OUTPUT_NAME ${TARGET_NAME}
- )
diff --git a/conf.d/project/json.d/README.md b/conf.d/project/json.d/README.md
deleted file mode 100644
index 209e708..0000000
--- a/conf.d/project/json.d/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Controller binding configuration
-
-By default controller searches for a config filename with the same 'middlename' as daemon process. As an example if your process name is afb-daemon then middle name is 'daemon'.
-
-```bash
-# Middlename is taken from process middlename.
-onload-middlename-xxxxx.json
-```
-
-You may overload config search path with environement variables
-
-* AFB_BINDER_NAME: change patern config search path. 'export AFB_BINDER_NAME=sample' will make controller to search for a configfile name 'onload-sample-xxx.json'.
-* CONTROL_CONFIG_PATH: change default reserch path for configuration. You may provide multiple directories separated by ':'.
-* CONTROL_LUA_PATH: same as CONTROL_CONFIG_PATH but for Lua script files.
-
-Example to load a config name 'onload-myconfig-test.json' do
-
-```bash
- AFB_BINDER_NAME='myconfig' afb-daemon --verbose ...'
-```
-
-Note: you may change search pattern for Lua script by adding 'ctlname=afb-middlename-xxx' in the metadata section of your config 'onload-*.json'
-
diff --git a/conf.d/project/json.d/onload-daemon-sample.json b/conf.d/project/json.d/onload-daemon-sample.json
deleted file mode 100644
index cb6ca55..0000000
--- a/conf.d/project/json.d/onload-daemon-sample.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "$schema": "ToBeDone",
- "metadata": {
- "label": "sample-standalone-control",
- "info": "Minimal Standalone Controller Config",
- "name": "afb-sample-controller",
- "version": "1.0"
- },
- "onload": [{
- "label": "onload-default",
- "info": "onload initialisation config",
- "actions":
- {
- "label": "control-init",
- "lua": "_Sample_Controller_Init",
- "args": {
- "xxxx": 1234,
- "yyyy": "Bien le bonjours à vous",
- "zzzz": "simple-evt"
- }
- }
- }],
- "controls":
- [
- {
- "label": "Button-Happy",
- "actions": {
- "label": "Action Happy",
- "lua": "_Button_Happy",
- "args": {
- "button": 5678
- }
- }
- }, {
- "label": "Button-UnHappy",
- "actions": {
- "label": "Action Unhappy",
- "lua": "_Button_UnHappy",
- "args": {
- "button": "abcd"
- }
- }
- }
- ],
- "events":
- [
- {
- "label": "Event1",
- "actions": {
- "label": "Action Event 1",
- "lua": "_Event_Received",
- "args": {
- "evtname": "xxx"
- }
- }
- },
- {
- "label": "Event2",
- "actions": {
- "label": "Action Event 2",
- "lua": "_Event_Received",
- "args": {
- "evtname": "yyy"
- }
- }
- }
- ]
-}
-