Couple of Newbie questions

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
gazza_d
Starting Member
Starting Member
Posts: 2
Joined: Mon Mar 26, 2012 10:00 pm

Couple of Newbie questions

Post by gazza_d »

Hi - Couple of newbie questions.

1. I have an open energy monitor , and have knocked up a shell script to read the current value and put it into a shell device variable. I have also added the shell device to the Energy and Power groups. I can see the value on the energy tab, but cannot get it onto the home screen. I mustbe missing something, but cannot see what. any ideas?

2. Is there any support or workaround to support Tellsticks? I saw someone was developing a plugin a while ago, but it seems to have come to nothing,

thanks

Gary
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Couple of Newbie questions

Post by RDNZL »

Gary,

put your device in groups Energy and Power, and for some reason Value2 of the device must be filled.
I think this comes from the first power measurement device I had the RFXMeter, should make it more generic.
Are you willing to post or e-mail me the script and some info about your open energy monitor setup, so I can put it on the wiki?

I have a Tellstick laying around, wanted to code a module for it, but it's performance is not that good, so haven't started it.
I guess you can use it somewhat with the linux library and some shell scripts and calls from event actions.
Regards, Ron.
gazza_d
Starting Member
Starting Member
Posts: 2
Joined: Mon Mar 26, 2012 10:00 pm

Re: Couple of Newbie questions

Post by gazza_d »

Thanks, that fixed it!. Manually dumping a dummy voltage value for now.

Feel free to post the script on the wiki or use it. It's not fancy. Just dumps a web page with the current power vaule to a temporary file, and then parse out the actual value using sed.

Code: Select all

#!/bin/bash
lynx -dump "http://server/emoncms3/feed/value?id=13&apikey=**your_emoncms_api_key_here" >feed.txt
echo 230
sed -n 4p feed.txt | sed -e 's/^[ \t]*//'
I'll have a play with the shell scripts for the Tellstick. I only a have a fairly small house so haven't experienced the range issues others have reported.

Regards

Gaz
Post Reply

Return to “DomotiGa Forum”