Skip to content

Simple Omega2+ web application for controlling the on-board LED.

License

Notifications You must be signed in to change notification settings

stuianna/omega2_helloWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A simple web based application for controlling the Omega2+'s on-board LED over a local network. The user can control the state and PWM duty cycle of the LED. A realtime plot is shown of the last 10 second's PWM values.

App Preview

The application uses jQuery for the front-end user interface and Python's bottle as the web-framework. Plotly is used for generating the real time plot. It is designed to provide a simple template which can built upon to create larger IOT projects.

The application also features a method for sending data between the front-end and bottle python server.

Installation

This application has the following dependencies, each can be installed through ssh, directly onto the Omega2+.

  • Python3:
opkg update
opkg install python3-light
opkg install python3-pip
  • Bottle:
pip3 install bottle
  • Git
opkg update
opkg install git git-http

Further instructions on installing these packages can be found here

Once the dependencies are installed, this repository can be cloned directly onto the Omegle2+

git clone https://github.com/stuianna/omega2_helloWeb.git

Finished.

Usage

Change into to newly cloned directory.

cd omega2_helloWeb

Start the bottle server:

python3 app.py

The server takes a few seconds to start-up.

Open up a web browser on another device and navigate to:

XXX.XXX.X.X:5000

Where the Xs are the IP address of your Omegle2+.

The browser should now be displaying the same screen as the preview image and you can control the Omega2+'s on-board LED.

About

Simple Omega2+ web application for controlling the on-board LED.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published