Skip to content

mluhmann/phoenixcontact_fe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Hackathon with Phoenix Contact

This Projects enables the PLC Next Controller to do Image processing and gives it AI capabilities, that can be transformed to an App to the PLCnext Store after launch.

Install Python setup on PLCnext Control unit

# set super user
su

# check for disc space
df -h

# install package manager
# change for x86
wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabihf-bootstrap.sh | sh
# check if the date is correct (otherwise the ssl handshake goes bad)
date -R
# set date (if necessary)
date --set <yyyy-mm-dd>
date --set <hh:mm>
# add all relevant paths
export PATH=$PATH:/opt/bin:/opt/sbin:/opt/local/bin/

# install packages
ipkg install python3
alias python=/opt/bin/python3.7
# install necessary packages
ipkg install py3-pip
ipkg install gcc

# update pip
pip3 install --upgrade pip

pip3 install flask
pip3 install flask_sockets
pip3 install flask_cors
pip3 install requests

python server/server.py \
--user <BASIC AUTH USER> \
--pwd <BASIC AUTH PWD> \
--stream_id <STREAM ID> \
--dataset_id <DATASET ID>

Development Frontend

Make sure you have NPM and yarn installed. In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.7%
  • HTML 21.6%
  • Python 15.7%
  • CSS 4.0%