Initial project structure
This commit is contained in:
commit
42801e5c6d
3 changed files with 29 additions and 0 deletions
15
src/ddns_update.py
Normal file
15
src/ddns_update.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from time import sleep
|
||||
import logging
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
log = logging.getLogger("ddns updater")
|
||||
|
||||
if __name__ == "__main__":
|
||||
log.info("starting...")
|
||||
sequence = 1
|
||||
while True:
|
||||
log.debug(f"update sequence {sequence}")
|
||||
sequence += 1
|
||||
sleep(5)
|
Loading…
Add table
Add a link
Reference in a new issue