Last active
July 27, 2021 06:05
-
-
Save robagar/c9398eb8bd953ee6ff5a9ec5afe9241b to your computer and use it in GitHub Desktop.
RMS Meteor Camera Video Tunnel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=RMS Meteor Camera Video Tunnel | |
After=network.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=true | |
ExecStart=/full/path/to/tunnel.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
socat tcp-listen:34567,reuseaddr,fork tcp:192.168.42.10:34567 & | |
socat tcp-listen:8899,reuseaddr,fork tcp:192.168.42.10:8899 & | |
socat tcp-listen:554,reuseaddr,fork tcp:192.168.42.10:554 & | |
socat UDP4-RECVFROM:554,reuseaddr,fork UDP4-SENDTO:192.168.42.10:554 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use
tunnel.sh
to anywhere you like on the Raspberry PiAs root:
tunnel.service
to/etc/systemd/system
ExecStart
line to match where you copiedtunnel.sh
on your systemThen to watch the live video open VLC on your PC/Mac/whatever (on the same network)
File -> Open Network with an url like this, replacing
{raspbery pi address}
with the actual address of the Raspberry Pi