Simple HTTP server listening TCP on specific port for incoming data. Data is continuously saved into CSV file.
- Python 3.6 or newer
sudo apt-get install python3
sudo dnf install python3
sudo zypper install python3
- Download latest python 3 package from the official site
- Install the package and check "Add Python 3.x to PATH"
- clone the repository
git clone https://github.com/netioproducts/netio-data-collector.git
(requires git) - change into the cloned directory
cd netio-data-collector
OR - download the repository from GitHub
- unzip the downloaded folder
- open the unzipped folder in file explorer
- open terminal in the current location (hold SHIFT and right click inside the folder, click on
Open PowerShell window here
orOpen Command Prompt window here
)
run python3 main.py
run python main.py
The output will be saved to a directory specified in config.py
the default is $(git-root)/log/log_$(device-mac).csv
Each device will have separate .csv
file.
short | long | default | description |
---|---|---|---|
-n | --host | 0.0.0.0 | ip address to listen on. |
-p | --port | 9000 | port to listen on. Warning: ports below 1024 require root permission. |