Automation and Fine Tuning Documentation

Topics: 1. General, 2. Documentation, 5. Support
Dec 24, 2014 at 7:55 AM
I have worked through the SBFspot V3.0 – Windows Quick Reference to the point of wanting to automate and fine tune the SBFspot and I have been trying to find the documentation that is refered to:
For automation and fine-tuning of SBFspot, I refer to the online documentation
(https://sbfspot.codeplex.com/documentation)

I followed the link and can't find anything that helps understand how to either fine tune or automate the SBFSpot.exe

Please can someone point me in the right direction
Thanks
John
Coordinator
Dec 25, 2014 at 10:08 AM
It's the "SBFspot install on a Raspberry Pi (English)" in the download section
Feb 22, 2015 at 3:19 PM
What I find missing in that guide is the crontab configuration for SBFspot.
If any is needed, this is not yet completely clear to me.
Coordinator
Feb 23, 2015 at 1:05 PM
You can find it on page 12: (replace smaspot with sbfspot and adjust some of the path names)
The part of the automatic upload. A small script is created, which will be executed by
cronjob, so smaspot is run every 5 minutes:
For update reasons this (and other scripts) are placed in a separate folder
cd /home/pi/
mkdir scripts
cd /home/pi/scripts
nano smaspot.sh
#!/bin/bash
cd /home/pi/smaspot/bin/Release
./SMAspot -v -u
After the script is written with nano, save and exit. Ctrl-O and Ctrl-X
This script needs to be executable:
sudo chmod 755 smaspot.sh
test the script:
./smaspot.sh
Start a cronjob:
crontab -e
Add this line:
*/5 6-23 * * * /home/pi/scripts/smaspot.sh > /dev/null
Press Ctrl-O, Enter (proposed filename is oké), Ctrl-X
You should see the message “crontab: installing new crontab”
This will make the above script to run every 5 minutes between 6.00 and 23.00 hours. If
you want it to run for 24hrs, just replace 6-23 with *
Feb 24, 2015 at 7:10 PM
I am looking at the documentation "SBFspot V3 Quick Reference Linux EN 1.0.pdf" downloaded from https://sbfspot.codeplex.com/downloads/get/901202
which details on page 12 "UploadDaemon & MySQL"
In the whole document I cannot find the word cronjob or crontab.

So maybe I overlooked something, or we are looking at different documents.

I must praise you for the documentation that is already there, it has the right balance between detail and briefness. It is easy to follow.
Coordinator
Feb 24, 2015 at 7:28 PM
I'm talking about the original doc (SMAspot 2.06)
"SBFspot install on a Raspberry Pi (English)"
You can find it here of hier
Feb 24, 2015 at 8:32 PM
Edited Feb 24, 2015 at 8:43 PM
This is what I have just written up based on my past configuration and with help from the original doc (SMAspot 2.06).
Hope this helps and that I have not made any mistakes please let me know if I have and how you get on

mkdir scripts
cd /home/pi/scripts

Now the script file need to be created

nano sbfspot.sh

Paste the following into the sbfspot.sh file as it is layed out

cd /usr/local/bin/sbfspot.3/
./SBFspot -v -finq -nocsv

After the script is written with nano, save and exit. Ctrl-O and Ctrl-X

Now the file need to be made executable

sudo chmod 755 sbfspot.sh

Test the script:
./sbfspot.sh

Start a cronjob:

crontab -e

add this line
*/5 6-23 * * * /home/pi/scripts/sbfspot.sh > /dev/null

Press Ctrl-O,
Press Enter (proposed filename is fine to use),
Press Ctrl-X
You should see the message “crontab: installing new crontab”

This will make the above script to run every 5 minutes between 6.00 and 23.00 hours. If
you want it to run for 24hrs, just replace 6-23 with *
Feb 26, 2015 at 6:47 AM
Above seems to be how I've done it in the past ;-)

I do have an updated SBFspot install doc (written in september 2014). Did I not send it to you SBF?
Feb 26, 2015 at 7:34 AM
No not that I remember I would welcome a copy

Sent from my iPhone