Use your Philips Hue lights as Racing Flags. Works with Assetto Corsa, Assetto Corsa Competizione and iRacing.

Overview

Forks Stargazers Issues MIT License


Logo

phue-racing-flags

Use your Philips Hue lights as Racing Flags.

Explore the docs »

Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Supported Systems and Racing Simulators
  3. Local Development
  4. Usage
  5. Roadmap
  6. Contributing
  7. License
  8. Contact
  9. Acknowledgements
  10. Disclaimer

About The Project

Main Screen

Settings Screen

One Friday evening I thought to myself that it would be pretty sweet 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 Simulators

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

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

Run the app

  • Start the GUI
     python gui.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. 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 -> General -> 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 in the app. (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 -> General -> Lights to use as the Racing Flag Light(s)
  4. Adjust brightness if needed.
  5. Use the live sync setting to enable live sync on app startup.
  6. Custom colors for your lights can be set under Settings -> Assetto Corsa / Assetto Corsa Competizione / iRacing respectively.
  7. Test your color configuration by using the Test buttons next to each flag.
  8. On the main view you can use the radio buttons under "sim" to switch between Assetto Corsa, Assetto Corsa Competizione or iRacing.
  9. To start syncing the Racing Flag Light(s) with your simulator's race flag click "Start" under "live sync".
  10. To stop syncing the Racing Flag Light(s) click "Stop" under "live sync".

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

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

I am in no way affiliated with Philips, Kunos Simulazioni or iRacing.

Comments
  • Add Pipfile

    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?

    opened by kiview 3
  • Add a

    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.

    feature request 
    opened by Xantrass 2
  • Setting Light actions

    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.

    opened by RacerKris23 1
  • remove global execution

    remove global execution

    use

    if __name__ == "__main__":
    

    before this line:

    https://github.com/TUnbehaun/phue-racing-flags/blob/cacee68ea9b111d1000afbce312e4523c380b0e2/gui.py#L516

    [then you can look into packaging maybe and use the same function as an entrypoint]

    otherwise nice project, great idea!

    opened by a-tal 1
  • Failed Connection with Hue Bridge

    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.

    opened by TheC0DER68 0
  • time of day system

    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

    opened by RobEbbers 0
  • iRacing ABS support

    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

    feature request 
    opened by WAR6ASM 1
Owner
Web Developer. Designer. Tech Enthusiast.
PyVideoAI: Action Recognition Framework

This reposity contains official implementation of: Capturing Temporal Information in a Single Frame: Channel Sampling Strategies for Action Recognitio

Kiyoon Kim 22 Dec 29, 2022
Count the MACs / FLOPs of your PyTorch model.

THOP: PyTorch-OpCounter How to install pip install thop (now continously intergrated on Github actions) OR pip install --upgrade git+https://github.co

Ligeng Zhu 3.9k Dec 29, 2022
This PyTorch package implements MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation (NAACL 2022).

MoEBERT This PyTorch package implements MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation (NAACL 2022). Installation Create an

Simiao Zuo 34 Dec 24, 2022
eXPeditious Data Transfer

xpdt: eXPeditious Data Transfer About xpdt is (yet another) language for defining data-types and generating code for serializing and deserializing the

Gianni Tedesco 3 Jan 06, 2022
ICCV2021 Oral SA-ConvONet: Sign-Agnostic Optimization of Convolutional Occupancy Networks

Sign-Agnostic Convolutional Occupancy Networks Paper | Supplementary | Video | Teaser Video | Project Page This repository contains the implementation

63 Nov 18, 2022
Implementation and replication of ProGen, Language Modeling for Protein Generation, in Jax

ProGen - (wip) Implementation and replication of ProGen, Language Modeling for Protein Generation, in Pytorch and Jax (the weights will be made easily

Phil Wang 71 Dec 01, 2022
A Library for Modelling Probabilistic Hierarchical Graphical Models in PyTorch

A Library for Modelling Probabilistic Hierarchical Graphical Models in PyTorch

Korbinian Pöppel 47 Nov 28, 2022
🕵 Artificial Intelligence for social control of public administration

Non-tech crash course into Operação Serenata de Amor Tech crash course into Operação Serenata de Amor Contributing with code and tech skills Supportin

Open Knowledge Brasil - Rede pelo Conhecimento Livre 4.4k Dec 31, 2022
Linear image-to-image translation

Linear (Un)supervised Image-to-Image Translation Examples for linear orthogonal transformations in PCA domain, learned without pairing supervision. Tr

Eitan Richardson 40 Aug 31, 2022
This code is a near-infrared spectrum modeling method based on PCA and pls

Nirs-Pls-Corn This code is a near-infrared spectrum modeling method based on PCA and pls 近红外光谱分析技术属于交叉领域,需要化学、计算机科学、生物科学等多领域的合作。为此,在(北邮邮电大学杨辉华老师团队)指导下

Fu Pengyou 6 Dec 17, 2022
How to Leverage Multimodal EHR Data for Better Medical Predictions?

How to Leverage Multimodal EHR Data for Better Medical Predictions? This repository contains the code of the paper: How to Leverage Multimodal EHR Dat

13 Dec 13, 2022
Allows including an action inside another action (by preprocessing the Yaml file). This is how composite actions should have worked.

actions-includes Allows including an action inside another action (by preprocessing the Yaml file). Instead of using uses or run in your action step,

Tim Ansell 70 Nov 04, 2022
Pytorch Implementation of DiffSinger: Diffusion Acoustic Model for Singing Voice Synthesis (TTS Extension)

DiffSinger - PyTorch Implementation PyTorch implementation of DiffSinger: Diffusion Acoustic Model for Singing Voice Synthesis (TTS Extension). Status

Keon Lee 152 Jan 02, 2023
Tools for manipulating UVs in the Blender viewport.

UV Tool Suite for Blender A set of tools to make editing UVs easier in Blender. These tools can be accessed wither through the Kitfox - UV panel on th

35 Oct 29, 2022
Jetson Nano-based smart camera system that measures crowd face mask usage in real-time.

MaskCam MaskCam is a prototype reference design for a Jetson Nano-based smart camera system that measures crowd face mask usage in real-time, with all

BDTI 212 Dec 29, 2022
Code needed to reproduce the examples found in "The Temporal Robustness of Stochastic Signals"

The Temporal Robustness of Stochastic Signals Code needed to reproduce the examples found in "The Temporal Robustness of Stochastic Signals" Case stud

0 Oct 28, 2021
Code for "My(o) Armband Leaks Passwords: An EMG and IMU Based Keylogging Side-Channel Attack" paper

Myo Keylogging This is the source code for our paper My(o) Armband Leaks Passwords: An EMG and IMU Based Keylogging Side-Channel Attack by Matthias Ga

Secure Mobile Networking Lab 7 Jan 03, 2023
FcaNet: Frequency Channel Attention Networks

FcaNet: Frequency Channel Attention Networks PyTorch implementation of the paper "FcaNet: Frequency Channel Attention Networks". Simplest usage Models

327 Dec 27, 2022
The official codes of "Semi-supervised Models are Strong Unsupervised Domain Adaptation Learners".

SSL models are Strong UDA learners Introduction This is the official code of paper "Semi-supervised Models are Strong Unsupervised Domain Adaptation L

Yabin Zhang 26 Dec 26, 2022
Locally Enhanced Self-Attention: Rethinking Self-Attention as Local and Context Terms

LESA Introduction This repository contains the official implementation of Locally Enhanced Self-Attention: Rethinking Self-Attention as Local and Cont

Chenglin Yang 20 Dec 31, 2021