Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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