Skip to content

Instantly share code, notes, and snippets.

@laszukdawid
Created March 5, 2020 17:01
Show Gist options
  • Save laszukdawid/c903749aeda567b19deeb9a5d04a9717 to your computer and use it in GitHub Desktop.
Save laszukdawid/c903749aeda567b19deeb9a5d04a9717 to your computer and use it in GitHub Desktop.

Accessing view

The best view is through the browser by checking the url from the AWS console.

However, sometimes these it's not easy/possible, and then it's easier to do it by tunneling ssh into mplayer:

Project view

> ssh aws_cam@{cam_IP} cat /tmp/results.mjpeg | mplayer -demuxer lavf -lavfdopts format=mjpeg:probesize=32 -

Camera view

Developing

Forum link: https://forums.aws.amazon.com/thread.jspa?messageID=861852

Deployed code is located at for the root:root (user:group) so accessing it requires sudo:

/opt/awscam/greengrass/ggc/deploymet/lambda/{lambda_arn}

It's Ok to just update the code there without deploying through the AWS console, however, changes are not deployed to the device automatically. Changes are refreshed on start of the GreenGrass service, i.e.

systemctl restart --no-block greengrassd.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment