meteohub and blitzortung

Moderator: Mattk

Post Reply
User avatar
meteo-quimper
Junior Boarder
Junior Boarder
Posts: 20
Joined: Thu Jun 07, 2012 1:13 pm
Location: Quimper - FRance
Contact:

meteohub and blitzortung

Post by meteo-quimper »

Hi all
I have meteohub running perfectly on the alix 3D2, i also have the blitzortung controler board (usb) connected to the Alix 3D2 board. i use the file to install the linux tracker (linux program to send data from the controleer board to the blitzortung server): http://wetterstation-littau.ch/download ... racker.pdf

Meteohub is working if i manualy start the tracker program with :

Code: Select all

/etc/init.d/tracker_S20 start
everything work well.

If i program an antomatic start (when the alix board start) with

Code: Select all

update-rc.d tracker_S20 defaults
the linux tracker work well, meteohub start but the automatic ftp upload of html files and graphs don't work on meteohub, if i use the "Start & test" button (setup push service -> ftp upload) the "meteohub-upload.test" file is well uploaded on the ftp server...

I try to delay the automatic start of the linux tracker (i added sleep 240 on the file tracker_S20), i have the same problem.

tracker_S20:

Code: Select all

#! /bin/sh

## Programmeinstellungen

sleep 240

PROGDIR="/blitzortung/"
PROGNAME="tracker_Linux"

LOGFILE="-ll /blitzortung/log"

GPSTYPE="SiRF"

DEVICE="/dev/ttyUSB0"


BO_USERNAME="Login"
BO_PASSWORD="Password"

#####################################################################################################

COMMAND="$PROGDIR$PROGNAME $LOGFILE -vl -vo -vi $GPSTYPE $DEVICE $BO_USERNAME $BO_PASSWORD 1"

#####################################################################################################


# Aktionen
case "$1" in
    start)
        $COMMAND
        ;;
    stop)
        killall $PROGNAME
        ;;
    restart)
        $0 stop
	 $0 start
        ;;
esac

exit 0
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: meteohub and blitzortung

Post by wfpost »

Seems that the program is running in the foregoround and because of the endless loop is blocking other processes.

Have you tried

1) add an ampersand & to start the program in the background
http://lowfatlinux.com/linux-processes.html

2) starting the program with cron instead of init.d
@reboot /bin/sleep 600 ; /path/to/your/your_program

This will suspend execution of the shell for 600 seconds, and then run /path/to/your/your_program. Depending on your SHELL used for cron commands, the command syntax might be different.
What´s the Swiss guy saying who created it?
Is it working with his meteohub or just does he not use the upload function?
User avatar
meteo-quimper
Junior Boarder
Junior Boarder
Posts: 20
Joined: Thu Jun 07, 2012 1:13 pm
Location: Quimper - FRance
Contact:

Re: meteohub and blitzortung

Post by meteo-quimper »

Hi

I found a solution to solve the problem: The linux tracker must be started with a lower priority thaan Meteohub:

Code: Select all

update-rc.d tracker_S20 defaults 99
Post Reply