Code Monkey home page Code Monkey logo

Comments (10)

kotelnik avatar kotelnik commented on August 14, 2024

Thanks a lot for your feedback and feature suggestions. I'll try to do both. As for the second I'll look into geoclue2 but I can also leverage Mozilla Location Service available in Plasma (like I do on demand in the widget settings).

from plasma-applet-redshift-control.

kotelnik avatar kotelnik commented on August 14, 2024

Done in version 1.0.11. Please report bugs :).

I agree using "redshift -v" is more elegant and simpler solution but for now I've used the other one otherwise I'd have to create C++ extension to track stdout and therefore some users of .plasmoid only version of applet would be out of luck. I'll probably do the C++ extension eventually but for now "redshift -p" was used.

from plasma-applet-redshift-control.

Szpadel avatar Szpadel commented on August 14, 2024

Hey

Thanks, it seems to be working fine. I test if for couple days and give feedback here in case of any problems.

Can C++ extension be made optional? So if it exists it will be used, otherwise it fallback to redshift -p. I can imagine some corner cases when current approach can give invalid results.

Best Regards
Piotr

from plasma-applet-redshift-control.

kotelnik avatar kotelnik commented on August 14, 2024

Thanks! Yes, it can be made optional, I've already done that in my Weather Widget. But here it would entirely change the way redshift process is called and I don't like having 2 different codes for one thing in one plasmoid (unnecessary overhead). So I probably fork / split the project and continue the development with C++ ext. in the new one and backport fixes to the old one for users of .plasmoid version.

from plasma-applet-redshift-control.

Szpadel avatar Szpadel commented on August 14, 2024

Hello,

Unfortunately value seems to not updating during sunset.
I think preview process isn't even spawned.

Can you check this?
I don't have any experience with debugging plasmoids, so I don't know how to check this.

Best Regards
Piotr

from plasma-applet-redshift-control.

kotelnik avatar kotelnik commented on August 14, 2024

Hi! For me it is updating fine day->night and night->day. I can always see the tray icon become active and changing temperature value (every 10 seconds) in tooltip during the transition.

What do you mean by preview process?

from plasma-applet-redshift-control.

Szpadel avatar Szpadel commented on August 14, 2024

Hello,

In tooltip I always have "Turned on, 6500K" with is my day temperature.
By preview process i mean executing redshift with -p parameter.
But if interval is 10s, I could miss it in noise in strace messages.

Edit: I recorded issue: https://youtu.be/9BscHojgIoY

Best Regards
Piotr

from plasma-applet-redshift-control.

kotelnik avatar kotelnik commented on August 14, 2024

Sorry, I've been quite busy lately. Thanks for the video. I can see the temp. is not updating in the widget. However I still cannot replicate the issue. Is there only one redshift process / widget active? How did you monitor the temperature in terminal on the video?

from plasma-applet-redshift-control.

Szpadel avatar Szpadel commented on August 14, 2024

Hello

In terminal it is running watch of redshift command contains -p.
Rest of arguments I got from ps aux|grep redshift, so they are identical as in process running by the widget.
And there aren't any other running redshift processes.

Best Regards
Piotr

from plasma-applet-redshift-control.

kotelnik avatar kotelnik commented on August 14, 2024

Thanks. I believe I used the same procedure as you while testing. Since I couldn't replicate the issue I also recorded a video of my actions so it is more clear which arguments are called and when. Hopefully it will narrow the search for the cause of this problem.

The only thing coming to my mind right now is: do you have your location set the same way in widget and in watch command?

So, here is my screencast (sorry about the flickering...):
http://sojcaci.cz/temp/github/vokoscreen-2016-03-12_15-32-00.mkv

from plasma-applet-redshift-control.

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.