You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ![Raspberry NOAA](header_1600.png)
  2. - [Raspberry PI operating system](#raspberry-pi-operating-system)
  3. - [Automatic install](#automatic-install)
  4. - [Manual install](#manual-install)
  5. - [Required packages and software](#required-packages-and-software)
  6. - [Install rtl_sdr](#install-rtl_sdr)
  7. - [Install WXToIMG](#install-wxtoimg)
  8. - [Raspberry-noaa configuration](#raspberry-noaa-configuration)
  9. - [Clone this repo](#clone-this-repo)
  10. - [Install the default configuration files](#install-the-default-configuration-files)
  11. - [Install Meteor software](#install-meteor-software)
  12. - [Setup Nginx](#setup-nginx)
  13. - [Setup RamFS](#setup-ramfs)
  14. - [Cron the scheduling job](#cron-the-scheduling-job)
  15. - [Set your Twitter credentials](#set-your-twitter-credentials)
  16. # Raspberry PI operating system
  17. 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
  18. # Automatic install
  19. 1. Clone this repository on your home directory
  20. ```
  21. cd $HOME
  22. git clone https://github.com/reynico/raspberry-noaa.git
  23. cd raspberry-noaa
  24. ```
  25. 2. Run `./install.sh`. You will be asked for your ground station lat/lon position.
  26. 3. If you want automatic Twitter posting, see: [Set your Twitter credentials](#set-your-twitter-credentials)
  27. This is pretty much the entire setup. If you are interested about the behind of scenes please check the following section
  28. ---
  29. # Manual install
  30. ## Required packages and software
  31. ```
  32. sudo apt update -yq
  33. sudo apt install -yq predict \
  34. python-setuptools \
  35. ntp \
  36. cmake \
  37. libusb-1.0 \
  38. sox \
  39. at \
  40. bc \
  41. nginx \
  42. libncurses5-dev \
  43. libncursesw5-dev \
  44. libatlas-base-dev \
  45. python3-pip \
  46. imagemagick \
  47. libxft-dev \
  48. libxft2
  49. ```
  50. ```
  51. sudo pip3 install numpy ephem tweepy Pillow
  52. ```
  53. ### Install rtl_sdr
  54. ```
  55. sudo cp templates/modprobe.d/rtlsdr.conf /etc/modprobe.d/rtlsdr.conf
  56. ```
  57. - clone rlt-sdr git repo and install rtl-sdr:
  58. ```
  59. cd /tmp/
  60. git clone https://github.com/osmocom/rtl-sdr.git
  61. cd rtl-sdr/
  62. mkdir build
  63. cd build
  64. cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
  65. make
  66. sudo make install
  67. sudo ldconfig
  68. cd /tmp/
  69. sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
  70. ```
  71. ### Install WXToIMG
  72. There's a deb package for it
  73. ```
  74. sudo dpkg -i software/wxtoimg-armhf-2.11.2-beta.deb
  75. ```
  76. ## Raspberry-noaa configuration
  77. ### Clone this repo
  78. ```
  79. cd $HOME
  80. git clone https://github.com/reynico/raspberry-noaa.git
  81. cd raspberry-noaa
  82. ```
  83. ### Install the default configuration files
  84. - noaa.conf: paths, satellite elevation and loggin
  85. ```
  86. cp "templates/noaa.conf" "$HOME/.noaa.conf"
  87. ```
  88. - predict.qth: Predict's ground station settings
  89. ```
  90. cp "templates/predict.qth" "$HOME/.predict/predict.qth"
  91. ```
  92. - wxtoimgrc: WxToIMG ground station settings and license
  93. ```
  94. cp "templates/wxtoimgrc" "$HOME/.wxtoimgrc"
  95. ```
  96. Don't forget to adjust your settings in those files
  97. ### Install Meteor software
  98. - meteor_demod
  99. ```
  100. git clone https://github.com/dbdexter-dev/meteor_demod.git
  101. cd meteor_demod
  102. make
  103. sudo make install
  104. cd ..
  105. ```
  106. - medet_arm
  107. ```
  108. sudo cp software/medet_arm /usr/bin/medet_arm
  109. sudo chmod +x /usr/bin/medet_arm
  110. ```
  111. ### Setup Nginx
  112. ```
  113. sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/default
  114. sudo mkdir -p /var/www/wx
  115. sudo chown -R www-data:www-data /var/www/wx
  116. sudo usermod -a -G www-data pi
  117. sudo chmod 775 /var/www/wx
  118. cp templates/index.html /var/www/wx/index.html
  119. cp templates/logo-small.png /var/www/wx/logo-small.png
  120. sudo systemctl restart nginx
  121. ```
  122. ### Setup RamFS
  123. ```
  124. sudo mkdir -p /var/ramfs
  125. cat templates/fstab | sudo tee -a /etc/fstab > /dev/null
  126. sudo mount -a
  127. sudo chmod 777 /var/ramfs
  128. ```
  129. ### Cron the scheduling job
  130. ```
  131. cat <(crontab -l) <(echo "1 0 * * * /home/pi/raspberry-noaa/schedule.sh") | crontab -
  132. ```
  133. ### Set your Twitter credentials
  134. - Go to [Twitter Developer site](http://developer.twitter.com/) and apply for a developer account.
  135. ```
  136. cp "templates/tweepy.conf" "$HOME/.tweepy.conf"
  137. ```
  138. - Set your credentials on `"$HOME/.tweepy.conf"`
  139. ```
  140. export CONSUMER_KEY = ''
  141. export CONSUMER_SECRET = ''
  142. export ACCESS_TOKEN_KEY = ''
  143. export ACCESS_TOKEN_SECRET = ''
  144. ```