f.lux f.lux forum
    • Recent
    • Popular
    • Register
    • Login

    API

    Windows v4
    4
    10
    6.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AkumaMG
      last edited by AkumaMG

      On v4 Release Notes you can find

      LAN API with support for telling other devices when f.lux changes
      

      How this works ? Where we can find information about that ?

      1 Reply Last reply Reply Quote 0
      • herfH
        herf
        last edited by

        Look in the options menu.
        There is a place to type in an URL - then f.lux makes HTTP POSTs on the LAN.

        POST /endpoint?ct=4800&bri=0.5

        By default it will only post when something changes, but you can also have it poll once a minute, if your system needs that for some reason.

        1 Reply Last reply Reply Quote 0
        • A
          AkumaMG
          last edited by AkumaMG

          Hi Herf,
          Thanks for answer it helped me a lot.
          But your information is not accurate.
          F.lux posts not
          /?ct=4800&bri=0.5
          but
          /?ct=4800&bri=0.5&plain=

          I do not know for what is plain, can you explain for what is used ?

          1 Reply Last reply Reply Quote 0
          • herfH
            herf
            last edited by

            I am not trying to send that, and it doesn't show up on my server here.

            What server are you using? And are there any trailing spaces or anything in the text entry?

            A 1 Reply Last reply Reply Quote 0
            • A
              AkumaMG @herf
              last edited by

              @herf You are right, its web server issue.
              When I check communication with WireShark there is only CT and BRI no Plain.
              Sorry, my mistake.

              Thanks for help.

              1 Reply Last reply Reply Quote 0
              • J
                julianz
                last edited by

                What exactly is this feature doing?

                herfH 1 Reply Last reply Reply Quote 0
                • herfH
                  herf @julianz
                  last edited by

                  @julianz it lets you synchronize other lights on your LAN to f.lux's current settings.

                  1 Reply Last reply Reply Quote 0
                  • C
                    clem0338
                    last edited by

                    Hi All,

                    sorry to dig out this thread but I'm currently working on a tool that changes the screen (DDC/CI) brightness based on f.lux current settings.

                    I'm able to receive notifications on my localhost server, "CT" (color temperature ?) reflects the current values but the BRI (Brightness) is always 1.0000. I'm using the latest beta (4.66).

                    Can you help me ?

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • herfH
                      herf
                      last edited by

                      We modified 4.66 temporarily so it sets the 1.0 point using the nighttime setting for Hue users. So what it is doing now is >1.0 during the day, but it's clamped to 1.0 so there is not much information there. You could probably change the brightness registry entries "nightbri" and "latebri" to script some changes. (HKCU/Software/Michael Herf/flux/Preferences)

                      I have a different version of this feature that we are working on internally (which actually uses brightness, but you can set it).

                      We have had a version using DDC/CI for brightness also, but it has been very unreliable and rather slow...some monitors flash when you change them, hardware-calibrated monitors lose calibration, things like that.

                      1 Reply Last reply Reply Quote 0
                      • C
                        clem0338
                        last edited by

                        Hi, thanks for your answer,

                        If I understand, you are thinking I want to control f.lux from external tool, I'm thinking about the other way around.

                        Anyway, are the registry keys reloaded automatically or should I restart f.lux to load them ?

                        Can the DDC/CI feature be released (based on preference of course) ?

                        Regards

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright © 2014 NodeBB Forums | Contributors