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

4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # Raspberry PI operating system
  2. I'm using [Raspbian](https://www.raspberrypi.org/downloads/raspbian/) as it have full support for Raspberry PI, simple package manager and it's pretty stable
  3. # Automatic install
  4. 1. Clone this repository on your home directory
  5. 2. Run `./install.sh`. You will be asked for your ground station lat/lon position.
  6. The install setup is described down here:
  7. # Manual install
  8. ## Required packages and software
  9. ```
  10. sudo apt update -yq
  11. sudo apt install -yq predict \
  12. python-setuptools \
  13. ntp \
  14. cmake \
  15. libusb-1.0 \
  16. sox \
  17. at \
  18. bc \
  19. nginx \
  20. libncurses5-dev \
  21. libncursesw5-dev \
  22. libatlas-base-dev \
  23. python3-pip \
  24. imagemagick \
  25. libxft-dev \
  26. libxft2
  27. ```
  28. ```
  29. sudo pip3 install numpy ephem tweepy Pillow
  30. ```
  31. ### Install rtl_sdr
  32. ```
  33. sudo cp modprobe.d/rtlsdr.conf /etc/modprobe.d/rtlsdr.conf
  34. ```
  35. - clone rlt-sdr git repo and install rtl-sdr:
  36. ```
  37. cd /tmp/
  38. git clone https://github.com/osmocom/rtl-sdr.git
  39. cd rtl-sdr/
  40. mkdir build
  41. cd build
  42. cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
  43. make
  44. sudo make install
  45. sudo ldconfig
  46. cd /tmp/
  47. sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
  48. ```
  49. ### Install WXToIMG
  50. There's a deb package for it
  51. ```
  52. sudo dpkg -i wxtoimg-armhf-2.11.2-beta.deb
  53. ```
  54. ## Raspberry-noaa configuration
  55. ### Clone this repo
  56. ```
  57. cd $HOME
  58. git clone https://github.com/reynico/raspberry-noaa.git
  59. cd raspberry-noaa
  60. ```
  61. ### Install the default configuration files
  62. - noaa.conf: paths, satellite elevation and loggin
  63. ```
  64. cp "noaa.conf" "$HOME/.noaa.conf"
  65. ```
  66. - predict.qth: Predict's ground station settings
  67. ```
  68. cp "predict.qth" "$HOME/.predict/predict.qth"
  69. ```
  70. - wxtoimgrc: WxToIMG ground station settings and license
  71. ```
  72. cp "wxtoimgrc" "$HOME/.wxtoimgrc"
  73. ```
  74. Don't forget to adjust your settings in those files
  75. ### Install Meteor software
  76. - meteor_demod
  77. ```
  78. git clone https://github.com/dbdexter-dev/meteor_demod.git
  79. cd meteor_demod
  80. make
  81. sudo make install
  82. cd ..
  83. ```
  84. - medet_arm
  85. ```
  86. sudo cp medet_arm /usr/bin/medet_arm
  87. sudo chmod +x /usr/bin/medet_arm
  88. ```
  89. ### Setup Nginx
  90. ```
  91. sudo cp nginx.cfg /etc/nginx/sites-enabled/default
  92. sudo mkdir -p /var/www/wx
  93. sudo chown -R www-data:www-data /var/www/wx
  94. sudo usermod -a -G www-data pi
  95. sudo chmod 775 /var/www/wx
  96. cp index.html /var/www/wx/index.html
  97. sudo systemctl restart nginx
  98. ```
  99. ### Setup RamFS
  100. ```
  101. sudo mkdir -p /var/ramfs
  102. cat fstab | sudo tee -a /etc/fstab > /dev/null
  103. sudo mount -a
  104. sudo chmod 777 /var/ramfs
  105. ```
  106. ### Cron the scheduling job
  107. ```
  108. cat <(crontab -l) <(echo "1 0 * * * /home/pi/raspberry-noaa/schedule.sh") | crontab -
  109. ```
  110. ### Set your Twitter credentials
  111. - Go to [Twitter Developer site](http://developer.twitter.com/) and apply for a developer account.
  112. - Set your credentials on `post.py`
  113. ```
  114. CONSUMER_KEY = ''
  115. CONSUMER_SECRET = ''
  116. ACCESS_TOKEN_KEY = ''
  117. ACCESS_TOKEN_SECRET = ''
  118. ```