Socket
Book a DemoInstallSign in
Socket

wifiConfig

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wifiConfig

Flask app for an easy wifi configuration, iot oriented.

0.1.14
pipPyPI
Maintainers
1

Github contributors

License: MIT

Description

wifiConfig is a flask app, for an easy wifi configuration.

Tested environments

HardwareRpi zero W
Operating systemsLinux
Python versionsPython 3.x
DistrosRaspbian 10
LanguagesEnglish

Instalation

sudo pip3 install wifiConfig

Usage

  • Terminal
sudo wifiConfig start

You need to run it with permissions to modify the file /etc/wpa_supplicant/wpa_supplicant.conf

usage: wifiConfig [-h] [-w WLAN] [-i INET] [-ip IP] [-n NETMASK] [-s SSID]
                  [-p PASSWORD] [-c CHECK] [-ho HOST] [-po PORT]
                  {start}

Flask app for an easy wifi configuration, iot oriented.

positional arguments:
  {start}

optional arguments:
  -h, --help            show this help message and exit
  -w WLAN, --wlan WLAN  wi-fi interface that will be used to create hotspot
                        (default: wlan0)
  -i INET, --inet INET  forwarding interface (default: None)
  -ip IP, --ip IP       ip address of this machine in new network (default:
                        192.168.0.1)
  -n NETMASK, --netmask NETMASK
                        no idea what to put here as help, if don't know what
                        is it don't change this parameter (default:
                        255.255.255.0)
  -s SSID, --ssid SSID  name of new hotspot (default: MyAccessPoint)
  -p PASSWORD, --password PASSWORD
                        password that can be used to connect to created
                        hotspot (default: 1234567890)
  -c CHECK, --check CHECK
                        If True, it checks the internet con before launch the
                        app. If you have connection the app will not be
                        launched (default: True)
  -ho HOST, --host HOST
                        name of new hotspot (default: 0.0.0.0)
  -po PORT, --port PORT
                        password that can be used to connect to created
                        hotspot (default: 8080)
  • Python
import wifiConfig
access_point_config = {"wlan":'wlan0', "inet":None, "ip":'192.168.0.1', "netmask":'255.255.255.0', "ssid":'MyAccessPoint', "password":'1234567890'}
flask_app_config = {"host":"0.0.0.0", "port":"8080"}
myWifiConfig = wifiConfig.WifiConfApp(access_point_config, flask_app_config)
myWifiConf.start()

By default it will create a hotspot called "MyAccessPoint", with password "1234567890" and the flask app running at http://192.168.0:8080 You can change this with the parameters of the constructor.

Dependencies

Mentions

Developer

Roberto Lama Rodríguez - roberlama@gmail.com

Keywords

wifi

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.