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