AboveTustin
AboveTustin copied to clipboard
Not running on startup
Hello,
I'm trying to figure out why the script is not running at startup and i can't. I've looked into rc.local and the line for the tracker is there:
/home/pi/adsb-receiver/build/abovetustin/AboveTustin/run_tracker.sh &
Still not starting automatically. Any clues on how to make it run on startup? Thanks!
I'm not exactly sure how the adsb-receiver project installs the project, but if you open run_tracker.sh in a text editor you can edit the first two lines:
cd /home/pi/AboveTustin
source py3/bin/activate
The first line it looks like you need to change to cd /home/pi/adsb-receiver/build/abovetustin/AboveTustin
As for the second line, that is there to activate my python environment which has things like they Twitter package and PIL installed. You can try commenting it out. If that doesn't work you'll need to see how adsb-receiver installed them and activate whatever python environment is needed.
I guess it needs a lxterminal window because the only way i could get it to run was to add it to the /etc/xdg/lxsession/LXDE-pi/autostart
file as @lxterminal -e /home/pi/adsb-receiver/build/abovetustin/AboveTustin/run_tracker.sh
Now my only problem is that it's opening two firefox windows instead of one and thus, tweeting the same thing twice
Still working on a similar issue, i.e., how do I crontab reboot every day, and then restart the program. System reboots fine, and logs even show the run_tracker.sh called, but no love on the program starting up. Has something to do with starting an .sh file from crontab with terminal, but not smart enough to figure it out yet. Any thoughts?
** I used a Pi, with ADSB Receiver (and AboveTustin) installed, to create a twitter account that tweets every time a plane flies overhead (under 4K feet).
The account is here (https://twitter.com/above_carpenter), and for anybody interested in duplicating what I did, you can see step by step here: https://docs.google.com/document/d/1Ce2W1gocX7U-KHuiw7pEQQj5fjZ2ShqRsajj3dEmp-8/edit
@mattlabate
I had another instance(i probably added it while trying to figure it out and forgot about) under /etc/xdg/lxsession/LXDE/
As soon as i took it out, it stop opening it twice. Now it runs at start it with no issues.