Skip to main content

A package for Smart Farm IoT data collection and publishing using Modbus TCP and MQTT

Project description

logo

Dr.AG Smart Farm IoT Project

This project collects data from IoT devices in a smart farm using Modbus TCP protocol and publishes the data to an MQTT broker.

Project Structure

  • config/: Configuration files including farm information and device details.
  • src/: Source code for reading Modbus data and publishing to MQTT.
  • logs/: Directory for log files.
  • requirements.txt: Python dependencies.
  • README.md: Project documentation.

Setup

  1. Install the required Python packages:

    pip install -r requirements.txt
    
  2. Configure your MQTT broker and device information in the config directory.

  3. Run the main program:

    python src/main.py
    

Building and Distributing the Package

  1. Install necessary packages:

    pip3 install setuptools wheel twine
    
  2. Increase version, build package, and upload PyPI:

    ./build.sh
    
  3. View at:

Copyright

ⓒ 2024. NDS all rights reserved.

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

smartfarm_iot-0.0.9.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartfarm_iot-0.0.9-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file smartfarm_iot-0.0.9.tar.gz.

File metadata

  • Download URL: smartfarm_iot-0.0.9.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for smartfarm_iot-0.0.9.tar.gz
Algorithm Hash digest
SHA256 fb58ba1db8287b7043c2aadd050227ebd49f12844284df5a8cffce3ee573ef09
MD5 1d73b33851751d225e8246bdfed78d1a
BLAKE2b-256 2530625c4ce12ea8c366b0569b609b69d1dfb90cf291d94eada462c187a0fedd

See more details on using hashes here.

File details

Details for the file smartfarm_iot-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: smartfarm_iot-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for smartfarm_iot-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1b7264566ca2d65bd09a0540c4e1fcf460073fc75c74570601b7ed033cd5ddb7
MD5 4289756a16170e408557a20cd7bec702
BLAKE2b-256 b2aa1f60e678ec4908b54614ea372f9d1c6b5a5d64c88bcf0b2807b72ff8c473

See more details on using hashes here.

Supported by

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