From c49f3d5fcb33b37de7d5ab255ee2ecd3d774ca85 Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Thu, 10 May 2018 17:48:55 +0200 Subject: [PATCH] Remove the functions replaced by a go server instead --- sensors-input/function.yaml | 22 ---------------------- sensors-input/handler.js | 7 ------- 2 files changed, 29 deletions(-) delete mode 100644 sensors-input/function.yaml delete mode 100644 sensors-input/handler.js diff --git a/sensors-input/function.yaml b/sensors-input/function.yaml deleted file mode 100644 index 6b0233f..0000000 --- a/sensors-input/function.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: "nuclio.io/v1beta1" -kind: "Function" -metadata: - name: esp8266-temperature-input - namespace: nuclio -spec: - runtime: "nodejs" - handler: "handler" - build: - registry: registry.lab.inf3.xyz - commands: - - "npm install --global moment" - triggers: - http: - maxWorkers: 2 - kind: http - attributes: - ingresses: - second: - host: apis.lab.inf3.xyz - paths: - - /esp8266/sensors diff --git a/sensors-input/handler.js b/sensors-input/handler.js deleted file mode 100644 index 4245a64..0000000 --- a/sensors-input/handler.js +++ /dev/null @@ -1,7 +0,0 @@ -exports.handler = function(context, event) { - context.logger.info('Connected: ' + event.body); - - var request = JSON.parse(event.body); - - context.callback('Thanks !'); -};