Skip to content

The API for the TWENTY3 HomeHub Frontend. Control WiFi repeater and connection in general.

Notifications You must be signed in to change notification settings

TWENTY3andCo/homehub_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The API for the TWENTY3 HomeHub Frontend. Control WiFi repeater and connection in general.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published