Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipptrenz/bosch-glm-rangefinder
Python script to remote control a BOSCH GLM 100C rangefinder via its Bluetooth serial interface
https://github.com/philipptrenz/bosch-glm-rangefinder
bluetooth bosch distance-measures glm100c rangefinder remote serial
Last synced: 5 days ago
JSON representation
Python script to remote control a BOSCH GLM 100C rangefinder via its Bluetooth serial interface
- Host: GitHub
- URL: https://github.com/philipptrenz/bosch-glm-rangefinder
- Owner: philipptrenz
- License: mit
- Created: 2018-05-09T15:14:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:28:57.000Z (over 1 year ago)
- Last Synced: 2023-10-20T22:21:30.252Z (about 1 year ago)
- Topics: bluetooth, bosch, distance-measures, glm100c, rangefinder, remote, serial
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 52
- Watchers: 7
- Forks: 24
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BOSCH GLM rangefinder
**Please note:** This repository is no longer maintained and unfortunately I cannot provide support for it.
Python3 script to remote control a BOSCH GLM 100C or GLM 50C rangefinder.
This script provides remote control features for the BOSCH GLM 100C/50C measuring device via its Bluetooth serial interface. The device uses the transfer protocol as described [in this blog post](https://www.eevblog.com/forum/projects/hacking-the-bosch-glm-20-laser-measuring-tape/msg1331649/#msg1331649).
As the protocol seems to be identical for various Bosch measuring devices this script could also work for Bluetooth enabled rangefinders like PLR30C, PLR40C or PLR50C. If so please let me know!
## Features
* measure (returns distance millimeters)
* turn laser on and off
* turn display backlight on and off## Dependencies
The script was only tested on Windows. But since the Python module used is multi-platform, it should also support Linux and MacOS. See [pybluez](https://github.com/pybluez/pybluez) for further information.
Install `pybluez` for the Python3 interpreter via `pip`:
```bash
pip3 install pybluez
```## Run the script
### Use the command line tool
```bash
python3 glm100c.py
```Instructions on how to use get printed to the command line.
### Import into your project
```python
from glm100c import GLM100Crangefinder = GLM100C()
if not rangefinder.connected: exit(1)distance = rangefinder.measure_from_tripod_socket()
if distance is not -1: print(distance, 'mm')
```