Ir al archivo
openhabian configurator bdcc945450 minor fixes for Openhab v2.5.x 2020-10-10 21:49:00 +02:00
.idea added people counter, door status, status lamp, soldering table 2019-06-04 21:21:18 +02:00
.vscode add server connection to vscode config 2019-12-27 11:47:02 +01:00
html Initial setup 2019-04-07 15:14:49 +02:00
icons/classic Initial setup 2019-04-07 15:14:49 +02:00
items add things, items and rules for Area42 table lamps 2019-12-27 12:56:16 +01:00
misc minor fixes for Openhab v2.5.x 2020-10-10 21:49:00 +02:00
persistence peoplecounter, IR, spacestatus, proxy config, amplifier 2019-07-18 20:07:57 +02:00
rules minor fixes for Openhab v2.5.x 2020-10-10 21:49:00 +02:00
scripts Initial setup 2019-04-07 15:14:49 +02:00
services minor fixes for Openhab v2.5.x 2020-10-10 21:49:00 +02:00
sitemaps add lights group to sitemap 2019-12-27 15:32:18 +01:00
sounds Initial setup 2019-04-07 15:14:49 +02:00
syn2cat minor fixes for Openhab v2.5.x 2020-10-10 21:49:00 +02:00
things add things, items and rules for Area42 table lamps 2019-12-27 12:56:16 +01:00
transform added people counter, door status, status lamp, soldering table 2019-06-04 21:21:18 +02:00
README.txt peoplecounter, IR, spacestatus, proxy config, amplifier 2019-07-18 20:07:57 +02:00
openhab2.iml several changes 2019-11-10 16:10:43 +01:00

README.txt

An openHAB implementaiton for the level2 hackerspace

Dump this into /etc/openhab2





Installing proxy for paperUI

sudo bash
apt-get update
apt-get install nginx

rm /etc/nginx/sites-enabled/default
cat >/etc/nginx/sites-available/openhab <<"EOF"
server {
    listen          80;
    server_name     lights.level2.lu;
# https://community.openhab.org/t/occasional-offline-in-basicui-when-proxying-via-nginx-connection-timed-out/63347
    location / {
        proxy_pass                            http://localhost:8080/;
            proxy_buffering                 off;
            proxy_request_buffering         off;
            proxy_http_version              1.1;
        proxy_set_header Host                 $http_host;
        proxy_set_header X-Real-IP            $remote_addr;
        proxy_set_header X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto    $scheme;
        proxy_set_header X-Forwarded-Host $host:$server_port;
        proxy_set_header X-Forwarded-Server $host;
            client_body_buffer_size         0;
            client_max_body_size            0;
            proxy_max_temp_file_size        0;
            proxy_read_timeout              18000;
            proxy_send_timeout              18000;

            gzip                            off;
    }
    location ~ ^/(paperui|habmin) {
        # return 301 /basicui/app;
        deny all;
    }
}
EOF
ln -s /etc/nginx/sites-available/openhab /etc/nginx/sites-enabled/
service nginx restart