A collaboration with platform workers.
Find a file
2019-10-30 12:44:25 +01:00
realones Have plotter follow MT mouse - a bit hacky still 2019-10-15 12:42:59 +02:00
sorteerhoed Further implementation of flow 2019-10-30 12:44:25 +01:00
www WIP on the server 2019-10-23 22:33:37 +02:00
.gitignore Send drawing to server - WIP 2019-09-11 18:16:33 +02:00
.project Have plotter follow MT mouse - a bit hacky still 2019-10-15 12:42:59 +02:00
.pydevproject Have plotter follow MT mouse - a bit hacky still 2019-10-15 12:42:59 +02:00
config.yml server 2019-10-23 10:56:28 +02:00
disable_motors.py Have plotter follow MT mouse - a bit hacky still 2019-10-15 12:42:59 +02:00
Pipfile WIP on the server 2019-10-23 22:33:37 +02:00
Pipfile.lock WIP on the server 2019-10-23 22:33:37 +02:00
README.md WIP on the server 2019-10-23 22:33:37 +02:00
requirements.txt Send drawing to server - WIP 2019-09-11 18:16:33 +02:00
server_test.py server 2019-10-23 10:56:28 +02:00
sorteerhoed.py server 2019-10-23 10:56:28 +02:00

Webserver

Webserver is published to the web trough ssh remote forward. In /etc/ssh/sshd_config set GatewayPorts yes.

Then start autossh to maintain the connection:

autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 8888:localhost:8888 here.rubenvandeven.com

To resolve the country the (imprecise) GeoLite2 Free Country dataset is used. Download it from MaxMind and store it in the project root folder.

Scanning

For scanning run visudo and add to the sudoers file:

mt	ALL=(ALL) NOPASSWD: /usr/bin/scanimage