NOTE 1 The software was developed on a Windows 7 PC and the desktop client has only been tested on Windows 7. It is built using cross platform libraries so should be easy to install and run on Mac or Windows as well
NOTE 2 This guide assumes you already have Python installed on your system. If you don't, visit http://python.org/ and follow the directions there. Only Python 2.7.x has been tested.
NOTE 3 There is currently no "one-click" installer for Blitz, although one is planned in the future. You will need to have some level of comfort using the command line to proceed.
There are two key steps in installation:
The best way to download the software is to use the git repository. You can either get the master
branch, which is the latest stable release, or try the develop
branch which is less stable but may include additional features, bug fixes (or bugs). To get the latest stable version and install it to the folder c:/code/blitz
you have two options:
Type the following commands (or the Linux / Mac equivalent) into your command prompt or terminal:
~~~ $ cd c:/code $ git clone https://github.com/will-hart/blitz.git $ cd blitz ~~~
To install manually, you can follow these steps:
c:/code/blitz
(or your preferred directory)The dependencies required are separated by "client" and "server" dependencies. Most of them are Python related however on the server Redis must be installed. The details are given below:
To run the data acquisition server you will need to have redis installed. For Linux based systems you can generally do this with your package manager:
~~~ $ sudo apt-get install redis ~~~
If you are on Windows then things are a bit trickier, but Microsoft have provided some redis binaries through a github repository. Download either the 32bit or 64bit version from https://github.com/MSOpenTech/redis/tree/2.6/bin/release, and unzip into a directory somewhere on your PC - c:/code/redis
is a good place to start. To download click on the correct zip file on the redis page and when that loads click the "raw" button.
A number of Python packages are required to run Blitz in either client or server mode. The only supported way of doing this is through the Python pip
package manager.
The requirements can be viewed in the server_requirements.txt
and client_requirements.txt
files in the blitz directory. To install the client dependencies navigate to c:/code/blitz
(or the directory where you installed the software) in your command terminal and type:
~~~ $ pip install -r client_requirements.txt ~~~
To install the server requirements navigate to the same directory and type
~~~ $ pip install -r server_requirements.txt ~~~
What next?
- Revisit the requirements
- Learn how to configure Blitz.
- Learn about Raspberry Pi servers