Code Monkey home page Code Monkey logo

rpi3-wifi-conf's Introduction

rpi3-wifi-conf

A simple Python script to configure wifi over bluetooth for a Raspberry Pi 3

Use this Android application to send wifi config details to the Pi.

Setup

  1. Install bluez (Python bluetooth library):

     sudo apt-get install python-bluez
    
  2. Start the bluetooth daemon in compatibility mode, edit /etc/systemd/system/dbus-org.bluez.service, and modify the ExecStart param:

     ExecStart=/usr/lib/bluetooth/bluetoothd -C
    
  3. Load serial port profile:

     sudo sdptool add SP
    
  4. Restart your Pi:

     sudo reboot
    
  5. Pair your phone with your Raspberry Pi. Turn your phone's bluetooth on. On your Pi:

     bluetoothctl
     power on
     discoverable on
     scan on
    

Your phone will appear in the list of available deivces. Take note of the address of your phone.

    trust <PHONE_ADDRESS>
    pair <PHONE_ADDRESS>

Accept the pin, and exit bluetooth ctl:

    quit

Running the script

Make script executable:

chmod +x run.py

To run:

sudo ./run.py

To run on startup, edit /etc/rc.local and add:

(sleep 10;/path/to/script/./run.py)&

rpi3-wifi-conf's People

Contributors

brendan-myers avatar

Watchers

 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.