Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glynnbird/flasher
Raspberry Pi LED flashing utility
https://github.com/glynnbird/flasher
Last synced: 5 days ago
JSON representation
Raspberry Pi LED flashing utility
- Host: GitHub
- URL: https://github.com/glynnbird/flasher
- Owner: glynnbird
- Created: 2015-02-04T10:47:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T16:23:18.000Z (almost 10 years ago)
- Last Synced: 2024-10-12T22:13:10.143Z (about 1 month ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flasher
A simple Raspberry Pi LED flashing utility. Pipe text data into it and it will flash an LED
## Electronics
You'll need an LED and a resistor
Pin 11 (GPIO17/GEN0) ---> LED ---> 330 ohm Resistor ---> Pin 6 (GND)
## Usage
# flash once
echo "Flash" | sudo node flasher.js
# flash every time a line is added to /var/log/messages
tail -f /var/log/messages | sudo node flasher.js
# flash every time traffic arrives on port 80
sudo tcpdump -i eth0 'tcp port 80' | sudo node flasher.js## Optional parameters
* pin - the number of the GPIO pin to flash (default 11)
* ms - the number of milliseconds to flash for (default 50)
* usage - print the usage informatione.g.
tail -f /var/log/messages | sudo node flasher.js --pin 11 --ms 100