Code Monkey home page Code Monkey logo

phue-racing-flags's Introduction

Forks Stargazers Issues MIT License


Logo

phue-racing-flags

Use your Philips Hue lights as Racing Flags.

Explore the docs »

Report Bug · Request Feature

Buy Me A Coffee

Hey 👋 I'm Tim and I love to develop free and open source apps like phue-racing-flags.
All donations are greatly appreciated and directly support my work.

Table of Contents

  1. About The Project
  2. Supported Systems and Racing Simulations
  3. Local Development
  4. Usage
  5. License
  6. Contact
  7. Acknowledgements
  8. Disclaimer

About The Project

Main Screen

Settings Screen

One Friday evening I thought to myself that it would be pretty cool to use my Philips Hue lights as indicators for the racing flags inside of Assetto Corsa Competizione. As no app was available to achieve this, I decided to take matters into my own hands and create one.

Built With

Supported Systems and Racing Simulations

The app is designed for Windows and currently supports the following racing simulations:

Local Development

To get a local development copy up and running, follow these simple steps.

Prerequisites

Installation

  • Clone the repo

    git clone https://github.com/TUnbehaun/phue-racing-flags.git
  • Install Eel via pip

    pip install eel
  • Install Electron via npm

    npm install

Run the app

  • Start the GUI
     python web.py

Usage

To just use the app itself without setting up a local development copy, you can follow these simple steps:

  1. Download the latest .exe file from here: https://github.com/TUnbehaun/phue-racing-flags/releases/latest/download/phue-racing-flags.exe
  2. If you have already used a previous version, make sure to delete any existing phue-rf-save.json or prf-save.json files, to ensure compatibility with the newest version.
  3. Run the .exe file

Once the app is started, you can use it the following way:

  1. Enter the IP Address of your Philips Hue Bridge under Settings -> Philips Hue -> Bridge IP. (You can find the IP Address of your Bridge in the interface of your Router)
  2. Press the (hardware) link button on your Philips Hue Bridge and then within 30 seconds hit the "Connect" button next to the Bridge IP input field. (Pressing the (hardware) link button on your Philips Hue Bridge is only necessary for the very first time you connect the app to a new Bridge)
  3. You should be able to choose one or multiple of your lights under Settings -> Philips Hue -> Lights to use as the Racing Flag Light(s)
  4. Adjust brightness if needed.
  5. Custom colors for your lights can be set under Settings -> Flags -> Flag Colors respectively.
  6. Test your color configuration by using the Test buttons next to each flag.
  7. On the main view you can use the cards to switch syncing between Assetto Corsa, Assetto Corsa Competizione or iRacing.
  8. To start syncing the Racing Flag Light(s) with your simulation's race flag click "Start" in the live sync banner.
  9. To stop syncing the Racing Flag Light(s) click "Stop".

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Tim Unbehaun - [email protected]

Project Link: https://github.com/TUnbehaun/phue-racing-flags

Acknowledgements

Disclaimer

This app is not an official product endorsed by Philips, Kunos Simulazioni or iRacing and I am in no way affiliated with them. The images used in the main screen of the app are in-game screenshots from the respective simulations and I explicitly asked for permission, before I included them.

"Hue Personal Wireless Lighting" is a trademark owned by Koninklijke Philips Electronics N.V.

"Assetto Corsa" and "Assetto Corsa Competizione" are trademarks owned by Kunos Simulazioni S.r.l.

"iRacing" is a trademark owned by iRacing.com Motorsport Simulations, LLC

phue-racing-flags's People

Contributors

tunbehaun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phue-racing-flags's Issues

Add Pipfile

In order to make the build easily reproducible for others, I'd recommend adding something like pipenv.

If you give me the list of required packages (only some Hue package?), I'd be happy to raise a PR and also add a CI job for building the exe. What did you use for building the distributable?

iRacing ABS support

With the upcoming addition of telemetry for ABS engagement for 2021 Season 3 would it be possible to add a strobing alert for when ABS kicks in?
ABS brake engagement is now logged to telemetry as the boolean, "BrakeABSactive"
2021 Season 3 Release notes

Failed Connection with Hue Bridge

Hi,

I`m having trouble to connect my Hue Bridge to the Software. When I insert the IP of my Bridge into the IP-Adress field it shows my connected Lamps.

But when I click Start on the Main Window and Start ACC, the LEDs doesn´t show me the flag status.

Is there anyone I need to be careful or so?

I`m waiting for helpful answers.

time of day system

Greetings i have been looking into getting a systrem that simulates time with lights and turn the lights blue when night. this would be a lovely feature

Keep Lights On During Session According to session state

Is there a way you can add an option to keep the current light on during the session? For instance when a green flag waves instead of the lights turning green for 5 to 10 seconds (whatever the actual current timeout is) the green light stays on until it changes to say a yellow flag. And then when that flag waves it stays yellow for the entire caution until the green waves again? I LOVE this plugin it's the only one of it's kind I've found for iRacing and hue lights I just wish the lights stayed on for 100% of the session depending on the current session state.

Add a "sync on startup" checkbox.

Hey,
it would be really cool if you could add an option that the app starts live sync directly after startup.

I use iRacing Manger to autmatically start all necessary apps when iracing launches, and so far phue-racing-flags is the only app that needs an addional click to start working.
If it is configured before, the app stores all necessary information to work properly, so a "start sync automatically" should be possible.

Thank you very much for your effort :)

Best Regards.

Create and add a custom logo

Custom logo to be displayed in the window header of the app and in the taskbar. Can also be added to the README as project logo.

Setting Light actions

How do I change the actions the lights take when a flag is displayed? Currently the light blinks once or stays static when the flag is displayed. I would like to find out how to change the yellow flag for example. Id like it to flash yellow during the duration the flag is shown. Same with the green flag.

Green Flag showing more yellow than green

When I test the green flag, it always shows as a yellowish color. No matter if I manually select a color on the wheel or type in a green RGB code it stays the same. It seems most of the other colors work fine.

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.