Sample use case for workspace management based on IOX Gateway
This is an end to end sample project for managing the workspace using sensors deployed in the office cubicles. A fog application running on the IOX gateway collects the sensor data which is sent to a centralized server application which provides a dashboard of workspace usage in real time.
reset profile first
create profile
./ioxclient profiles create
Creating one time configuration..
Your / your organization's name : cisco
Your / your organization's URL : cisco.com
Your IOx platform's IP address[127.0.0.1] : 10.10.20.51
Your IOx platform's port number[8443] : 8443
Authorized user name[root] : cisco
Password for cisco :
Local repository path on IOx platform[/software/downloads]:
URL Scheme (http/https) [https]:
API Prefix[/iox/api/v2/hosting/]:
Your IOx platform's SSH Port[2222]: 22
Your RSA key, for signing packages, in PEM format[]:
Your x.509 certificate in PEM format[]:
Activating Profile default
Saving current configuration
Active Profile : default
Enter a name for this profile : sandbox
Your IOx platform's IP address[127.0.0.1] : 10.10.20.51
Your IOx platform's port number[8443] : 8443
Authorized user name[root] : cisco
Password for cisco :
Local repository path on IOx platform[/software/downloads]:
URL Scheme (http/https) [https]:
API Prefix[/iox/api/v2/hosting/]:
Your IOx platform's SSH Port[2222]: 22
Your RSA key, for signing packages, in PEM format[]:
Your x.509 certificate in PEM format[]:
Activating Profile sandbox
Saving current configuration
git clone https://github.com/wiprodevnet/iot-workspace-management.git
cd iot-workspace-management/IOXApp
sudo docker build -t iot_sensor_data_app .
Step to run client to send sensor data to app.
Sudo apt-get install python3.6
pip install -r requirements.txt
sudo apt-get install mysql-server
Refer below link for more details about MYSql installtion
https://vitux.com/how-to-install-and-configure-mysql-in-ubuntu-18-04-lts/
Previous IOx labs needed to complete this lab
You will need to have completed the learning the following labs:
You should have a basic understanding on how to build and run a docker application.
To create a Docker image and push it to the Docker Hub, you will need the correct Docker tools for your platform which are available at https://www.docker.com/products/overview.
Download and install the correct version for your operating system.
This lab has instructions for using a docker container that sets up a web service you can access from your browser. The web service is a browser based version of Visual Studio Code, developed by Coder Com (https://coder.com) and utilizes docker to run the service. Since it is Visual Studio Code, it it provides a text/code editor and comes pre-built with ioxclient and everything you need to build IOx applications. You will need the Docker Platform on your desktop or developer machine to run this environment.
To access the DevNet Sandbox, you will need to use the Cisco AnyConnect Client for Virtual Private Network (VPN) access to the IOx instance. If you need to install it, you can find it at this link.
Note: If you are working on a DevNet Lab workstation, this software is already installed.
You will need the ioxclient to package and deploy the IOx Application. If you need to download it, you can find it at this link.
Note: If you are working on a DevNet Lab workstation or you are using the "IOx Dev Environment As A Service" container, this software is already installed.
One way to get the application template code is to use git. We have the option to download the code, so this step is optional. If you are working on a DevNet Lab workstation, the git software is already installed. If you need to install it, you can find it at this link.
Note: You can verify the installation of git by opening a command prompt and running:
Additional Note: If you are working on a DevNet Lab workstation or you are using the "IOx Dev Environment As A Service" container, this software is already installed.
Owner
Contributors
Categories
Products
IoT Operations Dashboard (IoT OD)Programming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community