https://github.com/toolsprods/latchforoctoprint
A hack to implement Latch on a OctoPrint server
https://github.com/toolsprods/latchforoctoprint
Last synced: 12 months ago
JSON representation
A hack to implement Latch on a OctoPrint server
- Host: GitHub
- URL: https://github.com/toolsprods/latchforoctoprint
- Owner: toolsprods
- License: gpl-3.0
- Created: 2016-07-29T08:07:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T08:10:13.000Z (almost 10 years ago)
- Last Synced: 2025-03-21T01:46:09.050Z (about 1 year ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



# Latch for OctoPrint
"Latch for OctoPrint" is a hack to implement Latch on a OctoPrint server.
Patching OctoPrint
==================
Download and copy the content of "octoprint" folder in the directory with the same name at OctoPrint project that is "src".
```
git clone https://github.com/foosel/OctoPrint.git
git clone https://github.com/toolsprods/LatchForOctoPrint
cp -r LatchForOctoPrint/octoprint OctoPrint/src/
```
Pairing Latch
=============
**Note:** For this step you must create an application from the Latch developer panel and have the App ID and the secret.
Edit the "config.py" file in "src/octoprint/server/latch" with the App ID and the secret.
Pair from the OctoPrint directory:
```
python src/octoprint/server/latch -p PAIRING_CODE_HERE
```
Back to edit the "config.py" file, adding now the Account ID received.
To unpair:
```
python src/octoprint/server/latch -u
```
Installing OctoPrint
====================
Finally it ends with the installation of OctoPrint. Run at OctoPrint directory:
```
virtualenv venv
./venv/bin/python setup.py install
```
Run OctoPrint:
```
./venv/bin/octoprint
```
Authors
=======
**Álvaro Núñez** -
**Latch** - [Eleven Paths](https://latch.elevenpaths.com)
License
=======
This project is licensed under the GNU General Public License - see the LICENSE file for details