Skip to main content

MQTT listener to save data

Project description

Tests

MQTT subscriber

A service to listen for messages and save the data.

Installation

Create a service user.

Create a virtual environment

sudo mkdir -p /opt/balance-subscriber
sudo python3 -m venv /opt/balance-subscriber/venv

Activate the virtual environment

source /opt/balance-subscriber/venv/bin/activate

Install this package

pip install balance-subscriber

Usage

The app will run as a service in the background.

Monitoring

View service status

sudo systemctl status balance-subscriber.service

View logs

sudo journalctl -u balance-subscriber.service --since "1 hour ago"

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

balance_subscriber-0.0.1a1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

balance_subscriber-0.0.1a1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file balance_subscriber-0.0.1a1.tar.gz.

File metadata

  • Download URL: balance_subscriber-0.0.1a1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for balance_subscriber-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 bdd074f0762913c2629c4157934679cb0938f45d4056ae8dd4e8cd68fad086c5
MD5 b84c8b1b0f42516fb0e774e7386bcf07
BLAKE2b-256 a6dc94072e43d8b062e3f97c7e6eb95015415f95f394a9720ef3cff8d99a58e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for balance_subscriber-0.0.1a1.tar.gz:

Publisher: publish.yaml on IoT-balance-project/balance-mqtt-subscriber

Attestations:

File details

Details for the file balance_subscriber-0.0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for balance_subscriber-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd9ee34b03a6dc27601b6bbe601065f09e65bb67b19ad36168c84b96c36349d
MD5 a2a1a53a4c893d7da486fd041a7d432e
BLAKE2b-256 abb3335ea9faf78ee7764750cf86531ba2b4a362ba0bbb46d5eeff5000fda366

See more details on using hashes here.

Provenance

The following attestation bundles were made for balance_subscriber-0.0.1a1-py3-none-any.whl:

Publisher: publish.yaml on IoT-balance-project/balance-mqtt-subscriber

Attestations:

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