Git Product home page Git Product logo

nerves's Introduction

MOVED to https://git.interhacker.space/sammm/nerves.git

Nerves

A termeal version with neopixel led strip on raspberry pi (Raspberry Pi 1 is fine).

Color depends on port number of sniffed packets.

Available modes :

  • 'scapy' : listen to local network interface
  • 'rainbow' : rainbow animation
  • 'remote' : use sudo termspy.py to listen on a remote computer and send to nerves for display

Default port websocket server : 8081

Hardware

Neopixel strip (3 wires : 5V,GND,IN). Raspberry pi connections :

  • Neopixel GPIO D18 #(-> pin 12)
  • GND pin 9
  • 5 V pin 4

Physical buttons :

  • Func button : GPIO 23 (-> pin 16) / GND (-> pin 14)
  • Down button : GPIO 24 (-> pin 18) / GND (-> pin 20)

Control

2 physical buttons and a webpage : browse to pi address.

Webserver is NOT included : choose your webserver, edit config.js (to your pi webadress) and copy www directory.

Install

sudo apt install python3-pip

sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel

sudo python3 -m pip install --force-reinstall adafruit-blinka

sudo pip3 install scapy

To allow automatic shutdown :

sudo nano /etc/sudoers

add :

pi raspberrypi =NOPASSWD: /usr/bin/systemctl poweroff

Autorun

To autorun nerves at boot time, i.e a supervisor conf is given. After sudo apt install supervisor

sudo cp /home/pi/nerves/autorun.conf /etc/supervisor/conf.d/

sudo supervisorctl reload

Based on :

nerves's People

Contributors

tmpbci avatar

Watchers

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