GithubHelp home page GithubHelp logo

blog2i2j / samsung-photo-frame-ctrl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gekkio/samsung-photo-frame-ctrl

1.0 1.0 0.0 94 KB

A small Python application for controlling Samsung photo frames

License: Other

Python 86.76% Shell 13.24%

samsung-photo-frame-ctrl's Introduction

Samsung photo frame control

A small Python application for controlling Samsung photo frames.

Based on the work of Grace Woo & others. One large difference is that my application adds an extra control message that prevents the photo frame from exiting mini display mode.

Features

  • If a photo frame is in mass storage mode, the program will change it into mini display mode.
  • If a photo frame is in mini display mode, the program will send the jpeg that was specified as the program argument to the photo frame. The JPEG must be prescaled to the exactly correct size!
  • window-in-frame.sh which shows a user selected application window in the photo frame (needs Imagemagick!)

Supported photo frames

  • SPF-107H (not tested)
  • SPF-87H
  • (In theory) Other similar Samsung photo frames should work once their product IDs are added into the code

Dependencies

Usage

Show JPEG image with the exactly correct size in photo frame

sudo ./frame-ctrl.py my_correctly_scaled_image.jpg

or

cat my_correctly_scaled_image.jpg | sudo ./frame-ctrl.py

Automatically scale an image and show it in the photo frame (needs Imagemagick). Replace 800x480 with the correct resolution for your device

cat some_image_supported_by_imagemagick | convert - -resize 800x480 - | montage - -background black -geometry 800x480 jpeg:- | sudo ./frame-ctrl.py

Show an application window in photo frame (needs Imagemagick). Replace 800x480 in window-in-frame.sh with the correct resolution for your device

sudo ./window-in-frame.sh and click on an application window to select it

FAQ

Can I use my photo frame as a mini monitor in Linux?

Nope. In theory it's possible but it would require an X driver that would repeatedly compress frames into JPEG format and send them to the photo frame. This is exactly what the Frame Manager software does in Windows.

Why do I need to use sudo?

libusb needs direct access to the usb device and unless you have set up permissions explicitly, you won't have access to the raw usb devices.

samsung-photo-frame-ctrl's People

Contributors

gekkio avatar jannemantyharju avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.