https://github.com/extraltodeus/crypthue
A script to modifiy a philipps hue light color depending on the price variation of a crypto currency
https://github.com/extraltodeus/crypthue
Last synced: 5 months ago
JSON representation
A script to modifiy a philipps hue light color depending on the price variation of a crypto currency
- Host: GitHub
- URL: https://github.com/extraltodeus/crypthue
- Owner: Extraltodeus
- Created: 2018-09-08T22:21:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T06:04:19.000Z (almost 6 years ago)
- Last Synced: 2024-12-30T15:49:09.260Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CryptHue
NOTE : The coinmarketcap API is not availaible anymore. This script will not work. Sorry folks.
## How to use it
Simply replace the following arguments by your bridge local IP address and hashed username :
b = Bridge("bride_ip_address_here", "hashed_valid_username_here").lights
Select the lamp by modifying the variable "lampe" at line 9
The variable "CMCid" is the ID of the crypto that you wish to follow. You can find the ID here :
https://api.coinmarketcap.com/v2/ticker/
The variable "loopTime" is the refresh time in seconds (5 minutes by default).
The variable "varia" is the min/max range of percentage variation. The default is 5%. Which means that you will get a full green at 5% and a full red at -5%. Everything in between will give an in between color.
## Dependancy
You will need the following package :
https://github.com/quentinsf/qhue
Or install it from pip :
pip install qhue