...
All components are open sourced and can be reconfigured and customised, interested parties may use any cloud infrastructure which support containerised servers deployments i.e. GCP, AWS, Azure, IBM Cloud, Alibaba Cloud, Digital Ocean, Oracle Cloud, VMware Cloud, Cisco Cloud.
In this case the containerised services software is deployed with Open Horizon to RPi4 board.
<Insert video here>
Goals
- Build OS image with BSP distribution for Edge Node and save it to SD card. Insert SD card with BSP to RPi4 board and start controlling the board remotely.
[~10 minutes] - Run local Edge Server on developer workstation with all needed services for software development and zero touch deployment.
[~3 minutes]
- Connect/solder S-Soil MTEC-02B with USB to RS485 converter and insert into RPi4 board.
- Build a custom stack for S-Soil MTEC-02B to extract realtime data - Total Dissolved Solids (TDS), Temperature, Salinity, Volumetric Water Content (VWC) with python script, send data to Edge Server with Telegraf.
Deploy new stack remotely without touching the board to Edge Node (RPi4 board) from developer workstation.
Edge Server will collect data in InfluxDB and telemetry data will be available to display Grafana dashboard.
[~4 minutes] - Update stack on developer workstation and redeploy stack into the Edge Node remotely.
[~3 minutes]
...
- Clone SmartAg-foundation repo. And change directory to tools.
- Build BSP image, write to SD card. Insert 16GB+ SD card in drive and run Edge Node
sudo ./write_bsp_image example-edge-node
- Run Edge Server
./start_local_edgeserver
- Solder sensor and USB converter (described in p.6 from Milestone 2: Outdoor single sensor)
- Create new example stack. By default new stack will contain a workable solution with telegraf and exec plugin for S-Soil MTEC-02B.
./create_stack ssoil-mtec-02b-single
- Insert sensor to USB port of Edge Node
- Build stack to get retrieve data (Total Dissolved Solids (TDS), Temperature, Volumetric Water Content (VWC)) from S-Soil MTEC-02B, deploy
./build_and_deploy ssoil-mtec-02b-single example-edge-node
- Open Grafana from Edge Server http://localhost:3000/, login, explore and display telemetry data
Once InfluxDB data source needs to be configured as below:
URL - http://influxdb:8086
Database - telegraf
User - user
Password - password
And press "Save and Test" - Open Explore tab (http://localhost:3000/explore)
You should see new measurement mtec-02b-sensor and fields for it (tds, temperature, vwc) - (Optional) Extend service with new logic to read soil salinity (it's covered in hands on demo video at the beginning).
Deploy and view new data on a dashboard (salinity should be available)
...