tl8
Posts: 4
Joined: Mon Aug 12, 2013 2:10 am

Website Forwarding

Mon Aug 12, 2013 2:23 am

I have a system running on my raspberry pi which displays the information via midori on the local screen.

What I would like to do is forward that information (Either by image, text or otherwise) to a 3rd party website (Our site, but not on the same network or server). This is so we can show clients the information without opening up our network.

While the information is constantly being updated, forwarding every 2-5 seconds is ok. It would be good if I could run it over SSH or from the terminal without X running (I don't have a mouse and it does need to be automatic).

I have tried imagemagick and scrot but they are having issues taking a screenshot of the display. imagemagick is just giving me a blank screen while scrot can't detect X running.

While it would be good to salvage the screenshot option, is there any other method that I should consider?

This is the script I have been using:

Code: Select all

#!/bin/bash
HOST=''
USER=''
PASSWD=''
while true
do
# import -display :0.0 -window root screen.png
 scrot screen.png
 ftp -n -v $HOST << EOT
 binary
 user $USER $PASSWD
 prompt
 put screen.png
 bye
EOT
 sleep 3
done

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Website Forwarding

Tue Aug 13, 2013 9:29 pm

If you must use FTP, install ncftp and use ncftpput
Personally I'd use scp, rsync, or just about anything other than FTP though...
If the information is displayed in Midory though, why not create an SSH tunnel and use a browser?

tl8
Posts: 4
Joined: Mon Aug 12, 2013 2:10 am

Re: Website Forwarding

Tue Aug 13, 2013 10:00 pm

I am only using FTP to put something on the external website. It doesn't matter what I use to do that, as long as it is supported by the external website.

An SSH tunnel is not possible because port 22 at the router goes to another server.

I think I have found something that will work. python-Webkit-to-png.

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Website Forwarding

Wed Aug 14, 2013 12:52 am

tl8 wrote:An SSH tunnel is not possible because port 22 at the router goes to another server.
SSH doesn't have to use port 22 (in fact changing the port to something random-ish is a good way of avoiding scanners).

Return to “Networking and servers”