SEQMIN1 Explanation

Discussion of the Meteohub software package

Moderator: Mattk

cgn
Expert Boarder
Expert Boarder
Posts: 91
Joined: Fri Jan 15, 2010 10:54 pm
Location: cgn

Re: SEQMIN1 Explanation

Post by cgn »

Hi,

I found a way to login via putty:
echo $METEOHUBHW returns "plug", so it's correct. All-sensors.txt reports "sheevaplug" in actual_system_platform_text.

Can I type then "date >> /tmp/histeval0.log" ?
How can I check the output?
And how can I revert the change to the script?
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: SEQMIN1 Explanation

Post by YJB »

This is the current version of the histeval0 script:

Code: Select all

#!/bin/sh
if [ "$METEOHUBHW" == "NSLU2" ]
then
  mod=$(((`date +"%s"` / 60) % 3))
  if [ $mod -gt 0 ]
  then
    exit 0
  fi
fi
/home/meteohub/wmr928eval -c min1 -t -3720 -w /data/weather/ -s /home/meteohub/w
mr928eval.conf -S
~
Modify it in the following manner:

Code: Select all

#!/bin/sh
if [ "$METEOHUBHW" == "NSLU2" ]
then
  mod=$(((`date +"%s"` / 60) % 3))
  if [ $mod -gt 0 ]
  then
    exit 0
  fi
fi
date >> /tmp/histeval0.log
/home/meteohub/wmr928eval -c min1 -t -3720 -w /data/weather/ -s /home/meteohub/w
mr928eval.conf -S
And after a couple of minutes check the output:

Code: Select all

cat /tmp/histeval0.log
Once you're finished testing you can simply remove the following line from the histeval0 script:

Code: Select all

date >> /tmp/histeval0.log
cgn
Expert Boarder
Expert Boarder
Posts: 91
Joined: Fri Jan 15, 2010 10:54 pm
Location: cgn

Re: SEQMIN1 Explanation

Post by cgn »

Sorry that I ask you again: How can I modify the script?
I have no idea what I have to type.
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: SEQMIN1 Explanation

Post by YJB »

As you can see in the previous post it's a matter of adding one line into the original script (and remove it later on).

Look for the difference between the 2 scripts:

Code: Select all

date >> /tmp/histeval0.log
I'm normally using vi to change stuff in *NIX, but then I'm a kinda old school guy. There are other ways as using ultraedit or whatsoever.

On the other hand, if you are not comfortable changing stuff in Linux I would recommend to stay away from it, and get somebody involved who knows Linux, and who can logon to your system and do the change for you. Otherwise you might break your system
Post Reply