Code Monkey home page Code Monkey logo

extend-noip's Introduction

extend-noip

Code style: blackLicense: MITPyPI version

Extend dns expiry date on noip.com

Automate extending dns/domain expiry date on noip.com

中文读我.md

Installtion

pip install extend-noip

or clone https://github.com/ffreemt/extend-noip and install from the repo.

Usage

Supply noip username and password from the command line:

python -m extend-noip -u your_noip_username -p password

or use directly the extend-noip script:

extend-noip -u your_noip_username -p password

Use environment variables NOIP_USERNAME and NOIP_PASSWORD

  • Set username/password from the command line:
    set NOIP_USERNAME=your_noip_username  # export in Linux or iOS
    set NOIP_PASSWORD=password
  • Or set username/password in .env, e.g.,
    # .env
    NOIP_USERNAME=your_noip_username
    NOIP_USERNAME=password
    

Run extend-noip or python -m extend_noip:

extend-noip

or

python -m extend_noip

Check information only

extend-noip -i

or

python -m extend_noip -i

Print debug info

extend-noip -d

or

python -m extend_noip -d

Brief Help

extend-noip --helpshort

or

python -m extend_noip --helpshort

Turn off Headless Mode (Show the browser in action)

You can configure NOIP_HEADFUL, NOIP_DEBUG and NOIP_PROXY in the .env file in the working directory or any of its parent directoreis. For example,

# .env
NOIP_HEADFUL=1
NOIP_DEBUG=true
# NOIP_PROXY

Automation via Github Actions

It's straightforward to setup extend-noip to run via Github Actions, best with an infrequent crontab.

  • Fork this repo
  • Setup Actions secrets via Settings/Add repository secrets:
Name Value
NOIP_USERNAME: your_noip_username
NOIP_PASSWORD: your_noip_password

For example, in .github/workflows/schedule-extend-noip.yml

name: schedule-extend-noip

on:
  push:
  schedule:
    - cron: '10,40 3 */9 * *'
...
setup, e.g. pip install -r requirements.txt or
poetry install --no-dev
...

      - name: Testrun
        env:
          NOIP_USERNAME: ${{ secrets.NOIP_USERNAME }}
          NOIP_PASSWORD: ${{ secrets.NOIP_PASSWORD }}
        run: |
          python -m extend_noip -d -i

extend-noip's People

Contributors

ffreemt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.