pinigin

weather

May 25th, 2019
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. RPITX=$(cat rpitx_path)
  3. echo "Removing old files..."
  4. rm -f text.txt morse.wav
  5. echo "Getting current weather..."
  6. cd getweather
  7. node index.js
  8. cd ..
  9. echo "Creating wave audio file..."
  10. cd cwwav
  11. ./cwwav --output ../morse.wav --frequency=550 --rate=16000 --wpm=20 ../text.txt
  12. cd ..
  13. cat morse.wav | csdr convert_i16_f \
  14.         | csdr gain_ff 4.0 | csdr dsb_fc \
  15.         | sudo $RPITX/rpitx -i - -m IQFLOAT -f 433670 -s 48000
Advertisement
Add Comment
Please, Sign In to add comment