16 Commits

Author SHA1 Message Date
902f88bb24 Feat: Add image send logging
Added a qDebug() statement in hgx11::_sendImage() to log when an image
is created and an attempt is made to send it to the Hyperion server.
This will help determine if the image grabbing and sending pipeline is
active.
2025-08-14 02:49:34 +02:00
cd9a45c4f6 Feat: Add logging for outgoing JSON commands
Added a qDebug() statement in hgx11net::_sendCommand() to log the JSON
command string just before it is sent to the Hyperion server. This
will help in debugging why no results are appearing on the Hyperion
end, by confirming if commands are being sent and what their content is.
2025-08-14 02:47:38 +02:00
b6239241c9 Fix: Malformed JSON due to incorrect priority string construction
The JSON output sent to the Hyperion server was malformed, specifically
the "priority" field, leading to an "unterminated object" error.
This was caused by the _hyperionPriority_m variable (and
subsequently _priority_m in hgx11net) containing the literal
"priority:" string, which was then redundantly added during JSON
string construction.

This commit modifies:
- hgx11.cpp: To store only the numerical priority value in
  _hyperionPriority_m.
- hgx11net.cpp: To explicitly add the "priority:" key during JSON
  string construction in all relevant functions (clearLeds,
  setLedColor, _colorAdjustment, _thresholdAdjustment,
  _transformdAdjustment, _temperatureAdjustment, and _setImgSize).

This ensures that the generated JSON is correctly formatted.
2025-08-14 02:26:06 +02:00
kevin
961afd2d9a Adds the Hyperion priority option. 2020-11-22 11:38:49 -05:00
kevin
7714250646 Minor fixes / improvements. 2020-11-22 09:44:44 -05:00
kevin
46581fcab9 Wrong key name. 2019-06-27 08:14:45 -04:00
kevin
44ec8d98cf Add option to change X11 scaling filter 2019-06-27 08:12:57 -04:00
kevin
ed7ba36704 Block until image data is sent to Hyperion.
This prevents the socket buffer to overflow if the connection is too slow.
2019-06-27 07:43:15 -04:00
kevin
e68da0a4cc Add a new method for determining user inactivity.
Fix some bugs.
2019-06-26 19:15:32 -04:00
kevin
3f2c055515 Slightly optimize performance by caching some variables and frameskipping in the damage loop. 2019-06-24 15:57:32 -04:00
kevin
39235f1df3 More refactoring. 2019-06-23 13:30:01 -04:00
kevin
ad3fc52f43 Refactor 2019-06-23 13:17:00 -04:00
kevin
c4cc927df7 Only convert this variable once to int. 2019-06-23 12:49:06 -04:00
kevin
d39d4a687c Add functions / arguments to adjust LED's 2019-06-23 12:36:27 -04:00
kevin
acafd14ec2 Properly reconnect to Hyperion server on disconnects. 2019-06-23 01:02:34 -04:00
kevin
4aa7578cf7 Adding files 2019-06-22 22:34:40 -04:00