Update README.md

This commit is contained in:
Viktor Varland 2016-04-05 19:39:33 +02:00
parent 2fe596ec56
commit 8913024a57

View file

@ -2,9 +2,29 @@ pubIp
=====
Simple dynamic DNS resolver which works with
[Tomato](http://www.polarcloud.com/tomato) and requires [Python
[Tomato](http://www.polarcloud.com/tomato) and requires only [Python
3](http://python.org).
## Just run it.
```
$ /usr/bin/python3 pubip.py
```
## Supervisor config example
```
$ cat /etc/supervisor/conf.d/pubip.conf
[program:pubip]
command=/path/to/python3 pubip.py
directory=/YOUR_DIR/pubip
user=NOT_ROOT_FOR_PETES_SAKE
autostart=true
autorestart=true
redirect_stderr=true
```
## Setup in Tomato
0. In the left menu under `Basic -> DDNS` set "auto-refresh every" to e.g. 1 days.