- Tested on Raspberry-Pi 4 Model B 2GB RAM
- Docker Version:
19.03.8
- Docker-Compose version:
1.25.5
.
import time | |
from opcua import Client | |
from opcua import ua | |
try: | |
from IPython import embed | |
except ImportError: | |
import code | |
def embed(): |
syntax = "proto3"; | |
package ecommerce; | |
service ProductInfo { | |
rpc addProduct(Product) returns (ProductID); | |
rpc getProduct(ProductID) returns (Product); | |
} | |
message Product { | |
string id = 1; |
[agent] | |
interval = "2s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 12000000 |
# IOT/sensor2/temp | |
env,type=A temp=23.39 | |
env,type=B temp=40.00 | |
# IOT/sensor1/acc | |
env,type=A x=0.2 | |
env,type=B x=1.3 |
#include <Wire.h> | |
#include <SPI.h> | |
#include <Adafruit_LSM9DS0.h> | |
#include <Adafruit_Sensor.h> | |
#include <WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <PubSubClient.h> | |
// CERTIFICATE Header File |
language: node_js | |
services: | |
- 'docker' | |
node_js: | |
- "10" | |
- "12" | |
cache: |
/* Arduino Sketch to Program an ESP32 to read LSM9DS0 Sensor from | |
* its I2C Bus, convert the data into InfluxDB's Line Protocol Strings | |
* and Publish it to an MQTT broker running on an IoT Edge Device (Pi4) | |
* Author: Shan Desai <https://github.com/shantanoo-desai> | |
*/ | |
#include <Wire.h> | |
#include <SPI.h> | |
#include <Adafruit_LSM9DS0.h> | |
#include <Adafruit_Sensor.h> |
# Change Stream Example | |
# using PYMONGO v3.9.0 | |
import sys | |
import pprint | |
from pymongo import MongoClient | |
# Create a Client to our Replica Set | |
cl = MongoClient(host='localhost', port=37017, replicaSet='rs0') | |
# Database: `team` # Collection: `players` |
{ | |
"test": "This JSON will keep changing", | |
"version" : 0.3, | |
"url": "https://stackoverflow.com/questions/12522539/github-gist-editing-without-changing-url", | |
"features": [ | |
"Feature1", | |
"Feature2", | |
"Feature3" | |
] | |
} |