Utilities for obstech
Project description
Obstech python utilities
Utilities for El Sauce observatory to make life easier dealing with MySQL, MQTT, Google sheets, mailing, Telegram, command line options and configuration files, socket/serial connections, etc.
Installation
- From local sources, within a virtual environment,
pip install -e .
- From python repository, within a virtual environment,
pip install obstechutils
.
Utilities
db
: connect to MySQLgoogle
: down from google services like sheetsroof
: list roof infomqtt
: MQTT clientinventory
: read inventory from the main Google Sheets databasecredentials
: deal with logging into serversemail
: basic email sendertelegram
: basic Telegram clientconnection
: unified interface to serial port/socket connectionsconfigparse
: argparse extended to use configuration files and env. variablesmeteo
: basic meteo functionscoordinates
: coordinates utilities (e.g. GeoidLocation)array
: array utilities such as masked array interpolation/binningdataclasses
: dataclass improvements with pydanticrinex
: some basic utils for RINEX GPS formatprecise_timing
: close to real time tools, such as periodic calls of functionspyrgeometer
: cloud sensor calibration
Scripts
mqtt_console
: display MQTT messages on the weather workstationreport_device_status
: check whether PCs and devices are turned onlist_roofs
: list roof parameters
Credentials file
The credentials file should be in ~/.config/obstechutils
with the following
format
mail:
device_status:
username: xxxxxxx@yyyy.zzz
password: xxxx xxxx xxxx xxxx
server: smtp.xxxx.yyy
port: 465
mqtt:
generic_obstech:
username: obstech
password: xxxxxxxxxx
server: yyy.yyy.yyy
port: 1883
qos: 2
timeout: 60
mysql:
generic_obstech:
username: obstech
password: xxxxxxxxxx
server: yyy.yyy.yyy.yyy
port: 3306
googleapi:
generic_obstech:
username: googleuser@gmail.com
token: googleapi/token-generic_obstech.json
credentials: googleapi/credentials-generic_obstech.json
scopes:
- https://www.googleapis.com/auth/spreadsheets.readonly
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
obstechutils-0.1.30.tar.gz
(28.3 kB
view details)
Built Distribution
File details
Details for the file obstechutils-0.1.30.tar.gz
.
File metadata
- Download URL: obstechutils-0.1.30.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7f585e4a136796b40c8e55a7cb7fc0fcf04f6601056e2761357d2b536d1550 |
|
MD5 | 8f3689b9ddedbae3d8d1f1d3374a6593 |
|
BLAKE2b-256 | f9e1b3cc9816077cbf250f0623e60c160567ae55f10c9ce3995527288d1a7101 |
File details
Details for the file obstechutils-0.1.30-py3-none-any.whl
.
File metadata
- Download URL: obstechutils-0.1.30-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1c398b3fff52bedbd747a900eceee8a874bd81396aed523c459bb18b669018 |
|
MD5 | 3edbe69fee96197986d2002bb55a85ab |
|
BLAKE2b-256 | b7c53eeca4aefc26af542603ca644a7c7766439a9e88c84f9bf0d8f5ede8e4c6 |