An open API service indexing awesome lists of open source software.

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

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

![](howitlooks.png)