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. Build the package:

    python3 setup.py sdist bdist_wheel
    
  3. Upload to PyPI:

     python3 -m twine upload dist/*
    
  4. 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.3.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.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartfarm_iot-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ca3c0a67413627e559158308df24ac0ce5d32c89e728eeee862a7d1896c95d5a
MD5 7d82cc043cb66988e17a747c79699afa
BLAKE2b-256 386f96915f24c42c66788de69084f7b0d571ed3ca00dc3cd8c3cf03c0bff386f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartfarm_iot-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c799f287e32e65421ca0cb7e1bf217c675cb3262ac0e4450cc47f9a8af17c12e
MD5 66b55ab8406877d6d4a18fc4f2017c58
BLAKE2b-256 e8b160375bb099b728f4c6be45da1f8449a11fef4451ebed4f974e079ddee51f

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