summaryrefslogtreecommitdiff
path: root/README.md
blob: 027be25e0415b239733bee0f1d34f448f099c34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37


# picontrol

A small Web Application to shutdown or reboot your Raspberry Pi.


## Usage

### Preparation

Make sure to open your firewall on port 8080. **If** you use UFW you can do it like this:
```bash
    sudo ufw allow 8080
```

Install python3, Flask and waitress. python3 installation depends on your system.
With pip you can install Flask and waitress very easily:
```bash
    sudo pip3 install Flask waitress
```

### How to install, start and enable
```bash
    git clone https://github.com/xengineering/picontrol.git
    cd picontrol
    sudo useradd -rUs /usr/bin/nologin picontrol
    sudo make install
    sudo systemctl enable --now picontrol
```

### How to remove
```bash
    sudo systemctl disable --now picontrol
    sudo make uninstall  # just works from picontrol directory (the git repository you cloned)
    sudo userdel picontrol
```