summaryrefslogtreecommitdiff
path: root/README.md
blob: 968cf44ad45f5a6da2d7843236199d1973159b1f (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
38
39
40
41
42
43
44


# 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://cgit.xengineering.eu/picontrol
    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
```

### Access the Web Page

You just have to visit http://hostname:8080 in the browser of your
choice.