-
Notifications
You must be signed in to change notification settings - Fork 3
Introduce permanent storage and random user tokens #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Maschina
wants to merge
14
commits into
tim-hellhake:master
Choose a base branch
from
Maschina:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2bd7754
Ts-node-dev +++ Start scripts for VS Code
Maschina 6ae3927
Hue Storage class +++ Add whitelisted username to Hue Storage file
Maschina 7c684da
Middleware for user authentification
Maschina dddfcbf
Controller and routes for Hue lights +++ Some refactoring
Maschina 5c380e5
Update README.md
Maschina 2b3c7a0
Update README.md
Maschina d8b4c0a
Create LICENSE
Maschina 7c7b58a
Merge pull request #2 from Maschina/add-license-1
Maschina 12717db
LICENSE.md
Maschina 1eeeee8
Update README.md
Maschina 8a99b0b
Controller and routes for Hue groups
Maschina 0b27030
Controller and routes for Hue scenes
Maschina 0a2d780
Insomnia collection for debugging
Maschina c967bde
Readme update
Maschina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| node_modules | ||
| lib | ||
| dist | ||
| .vscode | ||
| hue.json | ||
| package-lock.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"_type":"export","__export_format":4,"__export_date":"2021-04-14T20:30:22.423Z","__export_source":"insomnia.desktop.app:v2021.2.2","resources":[{"_id":"req_e583591e03c34937936c50ab2a1afaf8","parentId":"fld_9c27cdb6d26b4977b48500437245f8a6","modified":1617802927810,"created":1617780780384,"url":"{{host}}/api","name":"Create user","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"devicetype\": \"testuser\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_fcb68eafa3a844cb8e77bbe77148275a"}],"authentication":{},"metaSortKey":-1617780780384,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_9c27cdb6d26b4977b48500437245f8a6","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1608933738481,"created":1608933738481,"name":"Config","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1608933738481,"_type":"request_group"},{"_id":"wrk_f4e45eadf6584a95991eb28e38af5375","parentId":null,"modified":1607286293146,"created":1607285917895,"name":"Hue API","description":"","scope":"collection","_type":"workspace"},{"_id":"req_dc79184c6c7444709b0e6692f31590f8","parentId":"fld_9c27cdb6d26b4977b48500437245f8a6","modified":1611614372104,"created":1611508499534,"url":"{{ host }}/description.xml","name":"description.xml","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1611508499534,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c3d2cad4798f43178b48494e5f345297","parentId":"fld_9c27cdb6d26b4977b48500437245f8a6","modified":1611518483149,"created":1608933749891,"url":"{{host}}/api/{{user}}/config","name":"Get configuration","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1608933749891,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f4307915e54a43f8b931946bb7f40bac","parentId":"fld_9c27cdb6d26b4977b48500437245f8a6","modified":1617180116945,"created":1617180113400,"url":"{{host}}/api/config","name":"Get configuration (unknown user)","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1608933749866,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f3dbea1e4c3b468caa77d9aa7c5ae5f7","parentId":"fld_9c27cdb6d26b4977b48500437245f8a6","modified":1611518561511,"created":1607286381012,"url":"{{host}}/api/{{user}}","name":"Get full state (datastore)","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1608933749841,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3cb619d7c05c4ddfa1566d41eed17785","parentId":"fld_a9b215a5c0be4f26a41b5f64329b7169","modified":1618430925273,"created":1618430833459,"url":"{{host}}/api/{{user}}/scenes","name":"Create scene","description":"","method":"POST","body":{"mimeType":"application/json","text":"{ \n \"name\": \"Cozy dinner\", \n \"recycle\": false, \n \"group\": \"2\", \n \"type\": \"GroupScene\"\n} "},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_d29509bf41824535b017214511a3606a"}],"authentication":{},"metaSortKey":-1618430833459,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_a9b215a5c0be4f26a41b5f64329b7169","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607286800345,"created":1607286800345,"name":"Scenes","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1607286800345,"_type":"request_group"},{"_id":"req_0564ef227c964bcf9fb8b6d728f3ba84","parentId":"fld_a9b215a5c0be4f26a41b5f64329b7169","modified":1618432135894,"created":1618428889816,"url":"{{host}}/api/{{user}}/scenes/8xqxsh0cWR3Vi12","name":"Get scene attributes and state","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1618428889816,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3070708654e8477aa67a8a2524639723","parentId":"fld_a9b215a5c0be4f26a41b5f64329b7169","modified":1616160664863,"created":1607286808470,"url":"{{host}}/api/{{user}}/scenes","name":"Get all scenes","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286808470,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_77d0043bec734b95b3c7e048e5ff85fd","parentId":"fld_a9b215a5c0be4f26a41b5f64329b7169","modified":1618430843615,"created":1618430807500,"url":"{{host}}/api/{{user}}/scenes/1","name":"Delete scene","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286808420,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_0f7a2514d0204742bd044ff3bbce8f5c","parentId":"fld_bcb438d586e245839562aa46bef24593","modified":1618430839786,"created":1618427039103,"url":"{{host}}/api/{{user}}/groups","name":"Create group","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"name\": \"FooRom\",\n\t\t\"type\": \"Room\",\n\t\t\"class\": \"Other\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_e47c5166bf034bc4a9810630e27b44a4"}],"authentication":{},"metaSortKey":-1618427091766,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_bcb438d586e245839562aa46bef24593","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607286754492,"created":1607286754492,"name":"Groups","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1607286754492,"_type":"request_group"},{"_id":"req_2df977add89d4fd9af31216caa5f97c2","parentId":"fld_bcb438d586e245839562aa46bef24593","modified":1611518500455,"created":1607286771632,"url":"{{host}}/api/{{user}}/groups","name":"Get all groups","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286771632,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_33218c1b1f7341d6b92c578739d30f4c","parentId":"fld_bcb438d586e245839562aa46bef24593","modified":1618427169961,"created":1610144907315,"url":"{{host}}/api/{{user}}/groups/0","name":"Get group attributes and state","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286754686,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ce727d78416f4206bf56abb22cb85f4d","parentId":"fld_bcb438d586e245839562aa46bef24593","modified":1618430845975,"created":1618427091716,"url":"{{host}}/api/{{user}}/groups/1","name":"Delete group","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286754636,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_0860626b68a2468ea2a93c2901f752a9","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1617822489095,"created":1617822483252,"url":"{{host}}/api/{{user}}/lights","name":"Search new lights","description":"","method":"POST","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1617822483252,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_6bbdb0bf5b884424935bb474898e39b2","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607286692923,"created":1607286692923,"name":"Lights","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1607286692923,"_type":"request_group"},{"_id":"req_aed80baf2c17446897e0ca1d1ec13d64","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1617826475221,"created":1617826454931,"url":"{{host}}/api/{{user}}/lights/new","name":"Get new lights","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1617801631818,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2c0ba2e59f804dcfbb8a8e4452bc962f","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1611518523313,"created":1607286703848,"url":"{{host}}/api/{{user}}/lights","name":"Get all lights","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286905020,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9ca5a68061c342298c29a953cbf23ad4","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1618083462196,"created":1607286904970,"url":"{{host}}/api/{{user}}/lights/0","name":"Get light attributes and state","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286904970,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_35aebfec1de24dc29a3be0010e23710d","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1618259698027,"created":1609327797786,"url":"{{host}}/api/{{user}}/lights/11/state","name":"Set light state","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n \"on\": true,\n \"bri\": 200\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_fbd75d3731854290a07a690d45afef96"}],"authentication":{},"metaSortKey":-1607286856720,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3ec5d441f22740b09de2ff114b94a03b","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1618085232121,"created":1618083686719,"url":"{{host}}/api/{{user}}/lights/3","name":"Set light attribute (rename)","description":"","method":"PUT","body":{"mimeType":"application/json","text":""},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_fbd75d3731854290a07a690d45afef96"}],"authentication":{},"metaSortKey":-1607286832595,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_cc8cd8d7cb794332bb0d841247adb579","parentId":"fld_6bbdb0bf5b884424935bb474898e39b2","modified":1618430848756,"created":1618206806534,"url":"{{host}}/api/{{user}}/lights/3","name":"Delete light","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1607286832545,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_f0e6328cf4dcee429fa288c24a715b9ef79fa041","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607286129322,"created":1607285917950,"name":"Base Environment","data":{"host":"192.168.2.108/api"},"dataPropertyOrder":{"&":["host"]},"color":null,"isPrivate":false,"metaSortKey":1607285917950,"_type":"environment"},{"_id":"jar_f0e6328cf4dcee429fa288c24a715b9ef79fa041","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607285917952,"created":1607285917952,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_9c3bf55fa96e41559213e002e0a920ce","parentId":"wrk_f4e45eadf6584a95991eb28e38af5375","modified":1607285917900,"created":1607285917900,"fileName":"Hue","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_21e43374b0d4440d859f0756ef00f9f4","parentId":"env_f0e6328cf4dcee429fa288c24a715b9ef79fa041","modified":1618260598096,"created":1617783513399,"name":"Emulator","data":{"host":"http://127.0.0.1","user":"s7qf03cwlr0ipx63hei14t0i38him"},"dataPropertyOrder":{"&":["host","user"]},"color":"#e4cf62","isPrivate":false,"metaSortKey":1617783513400,"_type":"environment"}]} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an updated
package-lock.json.