Commit Graph

1131 Commits

Author SHA1 Message Date
LordGrey
7eeb740177
Dynamic Device Selection/Configuration (#1164) 2021-04-24 19:37:29 +02:00
LordGrey
94d9b02734
Fix 1181 - Effects were not started from tray (#1199)
* Fix 1181, add constants and defaults

* Include #1195 changes
2021-03-19 22:52:41 +01:00
LordGrey
41af5c1b9e
LEDDevices - WLED enhancements and minor fixes (#1204)
* Yeelight minor updates

* Add Timeout to REST API

* LEDDevice - Correct storeState

* Add WaitTime function

* Always show HW-LEDCount for configuration

* WLED - New features ("live" support, storing state and identification)

* Yeelight - Refactoring

* Cololight - Refactoring

* Karate - getProperties Support

* Atmo - getProperties Support

* AtmoOrb - refactoring

* Nanoleaf - Refactoring, New "Shapes" considerations

* PhilipHue - Minor corrections

* Update Changelog
2021-03-19 22:52:04 +01:00
mlaurijsse
68d06f14fe
Correct total packet count in tpm2net implementation (fix #1127) (#1128)
* Fixed calculation for _tpm2TotalPackets
2021-02-23 20:42:54 +01:00
Gerion Entrup
6a4aabd5e9
webserver/Cmake: fix out-of-tree build (#1147)
Related: #834
2021-02-23 20:41:14 +01:00
Gerion Entrup
74a6795991
Extend logging and error reporting (#1149)
- ProviderRs232: Be more verbose about correct device in error case
Rearrange Debug Information and additionalclean-ups

- Webconfig: better error description, if Kodi is not found
2021-02-23 20:40:20 +01:00
LordGrey
90d05e6c54
Custom Effects - Clean-ups and Enhancements (#1163)
* Cleanup EffectFileHandler

* Support Custom Effect Schemas and align EffectFileHandler

* Change back to colon prefix for system effects

* WebSockets - Fix error in handling fragmented frames

* Correct missing colon updates

* Update json with image file location for custom gif effects

* Image effect deletion - considere full filename is stored in JSON

* Correct selection lists indentions
2021-02-23 20:38:54 +01:00
Vincent Tavernier
9475b93d9f
Interrupt effect on timeout (#1181)
Fixes #1013
2021-02-23 20:38:26 +01:00
Paulchen Panther
45bd23ca5c
DirectX9 display change (#1191)
* Fix issue #1190

* Correct output image with size decimation used

* Correct image format (BGR -> RGB)

* Another approach
2021-02-23 20:37:59 +01:00
Gerion Entrup
6ed9553ca3
Proto*: fix Error macro conflict (#1146)
Fixes: #882
2021-02-23 14:25:32 +01:00
Chris Browet
f843b5a046
FIX: [hue] XY == 0 => bri = 0 (#1124) 2021-02-23 13:59:40 +01:00
LordGrey
9e281b2347
Fix #1186 & UI last instance error (#1188)
* Handle Arrays & Objects differently

* Fix UI error, if "last instance used" does not longer exist
2021-02-17 12:29:53 +01:00
LordGrey
77262adf3b
Fix #1131 - Global (Grabber) setting are not correctly read by non-default instances (#1186) 2021-02-11 19:45:22 +01:00
Paulchen Panther
4ff9e52ba7
[HotFix] https://git.io/Jt8S6 2021-01-29 20:17:01 +01:00
LordGrey
86ab15d18c
Cololight Improvements (#1120)
* Avoid issue with long running identify calls
* Strip provides number of LEDs now
* Consider that Strip was cut by user
2021-01-23 17:26:59 +01:00
ChR-iSz
8a028328ce
Add spidev1.0 and spidev1.1 device for Raspberry Pi WS2801 schema (#1112) 2020-12-23 23:47:06 +01:00
LordGrey
a0311bd8b5
Update schema-philipshue.json
Allow to switchOffOnBlack for Classic and Entertainment-API
2020-11-17 17:51:13 +01:00
LordGrey
efc2046ab5
Various Cleanups (#1075)
* LedDevice - Address clang findings

* Fix Windows Warnings

* Ensure newInput is initialised

* Clean-up unused elements for Plaform Capture

* Fix initialization problem and spellings

* Address clang findings and spelling corrections

* LedDevice clean-ups

* Cleanups

* Align that getLedCount is int

* Have "display" as default for Grabbers

* Fix config during start-up for missing elements

* Framegrabber Clean-up - Remove non supported grabbers from selection, filter valid options

* Typo

* Framegrabber.json - Fix property numbering

* Preselect active Grabbertype

* Sort Grabbernames

* Align options with selected element

* Fix deletion of pointer to incomplete type 'BonjourBrowserWrapper'

* Address macOS compile warnings

* Have default layout = 1 LED only to avoid errors as in #673

* Address lgtm findings

* Address finding that params passed to LedDevice discovery were not considered

* Cleanups after merging with latest master

* Update Changelog

* Address lgtm findings

* Fix comment

* Test Fix

* Fix Python Warning

* Handle Dummy Device assignment correctly

* Address delete called on non-final 'commandline::Option' that has virtual functions but non-virtual destructor

* Correct that QTimer.start accepts only int

* Have Release Python GIL & reset threat state chnage downward compatible

* Correct format specifier

* LedDevice - add assertions

* Readonly DB - Fix merge issue

* Smoothing - Fix wrong defaults

* LedDevice - correct assertion

* Show smoothing config set# in debug and related values.

* Suppress error on windows, if default file is "/dev/null"

* CMAKE - Allow to define QT_BASE_DIR dynamically via environment-variable

* Ignore Visual Studio specific files

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-11-14 17:58:56 +01:00
LordGrey
56f45a4930
Fix hostname/domain split (#1079) 2020-11-14 16:35:55 +01:00
LordGrey
d5a1e7d19d
Add additional system info (#1078) 2020-11-14 16:34:31 +01:00
LordGrey
758d9a70c5
Improve Platform Grabber UI (#1073) 2020-11-14 16:22:21 +01:00
The-Master777
0dd8e45364
Feature: Temporal Color Smoothing with variable decay-rate for long period average windows (#1043)
* Feature: Weighted Moving Average Smoothing with Decay

* fix assign

* try fix MSVC error related to always inline on static

* use proper imports for windows

* crossplatform inline declaration
2020-11-02 07:52:33 +01:00
LordGrey
83455441fa
New LED Device - Cololight (#1070) 2020-11-01 21:56:19 +01:00
LordGrey
bb652ade36
Read-Only Configuration-Database support (#1046) 2020-11-01 19:47:30 +01:00
Peter Eskdale
85a55de28c
Implement letterbox-only blackbar detection mode (#1063) 2020-11-01 19:20:27 +01:00
Paulchen Panther
958975975c
Fix reopened issue 993 (#1062) 2020-11-01 19:15:22 +01:00
Chris Browet
f7ccf9d0da
FIX: [hue] proper save state (#1014) 2020-11-01 19:14:09 +01:00
Awawa
9e4c7af5e9
Fix for sk9822 frame sufix (#1042) 2020-11-01 19:12:25 +01:00
Paulchen Panther
4928117e8e
[HOTFIX] Release Python GIL & reset threat state 2020-11-01 09:38:55 +01:00
Paulchen Panther
1d35338b83
DirectX9 Grabber (#1039) 2020-10-26 21:13:13 +01:00
LordGrey
a8492d6586
Additional information on system used (#1045)
* Allow --version, even if hyperion is already running

* Add CPU-Model to SysInfo

* Add additional CPUInfos

* Use fileUtils & RegEx on CPU-Info

* Add CPU - Hardware info

* Update changelog

* Suppress empty CPU info elements
2020-10-20 20:18:51 +02:00
LordGrey
7e370b3d8b
Fix typos (#1051)
* Fix typo in handlePriorityChangedLedDevice

* Typo

* Correct description

* Correct LedDeviceTemplate
2020-10-19 10:54:41 +02:00
LordGrey
db1dae45d2
Fix #1015 - Fix Lightpack / Remove Multi-Lightpack (#1049) 2020-10-18 19:08:54 +02:00
Demian Kellermann
8f991001c1
Allow 8-LED configuration for KarateLight (#1037) 2020-10-18 18:04:57 +02:00
The-Master777
c09061e5d8
boblight: reduce cpu time spent on memcopy and parsing rgb values (#1016) 2020-10-18 17:16:27 +02:00
Paulchen Panther
aa465c018c
Fix issues #1022, #1019, #997, #993, #992, #976, #969, #964, #980 (#1036) 2020-10-18 17:05:07 +02:00
LordGrey
5d5b24979d
Fix #1007 - LED's retain last state after clearing a source (#1008)
* Save BLACK as lastLedColor during writeBlack

* Remove debug statement overhead

* Re-Add typecasting to ensure readable output

* Revert "New language support: Russian and Chinese (simplified)"

This reverts commit 5c95fab894.

* Ignore TemporaryError
2020-09-25 20:33:11 +02:00
The-Master777
6c68454bea
Support SK9822 type LEDs with adaptive brightness control via SPI (#1017)
* Support SK9822 type LEDs with adaptive brightness control via SPI

* SK9822 - minor refactorings
2020-09-25 19:34:00 +02:00
TPmodding
f11885fd8b
lgtm fixes (#1020) 2020-09-25 17:43:46 +02:00
Murat Seker
c711d62354
Merge pull request #996 from m-seker/bugfix/995
ENABLE_AVAHI is not included in WebServer
2020-09-16 17:05:20 +02:00
Murat Seker
5e922be4d3
Fix OSX build (#952) 2020-09-14 20:37:48 +02:00
Murat Seker
be0bccea59
Return tan to API requests whenever possible (#1002)
* Return tan to API requests whenever possible

* Set default tan to value 0

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-09-14 20:09:21 +02:00
LordGrey
7a685185f4
AtmoOrb Fix (#988)
* AtmoOrb UdpSocket-Bind Fix

* Cleanup and update defaults (to work via PowerLan)

* Cleanup and update defaults (to work via PowerLan)

* AtmoOrb identification support, small updates

* AtmoOrb discovery & identification support, fixes and stability updates

* Small clean-ups

* Type fix

* Add missing include

* Adalight - Update default config and levels

* Update Atmoorb sketch

* Yeelight - Update default value
2020-09-14 17:20:00 +02:00
LordGrey
4aabe175cd
Differentiate between LED-Device Enable/Disable and Switch On/Off (#960)
* Switch Off devices, when no input source

* Realign Enable/SwitchOn, Disable/SwitchOff

* Align to updated LedDevice-Flow

* Remove debug statements slipped in

* Send last color update after enabling again

* Fix WLED getProperties API call

* Remove unused signals

* LedDevice process flow documentation

* LedDevice process flow documentation

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-09-14 17:19:14 +02:00
Murat
9204f8a313 ENABLE_AVAHI is not included in WebServer 2020-09-08 20:39:28 +02:00
Murat Seker
120a563ca0
Merge pull request #987 from m-seker/refactor/cleanup
Cleanup
2020-09-07 14:38:47 +02:00
LordGrey
31b5be39b5
Merge pull request #961 from Lord-Grey/Improve_errohandling
Improve UDP-Device Error handling
2020-09-05 15:14:22 +02:00
LordGrey
7f676a8a4a Fix #903 - Adalight 2020-09-03 19:24:05 +02:00
Murat Seker
6e039a0d83
Merge pull request #945 from m-seker/improvement/xcb
Use query interface for void returning X requests
2020-09-02 15:44:44 +02:00
Murat
0a2961a3b4 Cleanup 2020-08-31 22:07:12 +02:00
Murat Seker
71dbd77708
Merge pull request #946 from m-seker/refactor/python
Move Python related code to Python module
2020-08-31 21:10:07 +02:00
Murat Seker
bc57a45089
Merge branch 'master' into refactor/led_device 2020-08-23 21:02:25 +02:00
LordGrey
16353a5906 Improve UDP-Error handling 2020-08-09 17:43:23 +02:00
Murat
4a688b932a Const correctness, override keyword, a bunch of stuff.. 2020-08-08 23:12:43 +02:00
Murat Seker
a18ccb8b48
Refactor color utils (#955)
Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-08-08 13:22:37 +02:00
Murat Seker
c00d8e62fb
Pass primitive types by value (#935) 2020-08-08 13:09:15 +02:00
Murat Seker
5758b19cbc
Fix some LGTM warnings (#949) 2020-08-08 12:59:40 +02:00
Murat Seker
f3f07e0c82
Get rid of unnecessary computation in ImageResampler (#947) 2020-08-08 12:57:15 +02:00
Murat Seker
be329fb7bb
Fix compiler warnings (#942) 2020-08-08 12:54:30 +02:00
Murat Seker
29ee5e2c41
Fix auto generated file path (#940) 2020-08-08 12:52:49 +02:00
Murat
dd2d5e4b40 General tidy up 2020-08-08 00:21:19 +02:00
Murat
6ad511881e Move Python related code to Python module 2020-08-04 19:30:16 +02:00
Murat
54ee71a46a Use query interface for void returning X requests 2020-08-04 18:29:12 +02:00
Murat Seker
13205a9d11
Feature/xcb grabber (#912)
* Add Xcb grabber

* update compile instruction

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

* Fix problem on resolution change + Make XCB default if X11 is not avaialable

* Fix decimation problem

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
Co-authored-by: Paulchen Panther <Paulchen-Panter@protonmail.com>
2020-08-03 12:31:39 +02:00
Murat Seker
b7a9a10223
refactor: Several random fixes + Experimental playground (#917) 2020-08-02 22:37:52 +02:00
Murat Seker
d183c630c8
refactor: Resolve some clang warnings (#915) 2020-08-02 22:35:09 +02:00
Murat Seker
031b9a6b7c
refactor: Modernize Qt connections (#914) 2020-08-02 22:32:00 +02:00
Murat Seker
8824e69986
Fix some more threading errors (#911) 2020-08-02 10:44:42 +02:00
Murat Seker
d4b4158cb7
Fix logger and led colors (#906) 2020-07-27 20:00:36 +02:00
Murat Seker
e52fd7b557
Fix crash on startup X server is not available (#895) 2020-07-23 16:50:37 +02:00
Murat Seker
df0d411ba1
Fix 'Restart' RPC command (#894) 2020-07-22 18:15:39 +02:00
Murat Seker
21b0b3f2ea
Fix Qt screenhot crash (#889) 2020-07-22 16:46:43 +02:00
Murat Seker
126c18e003
Fix some data races (#890) 2020-07-22 16:43:24 +02:00
Murat Seker
6362cfcc1b
Decrease compile time (#886) 2020-07-21 19:35:25 +02:00
Murat Seker
c124e2136a
Feature/CEC detection (#877)
* Add CEC functionality

* Initial commit

* removed libCEC from the system skip list

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-07-20 20:06:41 +02:00
Murat Seker
95688c0f1e
Some optimizations (#880) 2020-07-19 16:14:54 +02:00
Murat Seker
4880e31562
Make logger thread safe (#885) 2020-07-19 15:37:47 +02:00
LordGrey
45303e1b64
Fix "Timers cannot be stopped from another thread" during shutdown (#876) 2020-07-19 15:13:41 +02:00
Murat Seker
c85b4c530c
Don't use exceptions as part of normal flow (#872) 2020-07-19 14:44:59 +02:00
LordGrey
7389068a66
LED Device Features, Fixes and Refactoring (Resubmit PR855) (#875)
* Refactor LedDevices - Initial version
* Small renamings
* Add WLED as own device
* Lpd8806 Remove open() method
* remove dependency on Qt 5.10
* Lpd8806 Remove open() method
* Update WS281x
* Update WS2812SPI
* Add writeBlack for WLED powerOff
* WLED remove extra bracket
* Allow different Nanoleaf panel numbering sequence (Feature req.#827)
* build(deps): bump websocket-extensions from 0.1.3 to 0.1.4 in /docs (#826)
* Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
  - [Release notes](https://github.com/faye/websocket-extensions-node/releases)
  - [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
  - [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)
* Fix typos
* Nanoleaf clean-up
* Yeelight support, generalize wizard elements
* Update Yeelight to handle quota in music mode
* Yeelight extend rage for extraTimeDarkness for testing
* Clean-up - Add commentary, Remove development debug statements
* Fix brightnessSwitchOffOnMinimum typo and default value
* Yeelight support restoreOriginalState, additional Fixes
* WLED - Remove UDP-Port, as it is not configurable
* Fix merging issue
* Remove QHostAddress::operator=(const QString&)' is deprecated
* Windows compile errors and (Qt 5.15 deprecation) warnings
* Fix order includes
* LedDeviceFile Support Qt5.7 and greater
* Windows compatibility and other Fixes
* Fix Qt Version compatability
* Rs232 - Resolve portname from unix /dev/ style, fix DMX sub-type support
* Disable WLED Wizard Button (until Wizard is available)
* Yeelight updates
* Add wrong log-type as per #505
* Fixes and Clean-up after clang-tidy report
* Fix udpe131 not enabled for generated CID
* Change timer into dynamic for Qt Thread-Affinity
* Hue clean-up and diyHue workaround
* Updates after review feedback by m-seker
* Add "chrono" includes
2020-07-12 20:27:56 +02:00
Murat Seker
3b48d8c9d6
Dump stack trace on crash (Implement #849) (#870)
* Print stack trace on crash

* Printing stack trace is fully functional except for WIN32

* Minor fixes

* Minor fixes
2020-07-12 18:27:24 +02:00
SJunkies
9110b3e690
DBManager: ORDER BY parameter added to getRecord(s) (#770)
-> All instances are now sorted in ascending order using the instance ID
-> The web interface gets an incorrect instance order, which causes further problems
2020-07-12 11:04:16 +02:00
Paulchen Panther
8c188d71d9
Embedded python package (zip) for Linux (#871)
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
2020-07-12 09:26:28 +02:00
Murat Seker
c32a4df587
Bugfix/resolution change event Fixes part of #620 (#867)
* Detect resolution changes

* include Qt5Widgets

* find Qt5Widgets

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
2020-07-12 09:23:13 +02:00
Murat Seker
69561aea9d
Fix some leaks (#863) 2020-07-12 09:22:05 +02:00
Murat Seker
dd98e245fe
Fix heap corruption (#862) 2020-07-12 09:20:58 +02:00
Murat Seker
138b7d9c94
Random cleanup (#861)
Co-authored-by: Seker <murat.seker@barco.com>
2020-07-12 09:19:59 +02:00
Murat Seker
45990f2726
fix: leaking active effects during quit (#850) 2020-06-28 23:46:36 +02:00
Murat Seker
485beab4f3
refactor: show thread names in GDB for better debugging (#848) 2020-06-28 23:43:45 +02:00
Murat Seker
a68ed7d44f
fix: Delete order of threads (#846)
* Fix #668 by fixing delete order of threads

* update changelog

Co-authored-by: Sersch <edeltraud70@gmx.de>
2020-06-28 23:42:57 +02:00
Murat Seker
db8b872217
feat: Delay M-SEARCH response by a random value according to MX header (#844) 2020-06-28 23:19:06 +02:00
Murat Seker
458113f8f9
refactor: Improve utils code style (#841)
* Improve utils code style

* Fix indendation

Co-authored-by: brindosch <edeltraud70@gmx.de>
2020-06-28 23:12:22 +02:00
LordGrey
bfb50b8d91
refactor: Address (Windows) compile warnings (#840)
* Windows compile errors and (Qt 5.15 deprecation) warnings

* Usability - Enable/Disable Instance button

Co-authored-by: brindosch <edeltraud70@gmx.de>
2020-06-28 23:05:32 +02:00
heikobihr
e365a2839d
fix: Windows serialport detection (fix #836) (#837)
* use QSerialPortInfo do detect presence of a serial port (fix #836)

* checking for existence of device file does not work on windows
* instead: construct QSerialPortInfo from device name and check, if it is not null
  When constructing QSerialPortInfo from device name, this constructor finds the
  relevant serial port among the available ones according to the port name name,
  and constructs the serial port info instance for that port.
  (https://doc.qt.io/qt-5/qserialportinfo.html#QSerialPortInfo-2)

* serial port: set device in error with a failure text, if device name is invalid

Co-authored-by: heiko <heiko@bihr.internal>
2020-06-28 22:45:43 +02:00
Paulchen Panther
f9f32c6cff
[HOTFIX] Python module path (Windows)
The pythonPath pointer was not properly enlarged when expanded.
Reduced to the return of Py_DecodeLocale.
This sets the correct size of the pointer at the beginning.
2020-06-28 16:08:19 +02:00
Serhan
5eb45e857f
Merge pull request #829 from Lord-Grey/Update_LedDevices
Update led devices(LPD8806 + Nanoleaf)
2020-06-17 21:38:24 +02:00
Paulchen Panther
aa55edf5a7
Reset/V4L2/Systemd/rpi_ws281x/Profiler (#820) 2020-06-17 20:59:26 +02:00
Paulchen Panther
756247aa1e
V4l2 input (#825) 2020-06-17 20:55:57 +02:00
LordGrey
e30a9d263d Nanoleaf Feature Request #827 2020-06-12 11:16:39 +02:00
LordGrey
7d354aa72d Fix LedDeviceLpd8806 2020-06-11 23:10:22 +02:00