https://github.com/p403n1x87/led_app
IoT application for Raspberry Pi to control LEDs over the network
https://github.com/p403n1x87/led_app
apache2 iot wsgi-application
Last synced: about 1 year ago
JSON representation
IoT application for Raspberry Pi to control LEDs over the network
- Host: GitHub
- URL: https://github.com/p403n1x87/led_app
- Owner: P403n1x87
- License: gpl-3.0
- Created: 2017-08-05T13:19:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T13:25:49.000Z (almost 9 years ago)
- Last Synced: 2025-01-31T10:14:34.574Z (over 1 year ago)
- Topics: apache2, iot, wsgi-application
- Language: CSS
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Synopsis
`led_app` is a sample IoT web application to control LEDs over the network meant to run on a Raspberry Pi running the Raspbian OS. This repository collects the code that features in [this post](https://p403n1x87.github.io/raspberry%20pi/iot/2017/07/31/intro-to-iot.html) on [The Hub of Heliopolis](https://p403n1x87.github.io/).
## Requirements
- Python 2.7
- RPi
- Apache 2
- mod_wsgi
## Installation
It is enough to clone this repository locally and configure Apache 2 as described in the post on The Hub of Heliopolis linked above. Here is just a brief summary.
Assuming that you have cloned the project in the `/home/pi/Projects/www` local folder, this is a possible minimal Apache2 site configuration.
~~~ apache
# File: led.conf
ServerAdmin webmaster@localhost
# Required by static data storage access (e.g. css files)
DocumentRoot /home/pi/Projects/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# WSGI Configuration
WSGIScriptAlias /led /home/pi/Projects/www/led_app/bootstrap.wsgi
Require all granted
~~~
## License
GPLv3.