Search found 23 matches

by pinto
Wed Jun 13, 2012 11:08 pm
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

Code: Select all

echo data20 $(printf "%0.0f" $(echo "$volt*100"|bc))"\n"data21 $(printf "%0.0f" $(echo "$amp*100"|bc))"\n"data22 $(printf "%0.0f" $(echo "$watt*100"|bc))"\n"data23 $(printf "%0.0f" $(echo "$wattH*100"|bc));
that is, IF you have "bc" installed.
by pinto
Wed Jun 13, 2012 10:18 pm
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

GNU grep 2.6.3 So, different grep, sorry I have a working script here on debian squeeze, with multiplication included, but it seems I can't help you because the differences in our systems. Just in case someone wants to try: #! /bin/sh # while : do WhatWeRead=$(grep -m 1 V /dev/ttyUSB0) # Format read...
by pinto
Wed Jun 13, 2012 9:07 pm
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

did find another way using grep: -m 1 :stop after 1 match and we know there is allways a "V" in the string #! /bin/sh # while : do WhatWeRead=$(grep -m 1 V /dev/ttyUSB0) # Format reading volt=`echo $WhatWeRead | cut -c -7` amp=`echo $WhatWeRead | cut -c 10-16` watt=`echo $WhatWeRead | cut -c 19-25` ...
by pinto
Mon Jun 11, 2012 8:45 pm
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

Note: I tested the script using a file, are you sure cat is not hanging when you use it with /dev/ttyUSB0 from within the script ?
I have never done that.
you can see what shellscripts are doing when you use

Code: Select all

#! /bin/sh -x
and start it manually
by pinto
Sun Jun 10, 2012 9:10 am
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

This should do it if: When you do a cat /dev/ttyUSB0 the result is:00016.3V-00013.4A 00218.2W 00557.5WH #! /bin/sh # while : do # Read data from sensors WhatWeRead=`cat /dev/ttyUSB0` # Format reading volt=`echo $WhatWeRead | cut -c -7` amp=`echo $WhatWeRead | cut -c 10-16` watt=`echo $WhatWeRead | c...
by pinto
Sun Jun 10, 2012 12:26 am
Forum: other stations (RainWise, Peet Bros, energy monitors)
Topic: Serial Volt/Amp meter
Replies: 20
Views: 12500

Re: Serial Volt/Amp meter

The best I can really do so far is (from SSH): cat /dev/ttyUSB0 (or ttyUSB1) will output: 00016.3V-00013.4A 00218.2W 00557.5WH #! /bin/sh # while : do # Read data from sensors WhatWeRead=`cat /dev/ttyUSB0` # Format reading volt=`echo $WhatWeRead | cut -c -7` echo data20 $(printf "%0.1f" $(echo "$vo...
by pinto
Mon Apr 16, 2012 9:17 pm
Forum: Graph Definitions
Topic: cumulative raingraph with gnuplot
Replies: 4
Views: 5497

Re: cumulative raingraph with gnuplot

I have two questions: First how the crontab to do? (where he edited, how) Second as the graph created by upload via FTP to other graphs? :!: Are you sure you want to try this ? You can brake your system and nobody can fix it for you. Using cron is one of the basics in Linux, so I don't know it is a...
by pinto
Sun Feb 19, 2012 5:08 pm
Forum: Meteohub Application
Topic: rainfall graph
Replies: 2
Views: 1373

Re: rainfall graph

by pinto
Mon Jan 16, 2012 1:52 pm
Forum: Meteohub Application
Topic: NSLU2 USB Stick Memory Wear Error Messages
Replies: 3
Views: 1629

Re: NSLU2 USB Stick Memory Wear Error Messages

Hello, installing the latest updates I hoped for the indication of memory wear but memory wear indication does not work on my NSLU2. I get the following error messages in my system log: /home/meteohub/wear.sh: /home/meteohub/wear.sh: 38: Syntax error: + cat: /sys/block/s: No such file or directory ...
by pinto
Wed Aug 10, 2011 10:13 am
Forum: misc
Topic: Meteohub plugin for Saratoga AJAX/PHP templates
Replies: 33
Views: 23190

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Great job, like always. :D

Jozef

See it in action ? I'm using it.
by pinto
Wed Jun 15, 2011 9:02 am
Forum: Vantage
Topic: Davis VP+, VirtualVP, SheevaPlug
Replies: 16
Views: 7771

Re: Davis VP+, VirtualVP, SheevaPlug

admin wrote:This will be fixed with next update. Thanks for finding this ugly bug!
Thank you Boris, it sure will help Ken to build a nice template for the meteohub system :D

Jozef
by pinto
Tue Jun 14, 2011 11:46 pm
Forum: Vantage
Topic: Davis VP+, VirtualVP, SheevaPlug
Replies: 16
Views: 7771

Re: Davis VP+, VirtualVP, SheevaPlug

I've got my Sheeva Meteohub now uploading to a local FTP service.. now to figure out how to insert a custom template for the MHtags file on the Meteohub. Best regards, Ken Had to move the function to put the data in array to the defs-file. Meteohub seems to replace everything between [ and ] and if...
by pinto
Tue Jun 14, 2011 9:52 pm
Forum: Vantage
Topic: Davis VP+, VirtualVP, SheevaPlug
Replies: 16
Views: 7771

Re: Davis VP+, VirtualVP, SheevaPlug

Hi Ken, welcome to Meteohub Long story short Last weekend: Harddisk failure in the middle of a backup No computer(using laptop from my wife right now) Lost data, ... Needed something to feed my website Downloaded WLtemplate, and with some minor changes have a working website using my Meteohub system...
by pinto
Mon May 23, 2011 8:39 am
Forum: Graph Definitions
Topic: cumulative raingraph with gnuplot
Replies: 4
Views: 5497

Re: cumulative raingraph with gnuplot

And last 48 hours, midnight reset is working.
rain-L24.png
rain-L24.png (2.85 KiB) Viewed 5458 times