Git Product home page Git Product logo

mrusme / melon Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 19 KB

Melon – Multimedia- & Entertainment Linking and Operation Node – is a daemon that allows linking media devices (e.g. Sonos, Televisions) and operating them through one API

Home Page: https://xn--gckvb8fzb.com

License: MIT License

Shell 10.40% Python 89.60%
python3 api raspberry-pi raspberrypi philips-hue hue-bridge samsung-tv sonos irda

melon's Introduction

Melon

Melon – Multimedia- & Entertainment Linking and Operation Node – is a daemon that allows linking media devices (e.g. Sonos, Televisions) and operating them through one API

Requirements

  • WiFi
  • A Raspberry Pi Zero W / A / A+ / B / B + with an LIRCd-compatible IrDA transmitter
  • Raspbian on its microSD card
  • A GitHub account

Installation

On your Raspberry:

$ aptitude install python3 python3-pip python3-dev python3-spidev
$ pip3 install gunicorn falcon ujson tinydb
$ # For controlling Samsung TVs:
$ pip3 install samsungctl
$ # For controlling Sonos speakers:
$ pip3 install soco
$ # For controlling Philips Hue:
$ pip3 install phue
$ # For controlling anything IrDA related:
$ pip3 install py_irsend
$ cd /opt
$ git clone https://github.com/mrusme/melon.git
$ ln -s /opt/melon/init.d/melon /etc/init.d/melon
$ update-rc.d melon defaults

Melon will now be run automatically every time your Raspberry starts.

Running manually

$ cd melon/
$ ./melon.sh

Configuration

Port (on boot)

You can change the port by creating a file named /etc/melon and adding the following content to it:

export PORT=1337

The init.d-script will look for the file and in case it was found source it.

Port (manually)

PORT=1337 ./melon.sh

API

TODO

"Let me tell you..."

Sure, tell me!

melon's People

Contributors

mrusme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.