Giter Site home page Giter Site logo

netpirate's Introduction

netpirate


Open Source Love svg2 License: MIT

Send Internet (IP) over pirate radio using morse code over a FM radio using a raspberry pi

________________________


Summary

the bellow docs are not for reference just a my notes while im creating the project.

I will add a the install guide later. sorry!

Installation

easy mode

balena deploy button

hard mode

cd ~
git clone https://github.com/wisehackermonkey/netpirate.git
cd netpirate

balena login
balena push pirateship

balena ssh pirateship pirateradio

/bin/sh ./pi_fm_adv --ps RASP-PI
--wait specifies whether PiFmAdv should wait for the the audio pipe or terminate as soon as there is no audio. It's set to 1 by default.

hack to get text from api to file as characters, to morse code to wave audio file

echo "audio.wav" | entr -c ./pi_fm_adv --ps RASP-PI --wait 1 --audio ./audio.wav
echo "audio.wav" | entr -c cwwav -f 700 -w 20 -o hello_world.wav
echo "sos sos" > morse_data.txt
find . -name "morse_data.txt" | entr -r cwwav -f 700 -w 20 -o hello_world.wav morse_data.txt

find . -name "morse_data.txt" | entr -r echo "file changed"
echo "morse_data.txt" | entr -r echo "file changed"
echo "morse_data.txt" | entr -r cwwav -f 700 -w 20 -o hello_world.wav && echo "file changed"
echo "morse_data.txt" | entr -r | cwwav -f 700 -w 20 -o hello_world.wav && echo "file changed"
echo "morse_data.txt" | entr -r -s "cwwav -f 700 -w 20 -o hello_world.wav ./morse_data.txt"

echo "" > /usr/src/app/PiFmAdv/src/public/morse_data.txt && echo "morse_data.txt" | entr -r -s "cwwav -f 700 -w 20 -o hello_world.wav ./morse_data.txt"

./pi_fm_adv --freq 90.7 --ps RASP-PI --wait 1 --audio ./hello_world.wav 
echo "oran was here" > /usr/src/app/public/morse_data.txt
echo "oran was not here" > /usr/src/app/public/morse_data.txt

/bin/sh -c " entr -r cwwav -f 400 -w 20 -o /usr/src/app/hello_world.wav /usr/src/app/PiFmAdv/src/public/morse_data.txt &&   ./pi_fm_adv --freq 90.7  --audio /usr/src/app/hello_world.wav"
/bin/sh -c " echo morse_data.txt | entr -r echo 'file changed'"
/bin/sh -c " find . -name 'morse_data.txt' |  entr -r echo 'file changed'"
/bin/sh -c " find . -name 'morse_data.txt' |  entr -r cwwav -f 400 -w 20 -o /usr/src/app/hello_world.wav /usr/src/app/PiFmAdv/src/public/morse_data.txt &&    /usr/src/app/PiFmAdv/src/pi_fm_adv --freq 90.7  --audio /usr/src/app/hello_world.wav"
/bin/sh -c "  /usr/src/app/PiFmAdv/src/pi_fm_adv --freq 90.7  --audio /usr/src/app/hello_world.wav"
/bin/sh -c " find . -name 'morse_data.txt' |  entr -r cwwav -f 400 -w 20 -o /usr/src/app/PiFmAdv/src/public/hello_world.wav /usr/src/app/PiFmAdv/src/public/morse_data.txt"

/bin/sh -c " find . -name 'morse_data.txt' |  entr -r cwwav -f 400 -w 20 -o /usr/src/app/PiFmAdv/src/public/hello_world.wav /usr/src/app/PiFmAdv/src/public/morse_data.txt &   /usr/src/app/PiFmAdv/src/pi_fm_adv --freq 90.7  --audio /usr/src/app/PiFmAdv/src/public/hello_world.wav"

testing mp3 file pipe support

sudo apt-get install libmp3lame-dev
make clean 
make LAME=1

didnt work. sad face emoji

adding env for setting radio station frequency

balena envs --fleet pirateship

nevermind i just added it to the docker compose file


Screenshots


Development

balena scan
balena push 1c7d38a.local
balena ssh 1c7d38a.local 
balena ssh 1c7d38a.local fm_radio
balena build 1c7d38a.local  --emulated
balena build --arch armv7hf --deviceType fincm3 --emulated


curl https://www.kozco.com/tech/piano2.wav > hello_world.wav

Intergrating with audio block

[parecord(1) — pulseaudio-utils — Debian jessie — Debian Manpages](https://manpages.debian.org/jessie/pulseaudio-utils/parecord.1)

Links


Contributors

Made with contributors-img.

License

MIT © wisehackermonkey

License: MIT

by oran collins
github.com/wisehackermonkey
[email protected]
2022/03/17

netpirate's People

Contributors

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