Raspberry Pi ISS Live Stream
From ProjectPages
Inspired by https://github.com/andrewkarch/ISSPictureFrame
I used a Waveshare 3.5" LCD https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)
/boot/config.txt
Uncomment disable_overscan=1
# uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan disable_overscan=1
setup-iss-ustream.sh
#!/bin/bash sudo apt-get update && sudo apt-get upgrade sudo apt-get install rtmpdump python-pip cmake git omxplayer sudo pip install livestreamer # to get best resolution sudo apt-get install python-dev sudo apt-get install libffi-dev sudo apt-get install librtmp-dev sudo pip install cffi sudo pip install python-librtmp pip install futures
sudo chmod +x setup-iss-ustream.sh ./setup-iss-ustream.sh
iss-streamer.sh
#!/bin/bash livestreamer http://ustream.tv/channel/live-iss-stream mobile_480p --player omxplayer --fifo --player-args "--win \"0 0 480 320\" {filename}"
sudo chmod +x iss-streamer.sh ./iss-streamer.sh
/etc/systemd/system/tn-fbcp.service
[Unit] Description=FBCP Service [Service] ExecStart=fbcp StandardOutput=null [Install] WantedBy=multi-user.target Alias=tn-fbcp.service
/etc/systemd/system/tn-iss.service
[Unit] Description=ISS Streamer Service Wants=tn-fbcp.service After=tn-fbcp.service [Service] ExecStart=/home/pi/iss-streamer.sh User=pi Group=pi #StandardOutput=null Restart=always [Install] WantedBy=multi-user.target Alias=tn-iss.service