Skip to content

Instantly share code, notes, and snippets.

###
# Register Export Client
###
printf "\n> Registering Export Client\n"
curl http://localhost:48071/api/v1/registration -X POST -s -S -d @- <<EOF
{
"name":"myMqttPublisher",
"addressable":{
"name":"myMqttBroker",
###
# Add Events
###
printf "\n> Creating Events\n"
curl http://localhost:48080/api/v1/event -X POST -s -S -d @- <<EOF
{
"device":"countcamera1",
"readings":[
{
"name":"humancount",
curl http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6a -X PUT -s -S -d @- <<EOF
{
"depth":"9"
}
EOF
@drasko
drasko / edgex_device_query_rsp.json
Last active September 4, 2018 23:30
EdgeX in Action, Part 3 - Device Response
{
"id": "5b8ae4da6b950a5e3c029f6f",
"name": "countcamera1",
"adminState": "UNLOCKED",
"operatingState": "ENABLED",
"lastConnected": 0,
"lastReported": 0,
"labels": [
"camera",
"counter"
@drasko
drasko / camera_monitor_profile.yml
Last active September 1, 2018 22:43
EdgeX camera monitor profile for device provisioning
#
# Copyright (c) 2018
# Dell
# Mainflux
#
# SPDX-License-Identifier: Apache-2.0
#
# File taken from https://docs.edgexfoundry.org/Ch-WalkthroughDeviceProfile.html
@drasko
drasko / edgex_provision.sh
Last active May 11, 2019 00:14
EdgeX Provisioning Procedure
#!/bin/bash
#
# Copyright (c) 2018
# Mainflux
#
# SPDX-License-Identifier: Apache-2.0
#
###
# Core Metadata
@drasko
drasko / edgex_install.sh
Last active September 1, 2018 20:58
EdgeX Install
go get github.com/edgexfoundry/edgex-go
cd $GOPATH/src/github.com/edgexfoundry/edgex-go
# Pull the 3rd party / vendor packages (executes `glide install`)
make prepare
# Build the microservices
make build
# Run the services
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
import tornado.web
import tornado.options
import sockjs.tornado
###
# Tornado Websocket Client Class
Please apply following patch to Carambola2 mainline to fix the issue:
From 1defc360fbe0ae43eefee020b8f7d2f7875c68e8 Mon Sep 17 00:00:00 2001
From: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Date: Wed, 15 Jan 2014 21:54:29 +0100
Subject: [PATCH] Fixes bug in texinfo for Debian builds
---
.../gcc/patches/4.7-linaro/010-documentation.patch | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)