Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ![Raspberry NOAA](header_1600.png)
  2. # Reception
  3. First thing we need to test is reception. It's the way to be sure the antenna, reception line, reception hardware and software are working properly. There is a [test_reception.sh](test_reception.sh) script that makes testing easy, just tune a broadcast FM near you and listen to the audio, then make the proper adjustments to improve reception.
  4. Open a SSH connection to your Raspberry PI and execute `test_reception.sh <tune frequency>`.
  5. ```bash
  6. cd raspberry-noaa/
  7. ./test_reception.sh 90.3
  8. ```
  9. Now open a terminal on your Linux/Mac/(And maybe windows?) computer and run
  10. ```bash
  11. ncat your.raspberry.pi.ip 8073 | play -t mp3 -
  12. ```
  13. where `your.raspberry.pi.ip` is your Raspberry PI IP address. Now you should listen to the frequency tuned before
  14. # Schedule
  15. This project uses [crontab](https://crontab.guru/) to schedule the scheduler (funny huh?). Running
  16. ```bash
  17. crontab -l
  18. ```
  19. This will show the schedule entry for `schedule.sh`, the script that downloads the kepler elements from Internet and creates [at](https://linux.die.net/man/1/at) jobs for each pass.
  20. ```bash
  21. atq
  22. ```
  23. Will show the scheduled jobs for today, each job can be described using `at -c <job_id>`.
  24. # Images
  25. Images are saved in the web server's directory, so you can access your received images at http://your.raspberry.pi.ip/, where `your.raspberry.pi.ip` is your Raspberry PI IP address.
  26. # Pruning
  27. Run `prune.sh` to delete old images. By default it deletes the 10 oldest images from the disk and the database. If you want to schedule this task, run
  28. ```bash
  29. cat <(crontab -l) <(echo "1 0 * * * /home/pi/raspberry-noaa/prune.sh") | crontab -
  30. ```