Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
TBSniller committed Oct 28, 2021
1 parent 7258bb4 commit 66eff2e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You should be good to go. **I think root will be also requierd, I never tested i
Since LG started to do some more permission handling, the binary must be able to talk to the libvtcapture library. Take a look at the `setlibvtcapturepermission.sh` to get an idea of that, change the binary-path to your needs and run it, before starting the executeable.

Usage:
> hyperion-webos -a ADDRESS [OPTION]...
> hyperion-webos_libvtcapture -a ADDRESS [OPTION]...
> -x, --width | Width of video frame (default 360)
> -y, --height | Height of video frame (default 180)
> -a, --address | IP address of Hyperion server
Expand All @@ -40,3 +40,6 @@ Specifying the target is neccessary.

### Not working
Limiting the FPS isn't supported at this time.

### Questions?
Join the OpenLG-Discord: https://discord.gg/pfU6wXQnG9
27 changes: 27 additions & 0 deletions setlibvtcapturepermission.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Directory to store overlays in (one directory structure is created per overlay configured down below)
# https://gist.github.com/Informatic/db387d512bf4ae5512d9f644c4d219d2
OVERLAY_BASE=/home/root/overlays
overlay() {
set -e
overlay_id="$(echo $1 | sed 's;/;__;g')"
unset TARGET SOURCE FSTYPE OPTIONS
eval $(findmnt -P $1)
if [[ "$FSTYPE" == "overlay" ]]; then
echo "[-] Overlay '$1' already mounted"
else
echo "[ ] Preparing overlay for '$1' -> $OVERLAY_BASE/$overlay_id"
mkdir -p "$OVERLAY_BASE/$overlay_id/upper" "$OVERLAY_BASE/$overlay_id/work"
mount -t overlay -o lowerdir=$1,upperdir=$OVERLAY_BASE/$overlay_id/upper/,workdir=$OVERLAY_BASE/$overlay_id/work/ overlay-$overlay_id $1
echo "[+] Overlay '$1' mounted"
fi
}

overlay /usr/share/luna-service2/manifests.d
overlay /usr/share/luna-service2/roles.d

cp -f /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/screen-capture-webos.manifest.json /usr/share/luna-service2/manifests.d/screen-capture-webos.manifest.json
cp -f /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/org.webosbrew.piccap.service.role.json /usr/share/luna-service2/roles.d/org.webosbrew.piccap.service.role.json

ls-control scan-services

0 comments on commit 66eff2e

Please sign in to comment.