https://github.com/mdminhazulhaque/php-gpio-tool
:bulb: A simple PHP-based automation project using GPIO on NanoPi Neo
https://github.com/mdminhazulhaque/php-gpio-tool
api gpio http nanopi-neo php
Last synced: 4 months ago
JSON representation
:bulb: A simple PHP-based automation project using GPIO on NanoPi Neo
- Host: GitHub
- URL: https://github.com/mdminhazulhaque/php-gpio-tool
- Owner: mdminhazulhaque
- Created: 2016-11-17T06:10:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-24T12:08:50.000Z (over 9 years ago)
- Last Synced: 2025-01-14T04:11:53.669Z (about 1 year ago)
- Topics: api, gpio, http, nanopi-neo, php
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NanoPi Neo GPIO Demo Project
A simple PHP-based automation project using GPIO on NanoPi Neo
## Prepare
* Install Ubuntu Core
* Install `php5-cli`
* Install `cpufrequtils`
* Append the content of `rc.local` to `/etc/rc.local`
## API Call
`GET /api/[0-9]/[on|off]`
### Example
* `/api/0/on` will turn on load on channel 0
* `/api/1/off` will turn off load on channel 1
> Configure GPIO to channel mapping at `api/index.php:$gpio_config`
## How It Looks
