Tuesday, January 28, 2025

install / build switchbot temperature sensor tool on raspberry pi os

Switchbot reading tool

use this tool
github incantation
https://github.com/lukearran/SwitchBot-Meter-API.git
https://github.com/lukearran/SwitchBot-Meter-API?tab=readme-ov-file

You will need:

Python3   standard on current Pi OS
SwitchBot Thermometer
BluePy
Flask
TinyDb

Bluepy
https://github.com/IanHarvey/bluepy
github incantation
https://github.com/IanHarvey/bluepy.git
you should install from source.

$ sudo apt-get install git build-essential libglib2.0-dev
$ git clone https://github.com/IanHarvey/bluepy.git
$ cd bluepy
$ python setup.py build
$ sudo python setup.py install

Flask
https://github.com/pallets/flask
https://flask.palletsprojects.com/en/stable/

github incantation
https://github.com/pallets/flask.git

do crap on this page
https://flask.palletsprojects.com/en/stable/installation/#python-version

TinyDb
install
github incantation
git clone https://github.com/msiemens/tinydb.git

https://tinydb.readthedocs.io/en/latest/getting-started.html

dealing with python horsehooey
https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3

use pipx to install


 
NOTE:
edited under protest for blogspot censorship.  
--30--