Skip to content

rub8n/hyperion-webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hyperion-webapp

Colorpicker webapp for Hyperion (https://github.com/tvdzwan/hyperion/wiki/)

The color picker is based on the Boblight version created by Nadnerb (http://blog.nadnerb.co.uk/) The color picker was re-factored by Bradley Cornford (http://bradleycornford.co.uk/)

Installation

Install dependencies:

sudo apt-get update
sudo apt-get install nginx php5-fpm

Configure the webserver:

sudo nano /etc/nginx/sites-enabled/default

Replace the contents of the file with:

server {
        listen 8888;
        root /home/pi/www;
        index index.php index.html index.htm;

        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
        }
}

Download the contents of this repository to /home/pi/www. You can either download a zip from github or clone the repository using (you need to have git installed for this):

git clone https://github.com/poljvd/hyperion-webapp.git /home/pi/www

Finally restart the webserver:

sudo service nginx restart
sudo service php5-fpm restart

The site should now be available on http://ip-of-host:8888

Required if you are running Raspbian / Debian:

Update the visudo list:

pkexec visudo

In the section "# Cmnd alias specification" add:

Cmnd_Alias WEBDAEMONS = /etc/init.d/hyperion

In the section "#includedir /etc/sudoers.d" add:

www-data ALL = (root) NOPASSWD: WEBDAEMONS

Open the configuration file:

sudo nano /home/pi/www/conf/Configuration.php

Update the configuration for "serverController"

'serverController' => 'sudo /etc/init.d',

FAQ

  • I got a 403 error when loading the webpage.
    Check if index.php exists in the /home/pi/www folder and check the permissions on the file (change with chmod -R 775 /home/pi/www)
  • I got an error when clicking a button. Check the owner of the index.php file in /home/pi/www (change with chown -R pi:www-data /home/pi/www)

License

This software is released under the GPL license

About

Colorpicker webapp for Hyperion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 51.0%
  • CSS 25.2%
  • JavaScript 23.8%