0% found this document useful (0 votes)
13 views52 pages

Workshop Flowforgeinfluxdb 230627194839 75bb785b

Uploaded by

Nicole Cortes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views52 pages

Workshop Flowforgeinfluxdb 230627194839 75bb785b

Uploaded by

Nicole Cortes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

Building an Edge to Cloud

Solution with the MING Stack

June 2023

| © Copyright 2023, InfluxData


Past life: Sales Engineer for IIoT Solutions.

Passion: Autonomous and Vision based projects.

Driven: To make IoT accessible to all.

Belief: Industrial IoT’s success belongs to the


Jay Clifford
Developer Advocate, InfluxData
domain experts.

| © Copyright 2023, InfluxData


Past life: Data Integrations for CRM.

Passion: Home automation.

Driven: To help the community get the best value


from Node-RED.

Rob Marcer
Belief: No-code is the best code.
Customer Success Manager,
FlowForge

| © Copyright 2023, InfluxData


Edge to Cloud with
What is FlowForge?
FlowForge

Part 1 Part 3

Part 2 Part 4

Intro to Plant Buddy Demo and next steps!

4 | © Copyright 2023, InfluxData


What is FlowForge?

| © Copyright 2023, InfluxData


Firstly, what is Node-RED?

| © Copyright 2023, InfluxData


• Low-code programming for event-driven applications
• Open Source, started at IBM
• Huge library of third party ‘custom nodes’
• OpenJS Foundation ‘At Large’ Project
• 100 million + pulls of the official Docker image

| © Copyright 2023, InfluxData


• Founded by one of the co-creators of Node-RED
• DevOps for Node-RED
• Self hosted and SaaS versions available
• It’s the perfect tool to help teams collaborate on small and
large Node-RED applications

| © Copyright 2023, InfluxData


| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
On The Roadmap

• High Availability and Scalability


• Swagger API
• Custom Instance Domains
• New ‘Dashboard’

| © Copyright 2023, InfluxData


What is MING?

| © Copyright 2023, InfluxData


M . I . N . G

| © Copyright 2023, InfluxData


MING - Example (balena)

| © Copyright 2023, InfluxData


Recap on InfluxDB 3.0

| © Copyright 2023, InfluxData


InfluxDB 3.0
Schema on write

Write and Query Millions of rows


per second

Single datastore for all time series


data (Metrics, Logs & Traces)

SQL and InfluxQL Support

| © Copyright 2023, InfluxData


| © Copyright 2023, InfluxData
Concepts: Data Model
Bucket
• All InfluxDB data is stored in a bucket. A bucket combines the concept of a database
and a retention period (the duration of time that each data point persists).
Measurement
• A name to a group of data at a high level (Table)
Tag set
• A set of key-value pairs to group data at a low level (values are strings)
Field set
• A set of key-value pairs to represent data (values are numerical & strings)
Timestamp
• Time of the data with nanosecond precision
Series
• A unique combination of measure+tags

| © Copyright 2023, InfluxData


Intro to Plant Buddy

| © Copyright 2023, InfluxData


What is Plant Buddy

Temperature & Humidity

Light
?

Soil Temperature
Goal: Create a platform which can monitor the

Soil Moisture
health of household plants

Provide:
● Data Collection
● Data Storage
● Visualization + Analysis
| © Copyright 2023, InfluxData
Determine a state Time in state Anomaly Detection

22

| © Copyright 2023, InfluxData


Architecture

FlowForge

InfluxDB
Cloud

Grafana

| © Copyright 2023, InfluxData


Deeper Dive

Enrichment Connector database dashboard

Health
checker

Sensor Enrichmen Edge to


DAQ t Cloud

| © Copyright 2023, InfluxData


Edge to Cloud with FlowForge

| © Copyright 2023, InfluxData


Putting the M in MING

● FlowForge has a built in MQTT Implementation

● Allows Node-RED instances in the same application to talk to each


other

● Supports instances in the cloud as well as on edge devices

● github.com/flowforge/flowforge-nr-project-nodes

| © Copyright 2023, InfluxData


Let’s start!

| © Copyright 2023, InfluxData


Tips and Tricks

| © Copyright 2023, InfluxData


Flow Forge = Task Engine

| © Copyright 2023, InfluxData


Payload Building

msg.payload = [
msg.payload = [
{
[{
measurement: "weather_sensor",
intValue: '9i',
fields: {
numValue: 10,
temp: 5.5,
randomValue: Math.random()*10,
light: 678,
strValue: "message1",
humidity: 51
time: new Date().getTime()-1
},
},
tags:{
{
location:"garden"
tag1:"sensor1",
},
tag2:"device2"
timestamp: new Date()
}],
},
[{
intValue: '11i',
numValue: 20,
VS. {
measurement: "alarm_sensor",
fields: {
randomValue: Math.random()*10,
proximity: 999,
strValue: "message2",
temp: 19.5
time: new Date().getTime()
},
},
tags:{
{
location:"home"
tag1:"sensor1",
},
tag2:"device2"
timestamp: new Date()
}]
}
];
];
return msg;
return msg;

| © Copyright 2023, InfluxData


Connecting to InfluxDB 3.0

influx v1 dbrp create \


--token <token>\

1 --db flowforge \
--rp flowforge \
--bucket-id 3b1a3a72281a9367 \
--default

| © Copyright 2023, InfluxData


Node-RED Tips

● Use off-the-peg custom nodes (such as


node-red-contrib-influxdb)
● Create yourself a basic UI using Dashboard early in your
development process
● Use groups in the design interface to make it easier to
organise your flows
● The Exec node make it easy to interact with a device’s
hardware and OS
● https://discourse.nodered.org/ is a great place to get help

More Node-RED tips - https://flowforge.com/blog/tips/

| © Copyright 2023, InfluxData


What next?

| © Copyright 2023, InfluxData


Try it yourself

https://github.com/InfluxCommunity/
FlowForge

34 | © Copyright 2023, InfluxData


FlowForge Resources
Community Forums - community.flowforge.com

Github - github.com/flowforge

Documentation - flowforge.com/docs

Blog - flowforge.com/blog

| © Copyright 2023, InfluxData


Learning and Community

https://influxdbu.com/ https://influxcommunity.slack.com/

36 | © Copyright 2023, InfluxData


Any Questions?

| © Copyright 2023, InfluxData


www.influxdata.com

| © Copyright 2023, InfluxData


Demo Screenshots

| © Copyright 2023, InfluxData


| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData
| © Copyright 2023, InfluxData

You might also like