Versions Compared

Key

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

Info

Expected completion time of this lab:

...

Excerpt

20 min

 20min.

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

Notetip

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

Info

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

...

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

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.

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

...

We will not use that program until much later

...

, close it for now.


Warning

test

If you get the following error when running Python, make sure the Python executable path is present in you system PATH variable:

Code Block
'python' is not recognized as an internal 
or
of external command
make sure the Python executable path is present in you system PATH variable.

Node-RED

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.

...