Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.59 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.59 KB

TWENTY3 HomeHub API

API made for the Debian Backend of HomeHub. Implements nmclip for Wifi Search and Config

License: CC BY-NC-ND 4.0 License: CC BY-NC-ND 4.0 Release Last Commit NPM Version

Instructions

Run npm instal to install dependencies and the npm start to run the api

List available wifi networks

Do a GET request at localhost:3000/api/networks/list

This returns an array like this:


[
    {ssid:"foo","in_use":"false","signal":87,security:"WPA1 WPA2"},
    {ssid:"foo2","in_use":"true","signal":56,security:"WPA1 WPA2"}
]

Connect to a specific wifi

You need to do a POST request to localhost:3000/api/networks/connect. In the body of the request you have to pass 2 values:

  • ssid (The ssid of the network)
  • password

The full documentation is available here

Made By