From 2827990de63730f1a0516bdb14fe609a32386d5d Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 11:58:01 +0300 Subject: [PATCH 01/10] docs/start-tutorial.md updated from https://stackedit.io/ --- docs/start-tutorial.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/start-tutorial.md b/docs/start-tutorial.md index 104243c..0a665b2 100644 --- a/docs/start-tutorial.md +++ b/docs/start-tutorial.md @@ -30,11 +30,11 @@ sudo ./client_setup.sh ## Настройка и запуск сервера -* Установите [chrony](https://chrony.tuxfamily.org/index.html), Python 3 и PyQt5 на ваш компьютер +* Установите [chrony](https://chrony.tuxfamily.org/index.html), Python 3 и необходимые python-модули на ваш компьютер ```bash sudo apt install chrony python3 python3-pip -pip3 install PyQt5 ``` + * Подключитесь к wifi сети роутера, к которому подключены коптеры. * Скопируйте [файл настроек chrony](../Server/chrony.conf) в `/etc/chrony/chrony.conf`. Если ip адрес сети начинается не с `192.168.`, то исправьте адрес после слова allow в скопированном файле настроек. * Перезапустите сервис chrony @@ -47,4 +47,7 @@ cd source-code-dir/Server python3 server_qt.py ``` -Документация по серверной части находится [здесь](server.md). \ No newline at end of file +Документация по серверной части находится [здесь](server.md). + \ No newline at end of file From 2049e5dc61ec1c88bc506cddca2620ffd70c52e1 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 11:59:34 +0300 Subject: [PATCH 02/10] docs/start-tutorial.md updated from https://stackedit.io/ --- docs/start-tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/start-tutorial.md b/docs/start-tutorial.md index 0a665b2..b431cbf 100644 --- a/docs/start-tutorial.md +++ b/docs/start-tutorial.md @@ -30,7 +30,7 @@ sudo ./client_setup.sh ## Настройка и запуск сервера -* Установите [chrony](https://chrony.tuxfamily.org/index.html), Python 3 и необходимые python-модули на ваш компьютер +* Установите [chrony](https://chrony.tuxfamily.org/index.html) и Python 3 и на ваш компьютер ```bash sudo apt install chrony python3 python3-pip ``` @@ -49,5 +49,5 @@ python3 server_qt.py Документация по серверной части находится [здесь](server.md). \ No newline at end of file From b81ecae900741765848eb8a52ef6aa32e5fe2091 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:01:08 +0300 Subject: [PATCH 03/10] docs/start-tutorial.md updated from https://stackedit.io/ --- docs/start-tutorial.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/start-tutorial.md b/docs/start-tutorial.md index b431cbf..7a8c58c 100644 --- a/docs/start-tutorial.md +++ b/docs/start-tutorial.md @@ -30,10 +30,12 @@ sudo ./client_setup.sh ## Настройка и запуск сервера -* Установите [chrony](https://chrony.tuxfamily.org/index.html) и Python 3 и на ваш компьютер +* Установите [chrony](https://chrony.tuxfamily.org/index.html) и Python 3 на ваш компьютер: ```bash sudo apt install chrony python3 python3-pip ``` +* Установите необходимые python-пакеты с помощью + * Подключитесь к wifi сети роутера, к которому подключены коптеры. * Скопируйте [файл настроек chrony](../Server/chrony.conf) в `/etc/chrony/chrony.conf`. Если ip адрес сети начинается не с `192.168.`, то исправьте адрес после слова allow в скопированном файле настроек. @@ -49,5 +51,5 @@ python3 server_qt.py Документация по серверной части находится [здесь](server.md). \ No newline at end of file From e3783ef3d7841e11f5094e49101745c427f1424e Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:02:42 +0300 Subject: [PATCH 04/10] docs/start-tutorial.md updated from https://stackedit.io/ --- docs/start-tutorial.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/start-tutorial.md b/docs/start-tutorial.md index 7a8c58c..2b504f0 100644 --- a/docs/start-tutorial.md +++ b/docs/start-tutorial.md @@ -29,13 +29,12 @@ sudo ./client_setup.sh Документация по клиентской части находится [здесь](client.md). ## Настройка и запуск сервера - * Установите [chrony](https://chrony.tuxfamily.org/index.html) и Python 3 на ваш компьютер: ```bash sudo apt install chrony python3 python3-pip ``` -* Установите необходимые python-пакеты с помощью - +* Установите необходимые python-пакеты с помощью команды (запущенной из директории с исходным кодом) +* ' * Подключитесь к wifi сети роутера, к которому подключены коптеры. * Скопируйте [файл настроек chrony](../Server/chrony.conf) в `/etc/chrony/chrony.conf`. Если ip адрес сети начинается не с `192.168.`, то исправьте адрес после слова allow в скопированном файле настроек. @@ -51,5 +50,5 @@ python3 server_qt.py Документация по серверной части находится [здесь](server.md). \ No newline at end of file From cfff3afce3366df4a7fcccfe83f0126b486ade6f Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:03:44 +0300 Subject: [PATCH 05/10] docs/start-tutorial.md updated from https://stackedit.io/ --- docs/start-tutorial.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/start-tutorial.md b/docs/start-tutorial.md index 2b504f0..38a5381 100644 --- a/docs/start-tutorial.md +++ b/docs/start-tutorial.md @@ -34,12 +34,15 @@ sudo ./client_setup.sh sudo apt install chrony python3 python3-pip ``` * Установите необходимые python-пакеты с помощью команды (запущенной из директории с исходным кодом) -* ' +```bash +pip3 install -r requirements.txt +``` * Подключитесь к wifi сети роутера, к которому подключены коптеры. * Скопируйте [файл настроек chrony](../Server/chrony.conf) в `/etc/chrony/chrony.conf`. Если ip адрес сети начинается не с `192.168.`, то исправьте адрес после слова allow в скопированном файле настроек. * Перезапустите сервис chrony ```bash +cd source-code-dir sudo systemctl restart chrony ``` * Перейдите в директорию сервера из директории с исходным кодом и запустите сервер @@ -50,5 +53,5 @@ python3 server_qt.py Документация по серверной части находится [здесь](server.md). \ No newline at end of file From 6c9f735145bf8fbde50a440c65c6b3bc708ecd1b Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:05:18 +0300 Subject: [PATCH 06/10] docs/server.md updated from https://stackedit.io/ --- docs/server.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/server.md b/docs/server.md index cbf66cb..5752614 100644 --- a/docs/server.md +++ b/docs/server.md @@ -1,4 +1,6 @@ -#Установка и настройка серв +# Настройка сервера +## Файл конфигурации +Конфигурация \ No newline at end of file From b066e0e361fee571bec3add2bc93af2e79c35d13 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:18:40 +0300 Subject: [PATCH 07/10] docs/server.md updated from https://stackedit.io/ --- docs/server.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/server.md b/docs/server.md index 5752614..c549b8d 100644 --- a/docs/server.md +++ b/docs/server.md @@ -1,6 +1,19 @@ # Настройка сервера ## Файл конфигурации -Конфигурация +Конфигурация сервера задаётся в файле Server/server_config.ini, имеющем вид: +```ini +[SERVER] +port = 25000 +broadcast_port = 8181 +broadcast_delay = 5 +buffer_size = 1024 + +[NTP] +use_ntp = False +host = ntp1.stratum2.ru +port = 123 +``` +### Раздел \ No newline at end of file From fef0d8a1dc4f974ab4c8dd631c3ac184c52e72bc Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:20:16 +0300 Subject: [PATCH 08/10] docs/server.md updated from https://stackedit.io/ --- docs/server.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/server.md b/docs/server.md index c549b8d..e0b7212 100644 --- a/docs/server.md +++ b/docs/server.md @@ -13,7 +13,12 @@ use_ntp = False host = ntp1.stratum2.ru port = 123 ``` -### Раздел +### Раздел 'Server' +В этом разделе задаются параметры сетевого взаимодействия сервера, доступны следующие параметры: + + * `port` + + \ No newline at end of file From 9588e14935247417db4ee46842c19ed6dce197f9 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:21:51 +0300 Subject: [PATCH 09/10] docs/server.md updated from https://stackedit.io/ --- docs/server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/server.md b/docs/server.md index e0b7212..a749bd6 100644 --- a/docs/server.md +++ b/docs/server.md @@ -16,9 +16,9 @@ port = 123 ### Раздел 'Server' В этом разделе задаются параметры сетевого взаимодействия сервера, доступны следующие параметры: - * `port` + * `port` - TCP порт, на котором будут приниматься входящие соединения от \ No newline at end of file From cb687ee118067f7c084d3afa068840acc6b6a2b1 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:23:27 +0300 Subject: [PATCH 10/10] docs/server.md updated from https://stackedit.io/ --- docs/server.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/server.md b/docs/server.md index a749bd6..6787a21 100644 --- a/docs/server.md +++ b/docs/server.md @@ -16,9 +16,10 @@ port = 123 ### Раздел 'Server' В этом разделе задаются параметры сетевого взаимодействия сервера, доступны следующие параметры: - * `port` - TCP порт, на котором будут приниматься входящие соединения от + * `port` - TCP порт, на котором будут приниматься входящие соединения от клиентов (коптеров) + * `broadcast_port` - UDP \ No newline at end of file