AutoLRPT is a small Bash script that allows you to receive LRPT images from Meteor M2-3 and Meteor M2-4 automatically by using mlrpt. The script only runs on Linux and can e. g. be used on a Raspberry Pi.
mlrptpredict
You can follow the following instructions in case you are using a Raspberry Pi with Raspberry Pi OS. For other distros the setup should work similar but the names of the required packages might differ.
On the mentioned OS you first have to install a bunch of packages that are needed by mlrpt:
sudo apt install cmake make automake autoconf libtool rtl-sdr librtlsdr-devThe repository of AutoLRPT contains a modified version of mlrpt. It adds an option in the config files to set the pattern of the file name, so that AutoLRPT-Slideshow can handle the image files better.
- Move
mlrpt.tar.gzto the home foldermv mlrpt.tar.gz .. cd - Unzip the package:
tar -xzf mlrpt.tar.gz
- Now enter the folder of mlrpt and execute the following commands after another:
cd mlrpt ./autogen.sh ./configure make sudo make install
Unfortunately, mlrpt sometimes replaces the config file with one from /usr/share/examples/mlrpt/config. To avoid that you can delete the config files in /usr/share/mlrpt/examples/config and copy the config file ~/mlrpt/default.cfg to /usr/share/mlrpt/examples/config:
sudo rm -r /usr/local/share/examples/mlrpt
sudo scp /home/user/mlrpt/default.cfg /usr/local/share/examples/mlrpt/configFor most distributions, predict is available in the official repositories. In case you can not find it there, you can also download it from here
On Raspberry Pi OS and other Debian/Ubuntu-based distros you can install it with the following command:
sudo apt install predictIf you can't install predict from the repositories you can also download it from here
wget https://www.qsl.net/kd2bd/predict-2.3.1.tar.gzUnpack the tar.gz file
cd
tar -xzf predict-2.3.1.tar.gz
cd predict-2.3.1Run the script configure
./configureThe script first checks for the existence of some libraries. If you haven't installed them already you can do so
sudo apt-get install libncurses5-dev libncursesw5-dev libasound2-devClone AutoLRPT into your home directory:
cd
git clone https://github.com/BaumGuard/AutoLRPTEnter the folder of AutoLRPT:
cd AutoLRPTMake the scripts executable:
chmod +x AutoLRPT_M2-3 AutoLRPT_M2-4 set_location tle_updateExecute the script set_location and enter your name/callsign, latitude, longitude and altitude:
./set_locationThe so called TLE data is needed to calculate the position of a satellite at a given time and therefore also the pass times.
The script tle_update downloads the current TLE data for Meteor-M2 3 and Meteor-M2 4 from CelesTrak and writes it to the file ~/.predict/predict.tle.
You can choose whether the TLE should be updated automatically in regular intervals of 24 hours or if you want to update the TLE data manually. To update the TLE data in regular intervals, open the script and set the variable autoupd to 1.
Then execute the script:
./tle_updateStart AutoLRPT from inside its directory:
Meteor M2-3
./AutoLRPT_M2-3 &Meteor M2-4
./AutoLRPT_M2-4 &The & will execute the script in the background.
Now mlrpt should start automatically when Meteor M2 3 or Meteor M2-4 passes over. You don't need to start AutoLRPT again manually after the pass, since AutoLRPT will automatically schedule the next pass.
Be sure to exit the console on which you have started AutoLRPT by running
exitOtherwise AutoLRPT will be stopped!
If you want to stop AutoLRPT
Meteor M2-3
killall AutoLRPT_M2-3Meteor M2-4
killall AutoLRPT_M2-4If you want to start AutoLRPT automatically after booting the Raspberry Pi, you can add a cronjob for both AutoLRPT scripts
Open the file /etc/crontab with your favorite text editor (in my case vim)
sudo vim /etc/crontabAppend these two lines on the bottom of the file
@reboot <username> <path-to-autolrpt>/AutoLRPT/AutoLRPT_M2-3
@reboot <username> <path-to-autolrpt>/AutoLRPT/AutoLRPT_M2-4
Using the command [sudo] crontab -e won't work!
Replace <username> with your user name and <path-to-autolrpt> with the path to the directory of AutoLRPT. This should be an absolute path!
Now both AutoLRPT scripts should start automatically after every boot.
You can change the following settings in M2-3.conf and M2-4.conf according to your needs:
-
Minimum elevation
Only record passes that have at least the given elevation.
- Variable:
min_elev - Possible values:
0 - 90
- Variable:
-
Recording in the evening (Meteor M2-3)
Due to a worse solar illumination by the sun, the images recorded in the evenings are usually rather dark and don't show that many details. You can choose whether you want
AutoLRPTto record passes in the evenings or not- Variable:
evening_rec - Possible values:
0: Evening recording disabled1: Evening recording enabled
- Variable:
-
Recording in the night (Meteor M2-4)
Due to a worse solar illumination by the sun, the images recorded in the night usually are rather dark and don't show that many details. You can choose whether you want AutoLRPT to record passes in the evenings or not
-
Variable:
night_rec -
Possible values:
0: Evening recording disabled1: Evening recording enabled
-
Autoflip
Because Meteor M2 3 and all the other LEO satellites will pass over from South to North in the evenings, the images will be upside down by default, but
mlrptcan flip them. You can choose whether you wantmlrptto flip the images of evening passes automatically- Variable:
autoflip - Possible values:
0: Autoflip disabled1: Autoflip enabled
- Variable:
-
Logging
AutoLRPTcan log information about the passes and the recording status in the fileAutoLRPT.logThe logs will have the following format:
PassDate PassTime SatelliteName MaxElevation Azimuth StatusPlease note that the date and time are in UTC
The
Statusgives some information about the success of the reception:IMAGE_RECORDED: If an image was received and saved (successful execution ofmlrpt)NO_IMAGE_RECORDED: If no image was received (successful execution ofmlrpt)NO_RECORDING: If the user disabled the recording under certain circumstances (min_elev,evening_rec) - No execution ofmlrptNO_SDR_CONNECTED: Ifmlrptstops because no SDR was connected (unsuccessful execution ofmlrpt)ERROR: Any other errors
You can choose whether you want
AutoLRPTto log the passes or not:- Variable:
logging - Possible values:
0: Logging disabled1: Logging enabled