Tar1090 to hosted website

Hi all,

I’m running since 1,5 my site and i love it.

Is it possible to share my tar1090 to my own hosted website? (Wordpress)

Yes, but you will need to open a port on your router going through to the map. Then simply display the map in Wordpress as HTML frame.

I would not do it for security reasons.
Another option would be feeding to ADSBExchange where you can have a live map without exposing your network

2 Likes

There are other more convoluted ways if you have ftp access to a typical website host. If you don’t need all the history and other features. For instance on http://woodinvillewx.com/ the weather radar map was replaced to add aircraft + wx radar with dump1090 with NEXRAD radar enabled (USA map option).

You just need to upload some dump1090 files to the website server and then display the map on its own page or iframed on another page as you wish. Much of dump1090 files can be deleted/skipped.

That map updates aircraft position every 7 seconds via ftp of just aircraft.json.

put.sh

#!/bin/sh

put.sh
HOST='ip_address'
USER='username'
PASSWD='password'
LOCALPATH=/run/dump1090/
DIR='/public_html/dump1090/data'

nice -n 19 ftp -n $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
passive
cd $DIR
lcd $LOCALPATH
put aircraft.json
quit
exit;

fi

put.py

import time
import subprocess
import os
os.nice(19)

while True:
    rc = subprocess.call("/home/pi/mput.sh")
    time.sleep(7)

You can babysit the python process with Supervisor to make sure it always restarts, never fails over years. It’s a good secure and cheap option if you can upload files to a website host and don’t need the full map and stats frills.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.