Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Expected completion time of this lab: 

Excerpt

20 min

.


Table of Contents
Note

Every time you see C:\Users\Thomas\Desktop\ in these instructions, replace it with the correct path for your desktop.

Download Source Code

  • Download the following code on your computer's desktop:

What?

Why?

Where?

SmartMesh SDK

A collection of programs to interact with your SmartMesh IP network

https://github.com/dustcloud/smartmeshsdk/tree/develop


Note

Note that we are using Git branch "develop", which is the one that currently supports Python 3.


Info
title

How do I download?

The links above point to source repositories on Github.com. To download the code, click on:

Image Modified

  • Unzip the source code on your computer's desktop

Python 3.9

title
Info

Why?

All source code is written in Python. You need to install Python on your computer to run the source code.

Note

Make sure you add python.exe to your path during the installation process.

Image Modified


  • Install the Python packages needed by the SmartMesh SDK by typing the following command:

Code Block
C:\Users\Thomas\Desktop\smartmeshsdk-develop>pip install -r requirements.txt


title
Info

What is pip?

pip is a utility which comes with Python, and which automatically downloads and installs packages listed in a requirements.txt file.


title
Tip

When am I done?

Double-click on C:\Users\Thomas\Desktop\smartmeshsdk-master\app\JsonServer\JsonServer.py to verify the program starts well:

Image Modified

Note

We will not use that program until much later. Close it for now.



title
Warning

test

If you get the following error when running Python:

Code Block
'python' is not recognized as an internal or external command

make sure the Python executable path is present in you system PATH variable.

Node-RED

title
Info

Why?

You will use Node-RED (https://nodered.org/) to connect your SmartMesh IP network to different back-end systems, and build a dashboard.

Include Page
_inc_node-red_install
_inc_node-red_install

FTDI drivers

Info

FTDI is the make of a chip on the SmartMesh IP motes. You need the driver of that chip on your computer. This is normally already installed, so you can probably skip this step. On older Windows computers, this driver isn't included by default.


Tip

On Windows, download and install the setup executable for easier use.

...