Coder Social home page Coder Social logo

cblims / node-bluepifi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from killingjacky/node-bluepifi

0.0 0.0 0.0 26 KB

A NodeJS app to allow a rPi 3 or Pi Zero's + IoT pHat WiFi to be configured vai BLE

License: Apache License 2.0

JavaScript 96.91% Shell 3.09%

node-bluepifi's Introduction

BluePiFi Backend

This is a NodeJS app to configure WiFi on a Raspberry Pi 3 or a Pi Zero with SeeedStudio 2Mic Hat via Bluetooth Low Energy and a mobile app named BluePiFi.

How

First you need install the full node.js on RPi, the pre-installed node doesn't ship with npm.

Go to user pi's home

cd ~

Note: you need to clone the code into home because the systemd service file hard-coded the path.

sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo systemctl stop bluetooth
sudo systemctl disable bluetooth
git clone https://github.com/KillingJacky/node-bluepifi.git
cd node-bluepifi
npm install

This will install all the dependences of this program (into project directory).

Now you can test

sudo node index.js

Press the button on Mic Hat for at least 3 seconds, the RPi will go into configure mode. Now open the BluePiFi app...

After you've finished configuration, short press the button to stop BLE advertising and exit configure mode.

Startup at boot

sudo cp bluepifi_backend.service /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable bluepifi_backend
sudo systemctl start bluepifi_backend

node-bluepifi's People

Contributors

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