A termeal version with led strip on raspberry pi
Go to file
2021-05-01 20:03:51 +02:00
www Early working version 2021-04-26 02:34:15 +02:00
autorun.conf Early working version 2021-04-26 02:34:15 +02:00
autorun.sh Early working version 2021-04-26 02:34:15 +02:00
buttons.py new modes : rainbow & remote computer 2021-04-30 02:11:12 +02:00
cls.py Early working version 2021-04-26 02:34:15 +02:00
cls.sh Early working version 2021-04-26 02:34:15 +02:00
down.sh Early working version 2021-04-26 02:34:15 +02:00
leds.py new modes : rainbow & remote computer 2021-04-30 02:11:12 +02:00
log.py in progress 2021-04-21 13:45:47 +02:00
nerves.py fixs scapy filters & debug 2021-05-01 20:03:51 +02:00
README.md fixs scapy filters & debug 2021-05-01 20:03:51 +02:00
termspy.py fixs scapy filters & debug 2021-05-01 20:03:51 +02:00
websocket_server.py Early working version 2021-04-26 02:34:15 +02:00
ws.py fixs scapy filters & debug 2021-05-01 20:03:51 +02:00

Nerves

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

Termeal : color depends on port number of sniffed packet.

A change mode function is included but only scapy mode work yet.

Neopixel strip (3 wires : 5V,GND,IN) :

  • 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

Default port websocket server : 8081

Control

2 physical buttons and Webpage. Choose your webserver, edit config.js (to your pi webadress) and copy www directory. Browse to pi address.

Modes

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

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

For automatic shutdown :

sudo nano /etc/sudoers

add :

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

Autorun

To autorun nerves at boot time :

A supervisor conf is given.

cd nerves

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

Based on :