hueget 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/Dockerfile +17 -0
- package/README.md +17 -1
- package/docker-compose.yml +11 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,22 @@ See the [Readme file](https://github.com/jsiegenthaler/hueget/blob/master/README
|
|
|
5
5
|
# Bug Fixes and Improvements
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## 0.7.6 (2024-12-13)
|
|
9
|
+
* Added Docker config (thanks @Yannis4444)
|
|
10
|
+
* Updated README.md to include Docker notes
|
|
11
|
+
|
|
12
|
+
## 0.7.5 (2024-12-06)
|
|
13
|
+
* Bumped dependencies: "node": "^22"
|
|
14
|
+
* Bumped dependencies: "axios": "^1.7.9"
|
|
15
|
+
* Bumped dependencies: "express": "^4.21.2"
|
|
16
|
+
|
|
8
17
|
## 0.7.4 (2024-10-19)
|
|
9
18
|
* Added pm2 describe example to the Readme file
|
|
10
|
-
* Bumped dependencies: "express": "^4.21.1"
|
|
19
|
+
* Bumped dependencies: "express": "^4.21.1"
|
|
11
20
|
|
|
12
21
|
## 0.7.3 (2024-09-17)
|
|
13
22
|
* Bumped dependencies: "axios": "^1.7.7"
|
|
14
|
-
* Bumped dependencies: "express": "^4.21.0"
|
|
23
|
+
* Bumped dependencies: "express": "^4.21.0"
|
|
15
24
|
|
|
16
25
|
## 0.7.2 (2024-08-17)
|
|
17
26
|
* Bumped dependencies: "axios": "^1.7.4"
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
FROM node:22-slim
|
|
2
|
+
|
|
3
|
+
ENV HUE_BRIDGE_IP="yourPhilipsHueBridgeIpAddress"
|
|
4
|
+
ENV HUE_USERNAME="yourPhilipsHueApiUsername"
|
|
5
|
+
ENV PORT=3000
|
|
6
|
+
|
|
7
|
+
WORKDIR /usr/src/app
|
|
8
|
+
COPY . .
|
|
9
|
+
|
|
10
|
+
# Install hueget
|
|
11
|
+
RUN npm install hueget
|
|
12
|
+
|
|
13
|
+
# Expose the API port
|
|
14
|
+
EXPOSE $PORT
|
|
15
|
+
|
|
16
|
+
# Start hueget
|
|
17
|
+
CMD ["sh", "-c", "node hueget.js -i $HUE_BRIDGE_IP -u $HUE_USERNAME -p $PORT"]
|
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ $ node /home/pi/node_modules/hueget/hueget.js -i 192.168.0.101 -u UBxWZChHseyjeF
|
|
|
84
84
|
```
|
|
85
85
|
A successful start of hueget (using the above command to specify ip address 192.168.0.100 and port 1234) will show:
|
|
86
86
|
```
|
|
87
|
-
hueget v0.7.
|
|
87
|
+
hueget v0.7.6
|
|
88
88
|
commands will be sent to 192.168.0.101 with username UBxWZChHseyjeFwAkwgbdQ08x9XASWpanZZVg-mj
|
|
89
89
|
listening on port 1234
|
|
90
90
|
```
|
|
@@ -119,6 +119,7 @@ $ pm2 describe hueget
|
|
|
119
119
|
```
|
|
120
120
|
For more information about pm2, see https://github.com/Unitech/pm2
|
|
121
121
|
|
|
122
|
+
|
|
122
123
|
# Getting your Philips Hue Bridge API Username
|
|
123
124
|
If you have [Homebridge](https://homebridge.io/), and the [homebridge-hue](https://github.com/ebaauw/homebridge-hue) plugin, look at the **users** section of the hue config. You will see the Hue bridge MAC address folowed by the Hue bridge api username
|
|
124
125
|
```
|
|
@@ -131,6 +132,21 @@ The username will look something like this:
|
|
|
131
132
|
UBxWZChHseyjeFwAkwgbdQ08x9XASWpanZZVg-mj
|
|
132
133
|
```
|
|
133
134
|
|
|
135
|
+
# Running hueget with Docker (optional, only if you use a Docker environment)
|
|
136
|
+
You can run hueget easily using Docker and Docker Compose. This approach simplifies the setup in a Docker environment and ensures hueget is isolated and always running reliably.
|
|
137
|
+
|
|
138
|
+
## Prerequisites
|
|
139
|
+
- Install [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/).
|
|
140
|
+
|
|
141
|
+
## Steps
|
|
142
|
+
1. Use the provided `HUE_BRIDGE_IP` and `HUE_USERNAME` environment variables in the `docker-compose.yml` file to configure your Philips Hue Bridge connection.
|
|
143
|
+
|
|
144
|
+
2. Build and run the Docker container:
|
|
145
|
+
```bash
|
|
146
|
+
docker compose up -d
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
|
|
134
150
|
# Reading the Status of your Hue Lights or Groups with hueget
|
|
135
151
|
Enter a URL (in the format shown below) into your browser and press Enter. The ip address is the ip address of the device running hueget, eg: a raspberry pi.
|
|
136
152
|
Examples:
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
services:
|
|
2
|
+
hueget:
|
|
3
|
+
build:
|
|
4
|
+
context: .
|
|
5
|
+
container_name: hueget
|
|
6
|
+
ports:
|
|
7
|
+
- "3000:3000"
|
|
8
|
+
environment:
|
|
9
|
+
HUE_BRIDGE_IP: "yourPhilipsHueBridgeIpAddress" # Replace with your Philips Hue bridge IP address
|
|
10
|
+
HUE_USERNAME: "yourPhilipsHueApiUsername" # Replace with your Philips Hue api username
|
|
11
|
+
restart: unless-stopped
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hueget",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "A simple API that converts the Philips Hue API PUT to GET requests, allowing control of Philips Hue lights via http GET requests",
|
|
5
5
|
"main": "hueget.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"author": "Jochen Siegenthaler (https://github.com/jsiegenthaler)",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"axios": "^1.7.
|
|
29
|
-
"express": "^4.21.
|
|
28
|
+
"axios": "^1.7.9",
|
|
29
|
+
"express": "^4.21.2",
|
|
30
30
|
"stdio": "^2.1.3"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": "^
|
|
33
|
+
"node": "^22"
|
|
34
34
|
}
|
|
35
35
|
}
|