* - add more drawing func to effect engine
- make provider rs232 less noisy
- json checks: remove utf8 conversion temporarly and make it compat with py3 again
* fix compile prob
* Adding support for sk6822 timing
This isnt complete, but should be a good starting point for others to learn from.
1) Here is where the led device source is located:
cd libsrc/leddevice
2) Find the files that need changing:
root@loungepi:libsrc/leddevice# grep -ri 2812spi *
CMakeLists.txt: ${CURRENT_SOURCE_DIR}/LedDeviceWs2812SPI.h
CMakeLists.txt: ${CURRENT_SOURCE_DIR}/LedDeviceWs2812SPI.cpp
LedDeviceFactory.cpp: #include "LedDeviceWs2812SPI.h"
LedDeviceFactory.cpp: REGISTER(Ws2812SPI);
LedDeviceSchemas.qrc: <file alias="schema-ws2812spi">schemas/schema-ws2812spi.json</file>
LedDeviceWs2812SPI.cpp:#include "LedDeviceWs2812SPI.h"
LedDeviceWs2812SPI.cpp:LedDeviceWs2812SPI::LedDeviceWs2812SPI(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp:LedDevice* LedDeviceWs2812SPI::construct(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp: return new LedDeviceWs2812SPI(deviceConfig);
LedDeviceWs2812SPI.cpp:bool LedDeviceWs2812SPI::init(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp:int LedDeviceWs2812SPI::write(const std::vector<ColorRgb> &ledValues)
LedDeviceWs2812SPI.h:class LedDeviceWs2812SPI : public ProviderSpi
LedDeviceWs2812SPI.h: LedDeviceWs2812SPI(const QJsonObject &deviceConfig);
3) Copy the existing files as a starting point:
cp LedDeviceWs2812SPI.cpp LedDeviceSk6822SPI.cpp
cp LedDeviceWs2812SPI.h LedDeviceSk6822SPI.h
cp schemas/schema-ws2812spi.json schemas/schema-sk6822spi.json
4) Do some search and replacing:
:%s/Ws2812SPI/Sk6822SPI/g
5) edit the other files (see the diffs in this commit)
* Added wait time and reset time
* Fixed up debugging output and commented it out.
* fix/refactor backlight stuff:
- fix colors dont turn of when backlight 0 and black is set
- add option to use not colored backlight
- fix colored backlight not colored on very low color values
- various code style tunings
* apply needed change to wizard
* backlight disabled on static color and efects
* fix warnings
* try fix udp compiler warnings
* - disable device when error indecates that the problem is not solvable on reconnect
- introduce a preOpenDelay of 2 seconds (currently value is hardcoded)
* rs232:
- make preOpenDelay available via webui
- fix preOpenDelay
- add basic usb serial detection
* - revert 3819ae7
- fix schema files
* make json checks compat with utf8+bom
* make shutdown effect a bit more flexible
* implement 404 for webserver - this is a quick hack, should be refactored later
* add http error pages ... design is more a placebo ;-)
* tune errorpages
fix some cgi related stuff, now only python is possible
executing and reading python file is possilbe, but it cannot receive any data from webui
* fix typo
* fix another typo
* implement config save over http post instead of json
* remove json set config
finish config write thrugh http post
* remove debug code and add failure messages
* fix save issue with white spaces
* implement config save over http post instead of json
* remove json set config
finish config write thrugh http post
* remove debug code and add failure messages
* - fix coloradjustment via hyperion remote
- several small cleanups/refactorings
* fix color is shown as unknown in json serverinfo
* fix active color is not shown when autoselect is reactivated
* add new rgbtransform
* activate rgbtransform
* integrate new transform and gamma in adjustment, disable transform
* fix brighness limit
* advance upper and lower thresholds
* start removing color transform
* adjust configs/schema
* implement json for new color adjustment
* finish hyperion-remote extension for new adjustment settings
* fix typos
* rename luminance to brightness
fix jsonapi for new adjustment
* fix some bugs in adjustments
* fix i18n
* fix gamma via json
* now brighness values goes from 0-1 with 0.5 is the default for all brighness is equal between the channels. less 0.5 all channels scaled down
to new brighness, above 0.5 if possible channel gets brighter - but brighness is not equal between the channels anymore
brighness value curve is now exponential instead of linear - this feels more natural
* hslv cleanup
* Rename test to test123
* Delete test123
* New color Ajustment
Trilinear interpolation between the 8 corners of the color cube (black, red, green, blue, cyan, magenta, yellow, white)
* Renaming
* overloading getadjustmentX()
* Renaming
* Additional renaming
* Added more RgbChannel
* Added more colors to channelAdjustment
* Added additional colors
* Added additional colors
* Added additional colors
* Added additional color adjustments
* Update MultiColorAdjustment.cpp
* Fixed black adjustment
* Color config in array form
* move name to general
add a version for config file
* start impl. config migrator
* fix typo amd set access level
* fix schemaa name
* fix schema
* add structure for config migrator
* add more structural things for config migrator
* fix not all grabber provide live video
* add schema for trails
* move name to general
add a version for config file
* start impl. config migrator
* fix typo amd set access level
* fix schemaa name
* fix schema
* add structure for config migrator
* on v4l screenshot, print out nosignal threshold values
* separate fractional parameters for no signal detection
* fully implement handling for "rainbow grabber"
* hyperion-v4l2 --screenshot can also evaluate best reagion and color for no signal detection
* tune output of no signal detection
* v4l outputs warninsg only, todo: make it adyustable
* typo
* v4l signal detection, now with validation checks
* remove obsolete schema files
* fix code style
* fix text typos
* code style
* on v4l screenshot, print out nosignal threshold values
* separate fractional parameters for no signal detection
* fully implement handling for "rainbow grabber"
* update lightberry sketches
update compilehowwto (windows disclaimer)
some refactoring in main cmakelists + preparation for windows compile
tune ada driver, set delayAfterConnect default to 1.5s because some arduino (e.g. mega r3) needs this
set priority min/max for grabber/network services - prevent colliding prios between webui/background stuff and grabbers/net services
* add check if config is writable. TODO do something usefull in webui
* fix indention error
* fix typo
* fix webui can't write led config
* typo
* fix cmakelists
* change methode of detecting linux
* always output latest version of config file to webui
* fix permissions after default config export
* tune code
* set permissions for exported effects
* use qt setperm instead of chmod
update effects code style a bit
* add fallback when config is not readable
* ui: when sending config, convert to utf8 to save size and avoid jumbo frames (todo: minify it)
jsonclient: add some constants for websocket frames (taken from https://github.com/zaphoyd/websocketpp/blob/master/websocketpp/frame.hpp)
* webui:
refactory of websocket connector
sended json data is always convert to utf8
* always output latest version of config file to webui
* fix permissions after default config export
* tune code
* set permissions for exported effects
* use qt setperm instead of chmod
update effects code style a bit
* add fallback when config is not readable
* refresh for all :-)
remove dups
* - integrate refresh leds for all devices
- fix schemas for led devices
* add minimum for rewrite time
* rewriteTime: add missing info in config examples
* Added latchtime web configuration for ws2801 device.
Fixed default to be 500000ns
* cleaner code using defaults and added "ns" to web schema
* oops... "ns" not "ms"
* rename platform rpi-pwm to rpi. remove original rpi platform
install symlink to bin folder
create effects folder for custom effects
* fix osx jobs evaluation
* - add rewrite time to serial leds
- rework adalight sketch
* add analog output
* adalight: add analog mode: last led
* tune adalight sketch to final state
move refresh code to leddevice base class, so every leddevice can use it
* - implement a global logbuffer
- providerrs232 reduce log spam
* logger add signal and start json push
* implement logger notifier ... need some cleanup
* imlement logview in webui - the layout stuff is basic atm and needs some tuning
* - implement a global logbuffer
- providerrs232 reduce log spam
* logger add signal and start json push
* implement logger notifier ... need some cleanup
* Update EffectEngine.h
* add reloadEffects function
* add readEffects function
* add reloadEffects function
* Call reloadEffects after handleCreateEffectCommand and handleDeleteEffectCommand
* Add ability to delete custom created Effects
* Add deleteEffect function to Hyperion-Remote
* Add deleteEffect function to Hyperion-Remote
* Update schema.json
* Update JsonSchemas.qrc
* Add schema-delete-effect.json
* Add deleteEffect function to JSON RPC
* Add deleteEffect function to JSON RPC
* Add Effect configuration file (.json) to Effect Definition
* Update EffectDefinition.h
* - remove feature of using multiple config files for automaticly start other hyperion instances
- add auto config file creation
- tune service files
* add auto path creation for initial default config
* debian package:
rename service to hyperiond
remove copy of config file
* remove color temperatire, its the same as color adjustment
* remove temperature from schema
* implement most part of v4l only colro settings,
now hyperion update knows from which component the colors come
* update configs
* fix webui config write
* reomve correction and temperature from hyperion-remote
* implement a function for easy json editor creation
* grabber and kodi moved to new editor func
* webui: implement conf editors
* add missing files and remove debug code
* switch rs232 provider to completly async transfer
* start of implementing a seperate init function for leddevices
* rename setconfig to init
* more fixes
* implement missing code
* fix code style
* remove debug code
* remove debug stuff
* set loglevel to original state
* extend image effects
add a basic light clock
* add alpha values to rainbow
* some effect tuning
* make seconds hand optional and change color to yellow
make blue hours hand always visible
* Started work on DMX512 rs232 device
cloned from sedu - no actual changes yet
* Implemented DMX protocol
Added baudrate debugging to ProviderRs232
* Added support for multiple DMX fixture types
* - effects now can use qt image effects
- rainbow swirtl is now suitable for any led layout - including matrix
* fix rainbow effect
* effect: add radialGradient
* fix some js errors
* optimize code
* try fix travis test not working as expected
* fix default config files
* fix config
* first try
* implement hyperion restart. core function is good, but needs a beeter structuring- something for next refactoring session ;-)
* several fixes (including osx)
merge with upstream
some refactoring
* add some eye candy to webui
* implement effects included in hyperiond binary
* cleanup
* remove install of effects dir. People who wants to develop effects has to copy them from github
effect params for initial effects can be changed in config permanently and other effect params can be changed
via json (currently only temporarily)
* fix schema of fadecandy
webui fix display of specific led options
* add leddevice write support
* cleanup
* webui: tune hue code
* when use json effect definition from putsiede hyperiond but want to use py script from inside hyperiond use ad a :
e.g. fade.py needs a fade.py near the json file, but :fade.py is taken from resource inside hyperiond
* add ability to di
* add abiloty to diable effcts via hyperion config
* use effect name instead of script in active effects and prio register
* finally solve open file handle during effect is playing. Now script is read before, then file closed and then t is run by python
* fix some webui things
- led config tabs
- inital loading screen
optimize qrc file generation
fix compile warning in hyperion.cpp
* cleanup
* more cleanup
* initial support for leddevice options
* fix schema and editor init
* fix led editor labels and schema
* add some led schemas
* led config: insert current values. not yet perfect, but it works
* tune editor style
* initial support for leddevice options
* fix schema and editor init
* fix led editor labels and schema
* add some led schemas
* led config: insert current values. not yet perfect, but it works
* split content and js
tune leds config
* implement connection lost page
* split js/html in huebridge
* add js action for connection lost
* extend led config
make connection loss nicer
* tune led code
add menu entry for grabber
* more tuning of webui
* switch back to botstrap textarea
add v4l to components
* add icon
* extend schema for jsoneditor
* implement ledcolors streaming with 4fps
* implement component state
* make hyperion websocket api event based
* implement new websocket handling for generalconf
* migrate all webui stuff to new event based websocket api
some cleanup ... now all html templates are in content
refactoring of web stuff
* add hyperionport to global
start impl. removing advanced key
* separate dashboard
serverinfo is updated every 3 seconds automatily
add input selection
cleanup and remove not needed stuff
* prepare infrastructure for server sided file execution
* webui minor fixes
* fix compile
* implement led layout view with live colors
* live led vies
* fix general conf
unrigister ledcolors request, when not on leds.html
* fix compiler warning
* prepare realtime ledview and enhance ui
* Changed default baud rate in schema for ws2812spi and sk6812spi
* now sets the default baud_rate speed to 2800000 if omitted.
Previously it used the ProviderSPI default which was 1000000 and guaranteed not to work
* Added warnings if the SPI baud rate is likely out of range
Added some debug statements to ProviderSpi
* initial tpm2net rewrite - doesnt compile yet
* new tpm2.net drive compiles.
rename old tmp2net typos to tpm2net
fixed compiler warning in ws2812b
* added packetsize calculations and the end of frame character.
Output looks good on tcpdump
* removed old tpm2net driver
renamed tpm2netnew to tpm2net
* make hyperion websocket api event based
* implement new websocket handling for generalconf
* migrate all webui stuff to new event based websocket api
some cleanup ... now all html templates are in content
refactoring of web stuff
* add hyperionport to global
start impl. removing advanced key
* separate dashboard
serverinfo is updated every 3 seconds automatily
add input selection
cleanup and remove not needed stuff
* prepare infrastructure for server sided file execution
* webui minor fixes
* fix compile
* fix amlogic for newer kernels
crosscompile stay on 32bit aml with kernel 3.10
* add new platform amlogic64. This is used e.g. for new wetek boxes hub and play2
* implement use of multiple v4l devices.
Not all v4l devices are compat with that or must be attaches to different usb controllers
* fix typo in config
spilt grabber components in "GRABBER" and "V4L"
If you have more leds configured than the SPI buffer can support you now get this:
[HYPERIOND LedDevice] <DEBUG> <ProviderSpi.cpp:92:writeBytes()> SPI failed to write. errno: 90, Message too long
* Replaced getoptplusplus with QCommandLineParser. Fixes#39
* enabling C++11 if possible
* enabling C++11 if possible
* fixed gcc compilation issues
* fixed linux builds and improved os x build
* trying to fix dispmanx
* trying to fix dispmanx
* simplified travis build script
* fixed argumentparser default values
* rewrote validator system and made sure default arguments are processed correctly
* rewrote validator system and made sure default arguments are processed correctly
* fixed bool vs. regular options
* oops... removing debug code
* reverted screenshot api change
* Fix throw error so it correctly fails on invalid output hostnames
* Fixed broken default /dev/spidev0.0 string
* UDP devices now use "host" and "port" rather than "output"
* commit debug code to save it due to merge
* migrate first devices to new device registry and configure on runtime
* fadecandy and rs232 resets device if config is set
* try to hunt crash on osx
* test commit if this works with osx
* refactor spi devices
* cleanup
* refactor leddevices file, tinkerforge and ws2812b
* refactor raw usb devices
* refactor udp devices
* - add tpm2net driver
- remove old udp driver from build (files left in place for reference for new udp driver)
- json serverinfo shows available leddevices
* finish rework part 2 of leddevices
* add schemas for leddevices.
currently only compiled in, but not usedx
* Fix "if" statement
Nach dem testen des Codes, leider übersehen und nicht rückgängig gemacht.
Entschuldigung.
* Move XRenderSetPictureFilter from "grab" to "setupResources" part
* Resize destination image to target screen dimension once
* Fix coding style and add check for image resize
* Add support for > 170 leds. These are send as multiple packets
Change default latchtime to be smaller
* code cleanup
* more code tidying
added *.swp to gitignore
* Started on support for sACN/E1.31/DMX512
Just a clone of udpraw for now
* It's ALIVE!!
This adds somewhat working DMX512/sACN/E1.31 support.
I've tested it against an ESPixelStick but have no other "real" hardware
TODO:
configure universe#
configure universe and led offset
configure source names (all hard coded now...)
* oops.... forgot that dmx element 0 isnt rgb data but needs to be zero
* added universe support in the config
assorted code cleanups
I have created a new Category "General" with several Settings for
Hyperion.
For now the Submit Button only console.log's the values.
Known Bug: For some reason it seems to do not load the bootstrap
correctly or maybe the Lib isn't compatible with the newest version of
bootstrap.
* Fixing the check of createKey in handleConfigSetCommand
* Update schema-config.json
* add overwrite option to configset command
* add overwrite option to setConfig function
* add overwrite option to setConfig function