Jump to content

Lost

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi guys! I have a 2Mp webcam connected to OPi zero H3. It nicely works with mjpg-streamer and web-server, but stream is only about 10-12 FPS with 1280*720 resolution. After running "armbianmonitor -m" cpu load is only 26-27% Time CPU load %cpu %sys %usr %nice %io %irq CPU C.St. 19:32:15: 1104MHz 0.05 13% 0% 11% 0% 0% 1% 27.7°C 0/7 19:32:20: 1104MHz 0.12 26% 0% 26% 0% 0% 0% 27.6°C 0/7 19:32:25: 1104MHz 0.19 26% 0% 26% 0% 0% 0% 26.7°C 0/7 19:32:30: 1104MHz 0.26 28% 0% 26% 0% 0% 1% 28.3°C 0/7 19:32:36: 1104MHz 0.32 27% 0% 26% 0% 0% 1% 28.1°C 0/7 as i can understand, board now running on only one core. In Raspbian was command "-j4" to use all 4 cores, is there similar command in Armbian? If it possible, can i turn on additional cores to get more FPS from camera? Here is command i use to run stream: mjpg_streamer -i "/usr/local/lib/input_uvc.so -d /dev/video0 -n -y -r 1280x720 -f 30" -o "/usr/local/lib/output_http.so -n -w /usr/local/www -p 9000" -b p/s/ camera can run about 20 FPS with same resolution connected to laptop
  2. so, just find the solution Not the best way, but worked for me. For example, we need to run from web page "script.py" that uses gpio first, i make new executable file "*cgi" - for example "script.cgi". Inside of it just this: #!/bin/bash sudo ./script.py after that use $sudo visudo and change line # Allow members of group sudo to execute any command # Allow members of group sudo to execute any command %sudo ALL=(ALL) NOPASSWD: ALL Now you can run "script.cgi" from WEB and python script will be executed. this is wrong way if you care about security, i actually don`t like this finding, but for my underwater camera with step motor to look around, i think it is ok Any time, if somebody know how to give access to gpio from python and web, i`m still interested in. also found OPi.GPIO library that is similar to RPi.GPIO: just type ~$ sudo pip install OPi.GPIO
  3. I understand that, thanks, but even this couldn`t help. And it`s okay, i am really just a beginner in linux On RPi this problem was easily solved by: sudo usermod -a -G gpio www-data i`ve checked /etc/groups and /etc/gshadow files - there is no even gpio group
  4. script works fine from terminal with sudo But after i add root rights to www-data - same result
  5. Hi guys! After moving my project from Raspberry to Orange i`ve got an issue with gpio access. I`m using Lighttpd as webserver and running python scripts from touching buttons there. But on armbian it doesn`t work because of permissions settings. here is screenshot of simple script that turns on led tried lots of google finds, but without any success. What is wrong? oh, i`m using pyA20 library
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines