Skip to content

HoMeAu is an IoT project on Home Media Automation which serves as a media server using OSMC on Raspberry Pi to sync media, stream movies and tv series in non HD environments.

Notifications You must be signed in to change notification settings

akshitmahajan/HoMeAu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

HoMeAu

HoMeAu is an IoT project on Home Media Automation using OSMC and Rasberrypi.

Are you fond of watching movies on your big LED/LCD TV? Yes? But you do not have a media device that can directly run your movies as soon as they are downloaded in your computer!

HoMeAu is the solution for you. It is very simple, inexpensive & easy to configure solution which can be setup in a few hours. Just follow the steps below and stay excited to create your own media automation!

Setting up OSMC on Raspberry Pi.

  • Download OSMC from this link https://osmc.tv/download/

  • Install OSMC on the SD card, setup wireless connection by connecting Raspberry Pi with your home network (Wifi hotspot) at the time of installation.

  • Insert the SD card in the Pi, connect the Pi with ethernet cable or wifi dongle, keyboard, mouse and HDMI cable before powering it on.

  • Configuring unique ip address for listening on OSMC.

  • Install Kore Android/IOS application in your smart phone to control the media on OSMC.

  • Connect hard disk with OSMC installed Raspberrypi.

  • Configure Kore app to listen on configured IP address.

Uploading Single File to Connected Media from Windows

  • Open the media_script.txt & edit the SFTP server url, hostkey & Remote Media Path to your custom values.

  • Run winscp script (media_push.txt) to push any media file to desired location on the hard disk. Pass the filepath as parameter while executing the script.

  • Execute following command in cmd from winscp installation directory: winscp.com /script=media_push.txt /parameter //filepath\filename (Note. It does not work if filepath has spaces. I am working to fix this. For now, the filepath should not contain any spaces. )

  • Alternatively you can run upload.bat file with path to the file which you want to upload. It will automatically call the media_push script and upload the file to location written in the script. e.g. upload.bat c:\sample.avi

  • You can also Make shortcut to it on desktop and use it by dropping files on the icon. Windows automatically run the batch file and passes path to dropped file as command-line parameter.

  • In a similar way you can put the shortcut to the batch file into Explorer’s ‘Send To’ context menu (C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo in Windows Vista and newer).

Automate the script for sync-ing local media directory with remote media directory.

  • Open Homeau (sync).bat file in notepad and edit the local media path & remote media path (add your custom values).

  • Open media_sync.txt & edit the SFTP url & hostkey to your custom values

  • Run the Homeau (sync).bat file to sync the local & remote directories. (this will be one way synchronization, from local to remote)

Scheduling file transfers

Work in progress..

Resources:

#IMPORTANT NOTE: User osmc is not a root user, it does not have root permissions. To write copy any media in your hard disk, you need to have root level access. For this you need to add permissions in sudoers file located at (/etc/sudoers).

To can make changes to sudoers from putty/bash:

Create a back up of this file before editing using -> cp filename{,.bak}

Type visudo and press enter.

Navigate to the place you wish to edit using the up and down arrow keys.

Press insert to go into editing mode.

Make your changes - for example: user ALL=(ALL) ALL.

Note - it matters whether you use tabs or spaces when making changes.

Once your changes are done press esc to exit editing mode.

Now type :wq to save and press enter.

You should now be back at bash.

Now you can press ctrl + D to exit the session if you wish.

##END

About

HoMeAu is an IoT project on Home Media Automation which serves as a media server using OSMC on Raspberry Pi to sync media, stream movies and tv series in non HD environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published