Skip to content
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

First impressions (Linux Mint 19) #6

Closed
Moonbase59 opened this issue Jul 21, 2018 · 6 comments
Closed

First impressions (Linux Mint 19) #6

Moonbase59 opened this issue Jul 21, 2018 · 6 comments

Comments

@Moonbase59
Copy link

Moonbase59 commented Jul 21, 2018

Hi again,

seems there’s still some work to do.

  • WebUI looks simple (no CSS?)
    bildschirmfoto vom 2018-07-21 11-54-22-ledfx-dash
  • Where do I find a hint what’s supposed to go into "Effects config"?
  • Upon each and every effect, a 405: Method Not Allowed is returned.
  • Upon first run, after creating the default config,yaml, it responds (due to creating a config with no devices):
matthias@e6410-mch:~/Projekte/local/LedFx$ ledfx --open-ui
Failed to find configuration file. Creating default configuration file in /home/matthias/.ledfx/config.yaml
Loading configuration file from /home/matthias/.ledfx
Traceback (most recent call last):
  File "/usr/local/bin/ledfx", line 11, in <module>
    load_entry_point('ledfxcontroller==0.1.0a0', 'console_scripts', 'ledfx')()
  File "/usr/local/lib/python3.6/dist-packages/ledfxcontroller-0.1.0a0-py3.6.egg/ledfxcontroller/__main__.py", line 88, in main
    ledfx = LedFxController(config_dir = args.config)
  File "/usr/local/lib/python3.6/dist-packages/ledfxcontroller-0.1.0a0-py3.6.egg/ledfxcontroller/core.py", line 22, in __init__
    self.config = load_config(config_dir)
  File "/usr/local/lib/python3.6/dist-packages/ledfxcontroller-0.1.0a0-py3.6.egg/ledfxcontroller/config.py", line 94, in load_config
    return CORE_CONFIG_SCHEMA(yaml.load(file))
  File "/usr/local/lib/python3.6/dist-packages/voluptuous-0.11.1-py3.6.egg/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/dist-packages/voluptuous-0.11.1-py3.6.egg/voluptuous/schema_builder.py", line 587, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/dist-packages/voluptuous-0.11.1-py3.6.egg/voluptuous/schema_builder.py", line 425, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected dict for dictionary value @ data['devices']

My config.yaml:

devices:
  esps1:
    channel_count: 180
    channel_offset: 0
    host: 192.168.170.66
    max_brightness: 1.0
    name: esps1
    type: e131
    universe: 1
host: 127.0.0.1
port: 8888
  • The docs should probably remind of using python3 and pip3 for Linuxes that still have Python 2.x as default (Mint 19 has 2.7.15, Arch has 3.6 and so on).
@ahodges9
Copy link
Owner

Can you look in the developer console for your browser? You should seem some errors there. Most of your issues seem to be due to not finding the statics path holding the scripts and css.

@not-matt
Copy link
Collaborator

not-matt commented Jul 21, 2018 via email

@ahodges9
Copy link
Owner

ahodges9 commented Jul 21, 2018

Alright, both issues should be fixed in the latest version. I was missing a manifest that pulled the non python files into the site package.

As for what stuff can go into "config" the only way to see this currently is using the REST APIs. So go to "Developer Tools" and submit a "GET" to "/api/effects" to list the effects. Then a "GET" to /api/effects/XXXXX" to get the supported schema for that effect. So "/api/effects/gradient" will get you all the supported config for the gradient effect.

@Moonbase59
Copy link
Author

Moonbase59 commented Jul 22, 2018

Ah, now we’re cooking! Looks promising!

I currently test on Linux Mint 19 (for audio processing, I reckon we need some power so I use a test laptop but expect it to be able to run on an RPi 3B+ later on). LedFx drives a 60-pixel (180 ch) ESPixelStick with my latest changes (forkineye merged, hurrah!), apparently even with less sequence errors than QLC+ has.

I’m currently playing around with it, but already miss some independent brightness control. Some effects parameters also seem do do nothing (i.e., speed and frequency on the rainbow).


EDIT: Long "my vision" text moved to "General Discussion"!

@ahodges9
Copy link
Owner

Cool, glad you got it up and running. Hopefully that is the last of the random setup issues. Right now "brightness" is an aspect of the device and effects don't have control over it (probably what we want). There is no way to control this in the UI currently, but you can control it with the "max_brightness" property in the device config. Just a matter of exposing it in the UI.

As for any other issues (i.e. speed not working) feel free to open issues for them and I will take a look once I have flushed out more of the end-to-end architecture.

@Moonbase59
Copy link
Author

Spectrum and Wavelength don’t seem to do anything.

ahodges9 pushed a commit that referenced this issue Jan 14, 2020
not-matt pushed a commit that referenced this issue Nov 7, 2020
Merge current docs changes into dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants