GithubHelp home page GithubHelp logo

Comments (7)

MoshiMoshi0 avatar MoshiMoshi0 commented on July 26, 2024 1

Good idea!

I'll add a trigger that will allow you to specify a schedule. So you will have two speed controllers/effects that will switch depending on the schedule you specify.
I'll also think about having triggers for the whole profiles, but it might require a big code change.

from ttcontroller.

MoshiMoshi0 avatar MoshiMoshi0 commented on July 26, 2024 1

Added ScheduleTrigger to dev build, you can get it here.

Sample config:

...
      "Effects": [
        {
          "Type": "FullColorEffect",
          "Config": {
            "Color": [255, 0, 0],
            "Trigger": {
              "Type": "ScheduleTrigger",
              "Config": {
                "Scope": "Day",
                "Schedule": [
                  "00:00 -> 08:00",
                  "20:00 -> 23:59"
                ],
              }
            }
          }
        },
        {
          "Type": "FullColorEffect",
          "Config": {
            "Color": [0, 255, 0],
            "Trigger": {
              "Type": "AlwaysTrigger"
            }
          }
        }
      ]
...

This will trigger the red full color on the specified schedule, otherwise it will fallback to green.
The format for the schedule is "{start} -> {end}" with [d.]hh:mm:ss for time.
edit: Added more time formats for easier configuration:

d.hh:mm -> d.hh.mm
hh:mm -> hh:mm
ss -> ss

Let me know if you need help with configuring this with your current setup.

from ttcontroller.

ray-holmium avatar ray-holmium commented on July 26, 2024

Amazing, thank you!

Having triggers for entire profiles is definitely overkill for my needs, but I can see how that would enable an incredible level of fine-tuning.

from ttcontroller.

MoshiMoshi0 avatar MoshiMoshi0 commented on July 26, 2024

@ray-holmium does this work/is this what you wanted?

I would like to close this issue if that is the case.

from ttcontroller.

ray-holmium avatar ray-holmium commented on July 26, 2024

@MoshiMoshi0 I'm so sorry for the late reply! I had kind of a crappy time this past month.

Thank you so much for setting up that schedule trigger for me. It works perfectly!

Though I've run into a new, unrelated bug which I will start a new issue for.

from ttcontroller.

jlaineinat0r avatar jlaineinat0r commented on July 26, 2024

Trying to run this with my existing rotation setup doesn't seem to work for me, but the idea of auto-shutdown during a schedule is awesome - my machine runs 24/7 but I'd love to kill all the lights during the night.

Newtonsoft.Json.JsonSerializationException: Error converting value 10 to type 'System.Int32[]'. Path 'LedRotation', line 5, position 19. ---> System.ArgumentException: Could not cast or convert from System.Int64 to System.Int32[]. at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object value, Type initialType, Type targetType) at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(Object initialValue, CultureInfo culture, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) --- End of inner exception stack trace ---

from ttcontroller.

MoshiMoshi0 avatar MoshiMoshi0 commented on July 26, 2024

@jlaineinat0r Please make a new issue and post your config there. Current develop builds have configuration changes compared to latest release.

from ttcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.