mirror of
https://codeberg.org/shm0rt/ddns-pdns-updater.git
synced 2025-07-30 13:58:06 +02:00
added python
This commit is contained in:
parent
768bcb7817
commit
39508da73b
3 changed files with 67 additions and 0 deletions
15
main.py
Executable file
15
main.py
Executable file
|
@ -0,0 +1,15 @@
|
|||
import Connector as connector
|
||||
import Logger as logger
|
||||
|
||||
|
||||
def main():
|
||||
ExternalConnector=connector.Infomaniak("infomaniak.com/nic/update", "grug.cloud", "ddns-updater", "gTgN8gz5i40uBFunvP8M",syslog_option=True)
|
||||
log = logger.Logger(syslog=True)
|
||||
log.info("script gestartet")
|
||||
log.warn("warnung")
|
||||
log.error("error")
|
||||
log._debug("thing worked")
|
||||
#good, IP invalid, nochg,
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue