Skip to content

img21326/pyqt_pig

Repository files navigation

Demo

screenshot

TCP Connect(水量儀485)

screenshot

RPI CONNECT TUTORIAL

screenshot

Requirements

  • Python3
  • autopep8==1.5.3
  • click==7.1.2
  • minimalmodbus==1.0.2
  • prompt-toolkit==3.0.5
  • pycodestyle==2.6.0
  • pyserial==3.4
  • six==1.11.0
  • toml==0.10.1
  • tqdm==4.46.0
  • wcwidth==0.1.9

Install

$ git clone https://github.com/img21326/pyqt_pig.git
$ cd pyqt_pig
$ pip install -r requirements.txt
$ cp config.env.example config.env

setup config file

$ vim config.env
[CONFIG]

API_URL =

LOG_FILE = log.txt

LOG_LEVEL = debug|info

[FOOD]

WEIGHT_PORT =

WEIGHT_IP =

WEIGHT_COM =

RFID_IP =

RFID_PORT =

RFID_COM =

[WATER]

RFID_IP =

RFID_PORT =

RFID_COM =

WATER_IP =

WATER_PORT =

WATER_COM =
  • 如果是透過TCP/IP則輸入PORT與IP
  • 如是透過USB請輸入COM
  • 請勿兩者皆輸入

RUN

$ python3 main.py

RUN WITH DOCKER

setup docker-compose.yml (連結usb設備)

devices:
- /dev/ttyACM0:/dev/ttyACM0 # RFID
- /dev/ttyUSB0:/dev/ttyUSB0 # SERIAL ex:water device

start up

docker-compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published