Skip to content

Commit

Permalink
add easter egg (#998)
Browse files Browse the repository at this point in the history
* Update discover.py

* Update configHandler.py

* end wake up

* Update v2restapi.py

Add behavior instance to clip/v2/resource, to solve problem as in issue 873, now the app shows the automations

* wrong response

* add all buttons to response

* Update discover.py

Fix issue where lights with the same mac address but different modelid get the same ip address

* update wake-up

fix error "Exception while processing the schedule X | 'turn_lights_off_after'" if "turn_lights_off_after" is not specified

* fix add light in hue app

* Update requirements.txt

* Update requirements.txt

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update requirements.txt

* Update requirements.txt

* Update Dockerfile

* Update requirements.txt

* Update Dockerfile

* revert to old working

* Update Dockerfile

* Add identify request, non standard gateway, update version and api

* add easter egg

* Update Credits.py
  • Loading branch information
hendriksen-mark committed Feb 18, 2024
1 parent 2db6a0b commit 571a0e3
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BridgeEmulator/HueEmulator3.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from flaskUI.restful import NewUser, ShortConfig, EntireConfig, ResourceElements, Element, ElementParam, ElementParamId
from flaskUI.v2restapi import AuthV1, ClipV2, ClipV2Resource, ClipV2ResourceId
from flaskUI.espDevices import Switch
from flaskUI.Credits import Credits
from flaskUI.error_pages.handlers import error_pages
from werkzeug.serving import WSGIRequestHandler
from functions.daylightSensor import daylightSensor
Expand Down Expand Up @@ -59,6 +60,8 @@ def request_loader(request):

return user

### Licence/credits
api.add_resource(Credits, '/licenses/<string:resource>', strict_slashes=False)
### ESP devices
api.add_resource(Switch, '/switch')
### HUE API
Expand Down
151 changes: 151 additions & 0 deletions BridgeEmulator/flaskUI/Credits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
from flask_restful import Resource

class Credits(Resource):
def get(self, resource):
if resource == "packages.json":
response = [
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/mariusmotea",
],
"licenses": {
"Main Developer & Mastermind of DiyHue":""
},
"Version": "",
"Package": "Marius",
"Website": "https://github.com/mariusmotea"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/cheesemarathon",
],
"licenses": {
"Github & CI/CD Wizard":""
},
"Version": "",
"Package": "cheesemarathon",
"Website": "https://github.com/cheesemarathon"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/Mevel",
],
"licenses": {
"Maintainer & Support":""
},
"Version": "",
"Package": "Mevel",
"Website": "https://github.com/Mevel"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/fisico",
],
"licenses": {
"Designed and developed the user interface":""
},
"Version": "",
"Package": "David",
"Website": "https://github.com/fisico"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/philharmonie",
],
"licenses": {
"React consultant":""
},
"Version": "",
"Package": "Phil",
"Website": "https://github.com/philharmonie"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/hendriksen-mark",
],
"licenses": {
"Maintainer & Support":""
},
"Version": "",
"Package": "Mark",
"Website": "https://github.com/hendriksen-mark"
},
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/diyhue/diyHue/graphs/contributors",
],
"licenses": {
"A big thank you to everyone contributing to this project":""
},
"Version": "",
"Package": "Thank you!",
"Website": "https://github.com/diyhue/diyHue/graphs/contributors"
}
]
return response
elif resource == "hardcoded.json":
response = [
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/diyhue/diyHue",
],
"licenses": {
"Main diyHue software repo":""
},
"Version": "",
"Package": "DiyHue",
"Website": "https://github.com/diyhue/diyHue"
}
]
return response
elif resource == "rust-packages.json":
response = [
{
"Attributions": [],
"SPDX-License-Identifiers": [
""
],
"SourceLinks": [
"https://github.com/diyhue",
],
"licenses": {
"diyHue repositories":""
},
"Version": "",
"Package": "DiyHue Repositories",
"Website": "https://github.com/diyhue"
}
]
return response

0 comments on commit 571a0e3

Please sign in to comment.