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
  • 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
  • meteo: basic meteo 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.1.3.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

obstechutils-0.1.3-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for obstechutils-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0a07595a67455e098120d1b5a79975150dbb3eb3bf5f9bdd306aa228d762dddc
MD5 79faef370188545ac5bf85e45ed320bf
BLAKE2b-256 20a50954ce6e91d70683536c7dd0ccd4c48e55e6f9a6e9b09b4a7b827d2d080c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: obstechutils-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.8 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f9dcab930b27426d503c704f73bd7308a99d9dac483af77529d41ea629f18b3
MD5 96af3e35b9d3544e3f412dd70299b569
BLAKE2b-256 286d60a62edacaef0b578dac9086a067bfedaa4a3bf13eb4107218b84612caaa

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