Skip to content

tawanmeow/ida-modbus-reader

Repository files navigation

modbus_ida


Details

Patch Note

- Add C Intelligent reader.
- Performance upgrade for uRCONNECT and power meter reader.
- Update tutorial documents.

Plan

- Add autoupdate function.
- Add Modbus TCP reader.

Requirements (requirements.txt)

  • Python v2.7
  • Flask
  • win-inet-pton
  • requests
  • pymodbusTCP
  • flask-login
  • flask-sqlalchemy
  • mysql-connector-python
  • pytz
  • pyping
  • gitpython
pip install -r requirements.txt

Current structure

modbus_ida
├── /webapp
      ├── cert (self-signed certificate files)
      ├── req (python package requirement)
      ├── static (css, images ,javascript files)
      ├── templates (html files)
      └── webapp.py
├── app.py
├── app_config.ini
└── version.txt

For Cisco IOx: Build IOx package from docker image

docker build -t modbus_ida .
  • Save image to tar archive.
docker save -o rootfs.tar
  • Build IOx package from tar archive. (IOx Client and tar archive in the same directory)
./ioxclient package .

For other ARM 64-bit architecture.

  • It's okay if u want to deploy web application, but I prefer to run script on server/device instead of deploy to server.
  • Add command to dockerfile
EXPOSE 6969
WORKDIR /modbus_ida
CMD ["python","app.py"]
  • Build docker image from dockerfile.
docker build -t modbus_ida .
  • Create docker container from docker image.
docker run -it -d --restart=always -p 6969:6969 your_docker_image

About

modbus goes brrrrrr :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors