Search found 1858 matches

by jeanmarc
Sun Nov 17, 2019 8:05 am
Forum: Smart meters
Topic: Aeotec Z-Wave clamp
Replies: 0
Views: 39

Aeotec Z-Wave clamp

Hi, I found a cool clamp that allow to remotely measure the energy. The Aeotec Home Energy Meter (ZW095) is finaly a clamp with the abilitie to measure voltage. That should allow to measure precisely energy (kWh), unlike other clamps which only have the intensity measurement. There is many ZWave con...
by jeanmarc
Fri Nov 15, 2019 3:04 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

Hi, If mN is stop the file won't exist, if it is ever stuck by a com. app. the UTC won't increase. I haven't test but it should do the trick #!/usr/bin/php <?php if (isset($_SERVER['REMOTE_ADDR'])) { die('Direct access not permitted'); } if (file_exists('/dev/shm/mN_LIVEMEMORY.json')) { $data = file...
by jeanmarc
Thu Nov 14, 2019 5:20 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

So, is it fixed now ? :shifty:
by jeanmarc
Thu Nov 14, 2019 10:06 am
Forum: Off-topic
Topic: Force attacks against SSH
Replies: 1
Views: 128

Re: Force attacks against SSH

Now for SSHGuard , it's another protection that will blocks repeating offenders during a limited amount of time. The default amount of time the offender is banned starts at 120 seconds and increases at each bad request. It can be also be configured to permanently ban. Install sshguard (in arch pacma...
by jeanmarc
Thu Nov 14, 2019 8:23 am
Forum: Off-topic
Topic: Force attacks against SSH
Replies: 1
Views: 128

Force attacks against SSH

Hi, Lately i've been amazed how much attacks i encounter against my SSH port.I've been look at various solution to calm those annoyings intruders :evil: I come up with few goods things that you might also do to protect further your logger : - SSH keys - Sshguard or Fail2ban - Port knocking First, i ...
by jeanmarc
Tue Nov 12, 2019 7:25 am
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

:arrow: Well about UTC value, it should be higher a minute late. If it's the same, there is a problem.
by jeanmarc
Mon Nov 11, 2019 9:53 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

Yup all correct
by jeanmarc
Mon Nov 11, 2019 9:14 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

I'll look later on to avoid getting stuck if a com app don't respond. First time it happen to me.. more /dev/shm/mN_LIVEMEMORY.json {"UTC":1573502999,"Conso1":"228","Gas2":"<font color='#8B0000'>Off<\/font>","Water3":"0","Prod4":"0","EIMP5":"226.9","EE XP6":"0","eselfc7":"0"} UTC is time stamp in ep...
by jeanmarc
Mon Nov 11, 2019 8:19 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

Hard to tell if mN is stuck with a ping, the solution would be to look if time stamp is late in /dev/shm/mN_LIVEMEMORY.json. That say : mN is stable, if a problem arise it should be a com app. About 644, it mean that the user who run it (root) can write, the other can only reads. So please chmod and...
by jeanmarc
Mon Nov 11, 2019 7:10 pm
Forum: Pulse meters
Topic: espeasy sonoff pulse counter Metern
Replies: 85
Views: 17121

Re: espeasy sonoff pulse counter Metern

Ok one problem at the time ;) Your script is correct but that better to put 'set_time_limit' on top <?php set_time_limit(20); ... If req_espeasy don't respond it should end up with an error instead of waiting. RpiNotify is still free AFAIK. I believe instant notification are more wise with such app ...