IOT application that collect data from PLC (ModBus or AnB Ethernet/IP) and send to cloud using https
Project description
Local Connector Python
-----------------------------
Created by Idop - 21.6.2016
reads Modbuc TCP \ EtherNetIP \ Simulation tags and send to web service using OAuth \ Basic authentication
Runs on Python 2.7.9 and tested on raspberi Pi3 - debian Jesi OS
How to Operate:
------------------------------
After installing correctly all componenets you can run
sudo python CI_LocalConnector.py help
This will show all operating options
after testing is done you can operate application in production mode using
sudo python CI_LocalConnector.py MainLoop
Install Instructions
------------------------------
Project us uploaded to Open source directory "PIP"
run the next command to download and install the module
sudo pip install CI_LocalConnector upgrade
running the application
-------------------------------
run the module from where it was delpyed in with help option to see instructions
importent: in the first run a config file will be created in /CI_LC/config.ini you must edit this file with server defenitions
sudo python CI_LocalConnector.py help
* dependencies should be installed automaticly (required modules : pip , pymodbus , cpppo
running the apllication at startup (linux)
----------------------------------------
edit startupscript
sudo nano /etc/init.d/idopStartUp.sh
sudo chmod 755 /etc/init.d/idopStartUp.sh
sudo update-rc.d idopStartUp.sh defaults
to remove from startup
sudo update-rc.d -f idopStartUp.sh remove
inside this file we just call another shell
idopStartUp.sh
-------------
#! /bin/sh
# /etc/init.d/idopStartUp.sh
bash /home/pi/CI_Projects/launcher.sh &
#!/bin/sh
# launcher.sh
#navigate home than to this directory then back home
cd /
cd /home/pi/CI_Projects
export PATH="$PATH:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/home/pi/.local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7"
sudo python CI_LocalConnector.py MainLoop
cd /
-----------------------------
Created by Idop - 21.6.2016
reads Modbuc TCP \ EtherNetIP \ Simulation tags and send to web service using OAuth \ Basic authentication
Runs on Python 2.7.9 and tested on raspberi Pi3 - debian Jesi OS
How to Operate:
------------------------------
After installing correctly all componenets you can run
sudo python CI_LocalConnector.py help
This will show all operating options
after testing is done you can operate application in production mode using
sudo python CI_LocalConnector.py MainLoop
Install Instructions
------------------------------
Project us uploaded to Open source directory "PIP"
run the next command to download and install the module
sudo pip install CI_LocalConnector upgrade
running the application
-------------------------------
run the module from where it was delpyed in with help option to see instructions
importent: in the first run a config file will be created in /CI_LC/config.ini you must edit this file with server defenitions
sudo python CI_LocalConnector.py help
* dependencies should be installed automaticly (required modules : pip , pymodbus , cpppo
running the apllication at startup (linux)
----------------------------------------
edit startupscript
sudo nano /etc/init.d/idopStartUp.sh
sudo chmod 755 /etc/init.d/idopStartUp.sh
sudo update-rc.d idopStartUp.sh defaults
to remove from startup
sudo update-rc.d -f idopStartUp.sh remove
inside this file we just call another shell
idopStartUp.sh
-------------
#! /bin/sh
# /etc/init.d/idopStartUp.sh
bash /home/pi/CI_Projects/launcher.sh &
#!/bin/sh
# launcher.sh
#navigate home than to this directory then back home
cd /
cd /home/pi/CI_Projects
export PATH="$PATH:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/home/pi/.local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7"
sudo python CI_LocalConnector.py MainLoop
cd /
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CI_LocalConnector-0.18.zip
(8.6 kB
view details)
File details
Details for the file CI_LocalConnector-0.18.zip
.
File metadata
- Download URL: CI_LocalConnector-0.18.zip
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192da9b55ec12823f99f6d8ecfe0b55f4eaeda0cd59dec9f8f921ce1fcad4c62 |
|
MD5 | b1f5877e9ede000b99dcf44963bbb36d |
|
BLAKE2b-256 | 2955a4cb128f74d4d9f7db6f89d75bf92bd28450cae58237f8f950eaea864bc2 |