Search found 52 matches

by thedrake
Sun Feb 07, 2016 8:21 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Re: meterN 0.8

Looking at specs, the register location are the same for sdm120,220 and 630, so on monophase models the not used registers made the register non adiacent. For our use only Frequenc, Import and Export of active energy are adiacent (on sdm220 is adiacent import/export of reactive energy too but is no...
by thedrake
Thu Jan 28, 2016 11:59 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Re: meterN 0.8

Some time agoe I've modified sdm120c too, to read the some other sdm220 parameters (before your version). I noticed, that the C code make a single request for each Modbus value, so asking for a single modbus value or ten modbus value makes almost no difference about overhead time. Modbus protocol l...
by thedrake
Sat Jan 16, 2016 3:26 pm
Forum: meterN
Topic: houseenergy Annoyng bug: negative numbers
Replies: 28
Views: 17560

Re: Annoyng bug: negative numbers

sovking wrote:My passover values are 0.
Debug code added. Thank you!
Hi sowking,
I suggest you to add -j10 -w10 to sdm120c commands if not already in your houseenergy script.

/drk
by thedrake
Thu Jan 14, 2016 6:03 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Re: meterN 0.8

This topic about direct vs indirect reading of 485 meters, it's quite interesting and not trivial at all :) Personally, I've tried to make some experiment to catch best trade-off but I've not found the best trade off. ... Personally I found that on one installation with not so good rs-485 line, an ...
by thedrake
Thu Jan 14, 2016 4:31 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Re: meterN 0.8

<?php print_r($argv); ?> [root@i3 comapps]# php test.php request what you want Array ( [0] => test.php [1] => request [2] => what [3] => you [4] => want ) :lol: You're right i could get rid of ID but i need to follow a standard and it make a verification. Interesting! I never knew about it! :lol: W...
by thedrake
Thu Jan 14, 2016 3:29 pm
Forum: meterN
Topic: A (simple) virtual meter example for meterN
Replies: 3
Views: 3264

Re: A (simple) virtual meter example for meterN

Hi Drake, I read my real meters from meterN, no script is needed (eg i use sdm120cdrk -a1 -b9600 -2 -m -i /dev/sdm as main command) I only request my virtuals meters with 'houseenergy energy/self'. There is many advantages in houseenergy over eflow: it show correct data even if the logger isn't sta...
by thedrake
Thu Jan 14, 2016 1:38 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Re: meterN 0.8

Hi Drk, Can't you make a simple script that does the egrep job ? ;) Personally, i don't use a daemon anymore and i make a request for each pooling (eg sdm120cdrk -a1 -b9600 -2 -m -i /dev/sdm). I didn't notice any slowdown, it avoid getting wrong values and if there is a problem, it won't retrieve o...
by thedrake
Thu Jan 14, 2016 11:49 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

meters reading small improvement

Hi Jeanmarc, what about a placeholder for meter command string to pass current meter ID? It should be simpler/cleaner to call parametric scripts for meter readings (hopely less error prone). E.g.: Old stile energy Command egrep "^12_IE\(" /run/shm/metern-energy.txt Proposed new stile energy Command ...
by thedrake
Thu Jan 14, 2016 11:33 am
Forum: meterN
Topic: A (simple) virtual meter example for meterN
Replies: 3
Views: 3264

Re: A (simple) virtual meter example for meterN

Great example Jeanmarc, I like it. Even if I still prefer to get the value read from metern from real meter, forcing it to write shm during meter loop reading, instead of reading real meter again in an external script. :) Virtual <> real. I know that you not agree. Nevertheless I will never be able ...
by thedrake
Sun Dec 20, 2015 12:00 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 96923

Todays readings

Hi jeanmarc, there is a glitch in code for today readings in file programs/programreadings.php. Line 77 says: $met = substr($meter, 0, 1); But it should be something like: $met = substr($meter, 0); If not, every meternum > 9 will get readings from meternum=1 (if max metnum <=19). ;) :D /drk P.S.: Wi...