Giter Club home page Giter Club logo

amplifi-host-generator's Introduction

Amplifi Hosts Generator

This web app lets you convert JSON data you get by inspecting Ubiquiti Amplifi router's Web UI to hosts file format. This was built so I could export hosts from my router's DHCP client table to pihole so IP's could resolve to readable hostnames.

How to use

With Chrome, go to http://amplifi.lan from your local network, login and go to System Info on top right corner. Right click and hit 'Inspect' to open the devtools, then go to the network tab. You should see an entry for info-async.php on the network connection list, click that and go to the response sub tab. Copy all of that json info.

Then run this tool using npm i && npm start, which should automatically open a window that goes to http://localhost:3000. You need node and npm installed in your system for this to work, but you probably already figured that out by now.

You can also access the pre built version available online at https://ksubedi.github.io/amplifi-host-generator/

Paste the JSON you copied into the input field and hit process to get the hosts file list. You can then paste this into /etc/hosts file on your pihole.

Other

This app might break if Ubiquiti changes the format of api down the line. Please open an issue on this repo if you notice that, I will try to update it with the new format.

This project uses React under the hood. You can run tests with npm run test.

amplifi-host-generator's People

Contributors

ksubedi avatar

Watchers

 avatar  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.