Skip to main content

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 MySQL plus observatory-specific queries
  • meteo/: basic meteo functions plus DIMM analysis
  • sensors/: handle the various weather sensors at the observatory
  • cameras/: pythonic drivers for cameras (so far ASI)
  • google: down from google services like sheets
  • roof: list roof info
  • mqtt: MQTT client
  • inventory: read inventory from the main Google Sheets database
  • credentials: deal with logging into servers
  • email: basic email sender
  • telegram: basic Telegram client
  • connection: unified interface to serial port/socket connections
  • configparse: argparse extended to use configuration files and env. variables
  • coordinates: coordinates utilities (e.g. GeoidLocation)
  • array: array utilities such as masked array interpolation/binning
  • dataclasses: dataclass improvements with pydantic
  • rinex: some basic utils for RINEX GPS format
  • precise_timing: close to real time tools, such as periodic calls of functions

Scripts

  • mqtt_console: display MQTT messages on the weather workstation
  • report_device_status: check whether PCs and devices are turned on
  • list_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


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.2.1.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

obstechutils-0.2.1-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

Details for the file obstechutils-0.2.1.tar.gz.

File metadata

  • Download URL: obstechutils-0.2.1.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for obstechutils-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a226f62803620b08f844d151999658eab98f8e61497d42343117928b766b98ab
MD5 cc7c503992469b412d7f6854a6982b74
BLAKE2b-256 d26789cdfa874fd13bb37cf8238062a588d3c4a03aea3fa4cb63cc448c41f34d

See more details on using hashes here.

File details

Details for the file obstechutils-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: obstechutils-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for obstechutils-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4725151194614a0c550622ee0b25911851aad63cad57972f3f6ea5a1e6de11f4
MD5 b9108ee6aa19c1af951dc616a82589a3
BLAKE2b-256 f30cb7564cd122985b3a0739ecdb808b88e74a315c9bb7ea0cb4106439bb27cd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page