Commit Graph

1834 Commits

Author SHA1 Message Date
brindosch
5553199cc4 Feat: Close connection if ext clients when def pw is set 2019-08-30 18:49:38 +02:00
brindosch
1e4c29dacb Merge remote-tracking branch 'hyperion-project/master' into userauthapi 2019-08-30 00:15:31 +02:00
brindosch
034bd164a2 Add userToken Auth 2019-08-29 18:17:06 +02:00
brindosch
7f444a5a92 Refactor JsonCB class 2019-08-29 02:37:07 +02:00
Paulchen Panther
782d44b81b
[Bugfix] V4L2 used screen resolution for fallback
https://hyperion-project.org/threads/ng-hyperion-v4l2-capture-resolution-issue.3684/#post-15959
2019-08-28 22:20:49 +02:00
brindosch
83806c6361 Js apis 2019-08-25 18:22:42 +02:00
brindosch
10b853c990 add short cmd for userdata 2019-08-25 17:58:29 +02:00
brindosch
d0a0052e1d enable administration restriction 2019-08-25 17:44:20 +02:00
brindosch
227f60496d resetPassword rework 2019-08-25 17:39:08 +02:00
brindosch
b1fa085d64
Breaking Change: ledLayout, ledColorsStream (#614)
* Remove clone & index in ledConfig

* Additional index correction

* Rename ledsConfig maximum and minimum in max and min

* Rename ledsConfig hscan and vscan with h and v

* Optimize ledColorsStream

* tiny correction
2019-08-25 16:32:19 +02:00
Paulchen Panther
24495bbc65 Fix #604, #605 ... (#607)
* Fix #604 and #605

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* clear current prio on color command

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* Fix QTimer threading issues

* Call QTimer start() stop() from QEvent

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* send initial color/image to WebUI
hide error message when opening webbrowser

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* added streaming timer to update WebUI Preview

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* remove QMetaObject::invokeMethod()

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* added parent to streaming timers

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>

* header cleanup
2019-08-24 22:53:30 +02:00
brindosch
5f48a007be Push progress
TODO: rework RESET, probably to main.cpp again
2019-08-23 18:37:04 +02:00
Paulchen Panther
c419f305f3
Merge pull request #613 from b1rdhous3/patch-1
Update 3rd party license (roboto font)
2019-08-23 17:12:07 +02:00
b1rdhous3
8e35bdc4d3
Update 3rd party license (roboto font)
Add Roboto Font License
2019-08-22 09:40:12 +02:00
b1rdhous3
18d6345968 WebUi: New Internet API logic, correct switch to last instance after refresh, current instance notification (#608)
* Added new restricted ip api checkbox, initial instance localStorage support

* Added instance notification, added correct instance switch after page refresh (to last current instance)

* Optimize intention in wizard.js

* ":" from i18n json to code

* Changes for Responsive about site
2019-08-21 17:46:49 +02:00
Paulchen Panther
1093278d16
Merge pull request #606 from Paulchen-Panther/v4l2
V4L2 Grabber fixes
2019-08-21 17:45:29 +02:00
brindosch
032aa0b14c
Update jquery.i18n.fallbacks.js
Fallback in chrome now working, strange hotfix. Might be more issues with other langs
2019-08-21 16:15:55 +02:00
brindosch
09ee8f26ee
Feat: Add image sender to webui + Browser screen capture (#611)
* Feat: Add image sender to webui

This PR adds a new image sending feature to the webui and extends the api accordingly. In javascript the processing of images is horrible slow (without WASM), so the solution is at the API side with out-of-the-box power of Qt.

- The image cmd accepts now a raw image that is encoded with base64. Supported are all image formats that qt supports (enough)
- There is no real size limit. It will be automatically scaled down to max 2000px width or height according to aspect ratio
- It's possible to scale down through a new "scale" property if developer wants that.
- Test were successfull until 3MP pictues, 4k+ closes the websocket on browser side, so 2k is a decent value
- Adds a new image streaming feature from browser (tabs/applications/complete desktop as target). This works just if used with HTTPS PR#612 AND with a recent version of Firefox/Chrome
2019-08-21 16:10:35 +02:00
brindosch
8e5f3251b5
Feat: Add SSL support for webserver + websocket (#612)
* Feat: Add SSL support for webserver + websocket

Finally, Hyperion reaches the SSL century!
- Uses by default a internal key and certificate to provide working HTTPS out-of-the-box
- Your browser won't like that, for a green ssl seal next to the browser address bar you need to use Let's Encrypt with a own legit domain. This is out of the scope of Hyperion
2019-08-21 16:09:28 +02:00
Andreas Ganske
fe12b36fce Make origin in schema-image optional (#610)
* Make origin in schema-image optional

... like in `color` and `effect` schemes.

* use origin if available
2019-08-19 20:25:16 +02:00
Paulchen Panther
beb9454a1f
Merge pull request #598 from Portisch/destructor
fix warning: throw will always call terminate
2019-08-18 20:02:31 +02:00
brindosch
d3f45e7ae5
Feat: SSDP discovery for hyperion-remote (#602)
* Auto stash before merge of "log" and "hyperion-project/master"

* resolve merge tool mess
2019-08-17 09:44:57 +02:00
Paulchen-Panther
0bb51d7e9c
V4L2 Grabber fixes
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-16 20:05:30 +02:00
LordGrey
c4d0edd9c2 Handle Exceptions in main & Pythoninit (#601) 2019-08-15 23:49:32 +02:00
b1rdhous3
7e295a715f WebUi: Beauty Tweaks (Instance, 3rd party Licenses) (#597)
* WebUi: Instance Management Tweaks and Chars Needed Information

* WebUi: 3rd Party Licenses Tweaks

* WebUi: Apply changes from Brindosch PR #596

* WebUi: Changing i18n tokens and adding catch event for connection error

* WebUi: Adding Link to GitHub License Ressource if an error is catched
2019-08-15 23:48:13 +02:00
brindosch
9d84cdea0c
Fix: SSDP Server spec adjust (#599)
* Fix: SSDP Server spec adjust
- Fix: Windows 7 network overview no longer removes the Hyperion entry
- Fix: The general section should be marked as global
2019-08-14 21:19:05 +02:00
Portisch
f03d72be79 fix warning: throw will always call terminate 2019-08-14 12:45:01 +02:00
brindosch
d190e6f294
Add hyperion-remote instance cmd (#596)
* Add hyperion-remote instance cmd

- Adds a new command to hyperion-remote that allows the selection of a instance by name
- Fixed broken umlauts
- Fixed wrong text placement inside icon tags

* Add warning if selected instance is not found
2019-08-13 23:22:06 +02:00
Paulchen-Panther
034f821d46
Multiple log messages are now summarised
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-13 20:41:01 +02:00
Serhan
d8c0922a2e
Merge pull request #594 from Lord-Grey/master
Correct device name list
2019-08-13 17:27:23 +02:00
LordGrey
b45cea9267 Correct device name list 2019-08-12 21:00:59 +02:00
Paulchen-Panther
a8a6113517
If the priority range of a proto / flatbuffer connection is not in the valid range (100 - 199) we will send an error message to the client as well as in the console output
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-12 19:06:11 +02:00
Paulchen Panther
0f839f670e
Merge pull request #593 from maximkulkin/fix-rpi-pwm
[Hotfix] Fix RPI WS281x LED device initialization
2019-08-12 16:50:27 +02:00
Maxim Kulkin
9f9f133f16 Fix RPI WS281x LED device initialization 2019-08-12 00:35:22 -07:00
Paulchen Panther
c62ea87ab7
Merge pull request #578 from Paulchen-Panther/api_auth
Token Management, Database, ...
2019-08-11 23:25:06 +02:00
Paulchen Panther
23b21882f2
Merge pull request #589 from bennealon/post_inst_service_failure_for_multiple_users
Debian post-inst script fails to correctly create system service when multiple users are present
2019-08-11 23:23:37 +02:00
Paulchen Panther
af2646ea48
Merge pull request #580 from Lord-Grey/master
Allow to switch on LED device, if currently disabled
2019-08-11 19:02:22 +02:00
Ben Nealon
cc538b60fd Revert "Moving to whoami fixes ambiguity on a multi-user system"
This reverts commit 18f615f08c.
2019-08-10 11:30:08 +01:00
Ben Nealon
18f615f08c Moving to whoami fixes ambiguity on a multi-user system 2019-08-10 09:54:14 +01:00
Ben Nealon
ab4fa88ad6 Updating debian and rpm pre/make/post scripts to not be greedy. 2019-08-07 15:10:51 +01:00
Ben Nealon
763345969b Fix: multiple users returned by 'who'.
Grep being greedy causes an invalid FOUND_USER string be created,
thus system service is created correctly.
2019-08-07 14:39:18 +01:00
Paulchen-Panther
2f7b90de10
Fixed modal bug when renaming instances
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-05 20:44:44 +02:00
Paulchen-Panther
3dee474356
Instance names can now be renamed on the WebUI (incl. inst 0)
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-04 20:19:33 +02:00
b1rdhous3
a080c7151d Moved Token Management to Network Setting
* Moved Token Management to Network Settings

* Fixed alignment of Token Settings Div if Help Tables are switched off

* Added Chars counter, new format of the div panel (footer), change i18n

* Added Explanation for Token Management

* Moved Token Management to Network Settings

* Fixed alignment of Token Settings Div if Help Tables are switched off

* Added Chars counter, new format of the div panel (footer), change i18n

* Added Explanation for Token Management

* i18n Fix

* Revert "i18n Fix"

This reverts commit 0186290689d8b140310d5376617a3d43429bb632.

* i18n Fix
2019-08-04 16:16:39 +02:00
Paulchen-Panther
0733d01e86
Updated submodule flatbuffers/rpi_ws281x to latest master
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-03 20:14:27 +02:00
Paulchen Panther
8d5f67fea7
changed Instance Management icon 2019-08-03 19:14:52 +02:00
Paulchen-Panther
05a4f53fa2
EffectModule::getEffect() is now a preprocessor directive
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-03 19:14:52 +02:00
Paulchen Panther
0f96fdaa61
[Hotfix] The modified priority was not registered 2019-08-03 19:14:52 +02:00
Paulchen-Panther
cacfbada7a
The WebUI remote page has been rearranged
Set interuption flag to running effects when hyperion emits finished signal
Protobuffer, Flatbuffer and Boblight connection priority check to avoid unwanted program behavior

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-03 19:14:52 +02:00
Paulchen-Panther
2e8014bdbb
Conditions with priority 255 removed in Boblight
Signal/Slot connection finished/deleteLater removed between HyperionDeamon/HyperionIManager

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2019-08-03 19:14:52 +02:00