From 63c2dacaa1dce478103d6a9b90f7e3878d11cc41 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Sun, 14 Feb 2021 19:56:30 +0100 Subject: [PATCH] first commit --- .drone.yml | 17 +++++++++++++++++ devices.json | 5 +++++ ucDevices.json | 15 +++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .drone.yml create mode 100644 devices.json create mode 100644 ucDevices.json diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3e42d5e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +name: validate-json + +steps: +- name: validate ucDevices.json + image: fftdf/docker-json-validate + commands: + - jsonlint ucDevices.json + when: + event: push + +- name: validate Devices.json + image: fftdf/docker-json-validate + commands: + - jsonlint devices.json + when: + event: push \ No newline at end of file diff --git a/devices.json b/devices.json new file mode 100644 index 0000000..d487d4e --- /dev/null +++ b/devices.json @@ -0,0 +1,5 @@ +{ + "devices":[ + + ] +} \ No newline at end of file diff --git a/ucDevices.json b/ucDevices.json new file mode 100644 index 0000000..d790509 --- /dev/null +++ b/ucDevices.json @@ -0,0 +1,15 @@ +{ + "devices":[ + { + "name": "BEISPIEL ABĂ„NDERN!!!!!!", + "mac": "18:e8:29:9c:90:ae", + "gateway_nexthop": "18e82924170a", + "gateway": "a28cae6ff604", + "linked_to": "18:e8:29:24:17:0a", + "location": { + "longitude":7.122931927, + "latitude":50.818885422 + } + } + ] + } \ No newline at end of file