Search found 1917 matches

by jeanmarc
Wed Dec 25, 2019 9:37 am
Forum: meterN
Topic: Optical Meter Reader
Replies: 1
Views: 5180

Re: Optical Meter Reader

Hi,
I stumble upon OpenCV, which allow optical characters recognition to read an electricity meter.
If you have a camera and have times, it could be interesting to give it a try :)
Merry xmas
by jeanmarc
Tue Dec 24, 2019 8:09 am
Forum: Power-one inverters
Topic: Aurora Communication problems
Replies: 9
Views: 1078

Re: Aurora Communication problems

Great, merry Xmas :thumbup:
by jeanmarc
Mon Dec 23, 2019 6:22 pm
Forum: Power-one inverters
Topic: Aurora Communication problems
Replies: 9
Views: 1078

Re: Aurora Communication problems

all seem good, let see tomorrow. If you have issue, turn off 123s and try to request this test.php <?php $com = "aurora -a 2 -c -T -Y3 -l4 -d0 -e /dev/ttyUSB0"; //$com = "ls -al /dev/"; //exec("touch /var/lock/LCK..test 2>&1", $datareturn); $datareturn = trim(implode($datareturn)); echo $datareturn;...
by jeanmarc
Mon Dec 23, 2019 5:43 pm
Forum: Power-one inverters
Topic: Aurora Communication problems
Replies: 9
Views: 1078

Re: Aurora Communication problems

Which version do you have ? php -v , check also systemctl status php-fpm for details You shoud see down bellow systemctl edit --full php-fpm.service ... # Required for dropping privileges and running as a different user CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_CHOWN ... Also check permissions...
by jeanmarc
Mon Dec 23, 2019 4:15 pm
Forum: Power-one inverters
Topic: Aurora Communication problems
Replies: 9
Views: 1078

Re: Aurora Communication problems

Hi Giuseppe,
Check that solution, tell me if all ok. it work for me ;)
by jeanmarc
Mon Dec 23, 2019 6:59 am
Forum: Off-topic
Topic: php-fpm-7.4.0 can't access devices
Replies: 10
Views: 1321

Re: php-fpm-7.4.0 can't access devices

Also in php-fpm.service. it apply only for php 7.4
by jeanmarc
Sun Dec 22, 2019 9:34 am
Forum: Off-topic
Topic: php-fpm-7.4.0 can't access devices
Replies: 10
Views: 1321

Re: php-fpm-7.4.0 can't access devices

So far so good 8-)
If you have app that need to write port lock as http user (like aurora or sdm), you may change it as it.
by jeanmarc
Sat Dec 21, 2019 9:10 pm
Forum: Off-topic
Topic: php-fpm-7.4.0 can't access devices
Replies: 10
Views: 1321

Re: php-fpm-7.4.0 can't access devices

I got all working with lastest PHP/PHP-FPM 7.4.1. Just need few more checks but so far the solution is : Set to PrivateDevices=false in php-fpm.service and CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_CHOWN systemctl edit --full php-fpm.service systemctl daemon-reload & systemctl restart php-fpm ...
by jeanmarc
Wed Dec 18, 2019 5:36 pm
Forum: Off-topic
Topic: php-fpm-7.4.0 can't access devices
Replies: 10
Views: 1321

Re: php-fpm-7.4.0 can't access devices

Well, judging from various point of views, it is not wise to chmod /var/lock/
If php can't invoke ttyUSB anymore i'am in trouble :think:
by jeanmarc
Wed Dec 18, 2019 11:31 am
Forum: Off-topic
Topic: php-fpm-7.4.0 can't access devices
Replies: 10
Views: 1321

Re: php-fpm-7.4.0 can't access devices

:idea: i finally get it ;) Due to the hardening options for systemd service units, you need to set PrivateDevices=false (In Arch, might be =no) in php-fpm.service. Do so with systemctl edit --full php-fpm.service Then systemctl daemon-reload & systemctl restart php-fpm Now php-fpm have access to /de...