GithubHelp home page GithubHelp logo

deastiny / atmosphuer Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 53.15 MB

Set the atmosphere through sound and light with Philips Hue.

License: Other

Python 1.72% JavaScript 96.15% HTML 2.13%
python36 phue hue hue-lights penandpaper shadowrun roleplay roleplaying-game flask atmosphere python

atmosphuer's Introduction

Atmosphuer

A small and lightweight Flask based Python3 application that shows scenes from Philips Hue and streams music.
Run it on a raspberry pi for easy and fast access !

Atmosphuer in Action

Why ?

Mainly to set the atmosphere for our pen and paper group.
With just two taps we can set a warm orange light and start playing pub-background music.

How to install ?

  • Create a Python3.6 Virtual Environment
  • Run pip install -r requirements.txt
  • Start the server with python atmosphuer.py

On the first run a config file settings.json will be created. Use it to configure the app:

  • lights: The name of the lights you want to show (currently 3 at most)
  • bridge_ip: The ip adress of the hue bridge, check your router or Hue app for it
  • owners: When starting the app you get a list of the owners and corresponding scenes, add the id's of scenes you want to see
  • sound_dir: The directory where all the sound files should be read from
  • transition: The transition time for scene changes

What else ?

I don't know ?! Got any ideas ? Open an issue and let's talk !
Please feel free to contribute in any way, be it documentation, blog posts, discussion or code - this is open source !

atmosphuer's People

Contributors

deastiny avatar neil-hickey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atmosphuer's Issues

Fade audio

What would be options to fade audio tracks ?

Select scene -> Play Music

The option to auto-play music on selecting a scene would be great, e.g.:
Select scene: street, start playing cars_city_background.mp3 automatically.
This should be optional, it should be possible to disable it globally and the UI should be intuitive.

Mocking Bridge

Hey @DeastinY ,

Without access to a Philips HUE, nothing will work or startup. Only people with this device can contribute to this project at the moment. Maybe look into mocking out this dependency so the server will startup with some templated information so contributions can happen from people without the device.

Sound Mixer ?

Some sounds work really well together, one could for example combine a soft jazz song with some dampened voice and dish rattle to create a nice bar atmosphere. Add some storm and rain to it and the outside is covered as well.

  • How would this mix with the current sound player ?
  • How would a touch-friendly interface look like ?
  • Load custom sounds or add pre-defined ones ?

In any way I think it would be important to make it very clear what is playing, at which volume and the sounds would either have to loop perfectly or be rather lengthy.

Add search to lists

Adding a small search above the scene / mp3 view would certainly help when quickly looking for something special.

Missing Requirements

Looks like the requirements.txt is missing the Flask-Navigation library.

Added and submitted PR : #7

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.