Search found 16 matches

by lueila
Tue May 28, 2019 3:05 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

If I launch the script (both close contact GPIO and over_script - "with power exceed") by terminal, contact GPIO closes very fast.
I'll do it (reduce or delete unsleep).
I need time and some trials
The most important thing that the scripts is ok :)
by lueila
Tue May 28, 2019 2:13 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi Jeanmarc Yestarday I did some test (no enough time) and find daemon more fast than others but the delay is 27 sec about (40 sec with timer/service). In daemon loop there is unsleepe setted 500000 I don't know if this could help the command to reduce the delay (i'll check it) At moment it commands...
by lueila
Mon May 27, 2019 9:50 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc now it's working :) at moment I need to find the best setting about the loop, now I have delay about 35 sec (when the power exceed and GPIO close) I tried with daemon, systemd timer and also rs.local but the delay still remain abut 27/40 sec. Maybe that it's depend on the system used for...
by lueila
Sun May 26, 2019 4:38 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Thks for reply yes, I did it, following over_script complete: #!/usr/bin/php <?php // A simple script to command something if a meter or a sensor exceeded a live value. $MNDIR = '/var/www/comapps'; // Path to meterN $METNUM = 6; // meter/sensor number $MAXVAL = 100; // eg 100 W. Test 100W $MAXCMD = ...
by lueila
Sat May 25, 2019 10:18 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc Today I did some tests with GPIO and connected a led just to see if it switch on when the power exceed the limit in $MAXVAL and switch off when the power return below the level $MAXVAL. I did two script sh one to close and one to open the contact. I noted strage conditions. Led blinking ...
by lueila
Thu May 23, 2019 9:57 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc of course I did them as read on the first page on this thread and modify them as per instruction read in wiki. Timer worked only with enable and some errors if dgt start. Anyway I used the last two but the same errors and after some tests I found the mistake, stupid mistake :evil: now it...
by lueila
Thu May 23, 2019 7:13 pm
Forum: meterN
Topic: meterN 1.0
Replies: 66
Views: 6847

Re: meterN 1.0

Hello, Yet another release, here's meterN1.01 New : Add HTTP authentication option. This allow early mN's setup via localnetwork without HTTP authentication. Bug : Last and First values on reboot where missing New : Filter negative meter values, some people have meter with wrong data. Some clean up...
by lueila
Thu May 23, 2019 6:02 pm
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc Followed all instructions and I found problem on over.timer. systemctl start over.timer and received ---> job for over.timer failed. See Systemctl status over.time dgt it and received over.timer - over_script timer loaded: loaded (etc/systemd/system/over.timer; enable; vendor present: en...
by lueila
Thu May 23, 2019 6:42 am
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc maybe I found the way to control GPIO, I need to have your confirm if: 1. script over_deamon.php should be in comapps (with over_script.php) and create the ln-s to usr/bin 2. script over_demon_loop.php should be also in comapps? are those the right location? tks a lot lueila I can answe...
by lueila
Thu May 23, 2019 6:11 am
Forum: meterN
Topic: Some home automation
Replies: 32
Views: 5979

Re: Some home automation

Hi jeanmarc
maybe I found the way to control GPIO, I need to have your confirm if:
1. script over_deamon.php should be in comapps (with over_script.php) and create the ln-s to usr/bin
2. script over_demon_loop.php should be also in comapps?

are those the right location? tks a lot
lueila