Flux / Redshift Plasmoid

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

4
8 .2
Last changelog:

9 years ago

2011-08-23: Minor changes to the process management.
2011-08-02: Now gets default latitude and longitude values from KDE, and when the applet is destroyed it stops redshift/xflux. Also, the default temperature values now match redshift defaults. Thanks to meegee: https://github.com/meegee
2011-07-09: Now, when status is unknown, clicking on the plasmoid tries to relaunch the program after killing redundant processes.
2011-06-28: More robust error detection and bug reports.
2011-06-27: Fixed bug that happened when more than one instance was running at the same time. Also, configuration dialog is now "standard".
2011-06-26: Now you can put the plasmoid in the system tray.
2011-06-25: Fixed bug with default options.
2011-06-24: Fixed bug with Redshift.

C

diegc

9 years ago

Thank you for the advice, I didn't know how to do it.
I just added this line to the metadata file and now it can be put in the system tray.

Report

apfelmaus

9 years ago

:) i have been using redshirt befor and your plasmoid will give me a better option than "put it in autostart". however it dont work for me. With the latest version This is the output if i try to rightclick > settings


Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 107, in showConfigurationInterface
self.pyapplet.showConfigurationInterface()
File "/home/test/.kde/share/apps/plasma/plasmoids/plasma_flux/contents/code/main.py", line 223, in showConfigurationInterface
self.createConfigurationInterface(dialog)
File "/home/test/.kde/share/apps/plasma/plasmoids/plasma_flux/contents/code/main.py", line 186, in createConfigurationInterface
self.conf = FluxConfig(self,values)
File "/home/test/.kde/share/apps/plasma/plasmoids/plasma_flux/contents/code/plasmaxfluxcfg.py", line 44, in __init__
self.gammaBoxG.setValue(float(rgb[1]))
IndexError: list index out of range

Report

C

diegc

9 years ago

Thank you too for reporting. I just fixed it and uploaded the new version :)

Report

simgunz

9 years ago

Hey,
I was going to write a plasmoid for redshift too. You made me save time!

But pasma fails to install it on kde 4.6.4 on Chakra.

Report

C

diegc

9 years ago

Can you be more specific? On my system it installs and runs fine... but this is my first plasmoid, so I probably made some mistakes.

Report

simgunz

9 years ago

Excuse me, it was just a strange behaviour of plasma, when I open the file pick dialog for installing the plasmoid, I click on the name of the.plasmoid file and plasma install it before I click ok and it doesn't close the dialog. So in this way it doesn't give me a feedback on the installation process.
Then if I reclick on the .plasmoid file plasma says install fail, just because the plasmoid is already installed.

In anycase I get this error:

File "/home/simone/.kde4/share/apps/plasma/plasmoids/plasma_flux/contents/code/plasmaxfluxcfg.py", line 42, in __init__
rgb = values['gamma'].split(':')
AttributeError: 'float' object has no attribute 'split'

Report

C

diegc

9 years ago

I've seen this strange behaviour with plasmoids installation may times, randomly with different plasmoids and without a pattern between them. I don't know if it's a problem with the plasmoids themselves or with plasma...

Anyway, I uploaded the new, fixed version. It was a stupid mistake with the default configuration values. I forgot to change them when solving the previous bug.

Report

Hookahey

9 years ago

Hi

With Redshift version 1.6 your plasmoid fails to start it. The bug seems to be how redshift expects the gamma argument. Thus when you try to start redshift from your plasmoid it just complains about a wrong argument and won't start.
It seems you pass the gamma value as a float where redshift expects a value for each of RGB (see redshift -h).

Bye
Hookahey

Report

C

diegc

9 years ago

Thank you for reporting. I just uploaded a new version. Now you can also adjust gamma for each RGB channel.

Report

Hookahey

9 years ago

Thanks for the fast reaction. Now it seems to work. Nevertheless, it would be beneficial to test the return code of the program you started to see if something went wrong and maybe show the error message. This would help users if they input wrong values in the config dialog and the program won't start anymore because of that. At the moment it just fails silently.

Bye
Hookahey

Report

C

diegc

9 years ago

With the config dialog design, I tried to prevent users from introducing wrong values. As far as I know, at the moment it is impossible to put wrong values in the config dialog (all fields are restricted). The only thing you can do is change by hand the configuration file, and if so, it will fall back to default values... or at least that's what I intended.
But if I'm overlooking something, please tell me.

Report

Hookahey

9 years ago

Hi. You can for example set the gamma values to 0.0 and then redshift will not start as it needs the values between 0.1 and 10 I think. But anyways, it might be difficult to always keep pace with the expected values of both programs and the various versions that users might have installed. So before you try to prevent every possible config mistake it is easier to detect program launch errors and thus get the bug reports from users ;) or some people would then at least know what they set wrong and correct it themselves.

Bye
Hookahey

Report

C

diegc

9 years ago

Well, it is true, no matter how much effort you put trying to prevent the user from doing something wrong, you can never be sure of it. So I took your advice (thanks!) and implemented a simple dialog wich informs the user if something goes wrong (bug report style).

Report

9 years ago

2011-08-23: Minor changes to the process management.
2011-08-02: Now gets default latitude and longitude values from KDE, and when the applet is destroyed it stops redshift/xflux. Also, the default temperature values now match redshift defaults. Thanks to meegee: https://github.com/meegee
2011-07-09: Now, when status is unknown, clicking on the plasmoid tries to relaunch the program after killing redundant processes.
2011-06-28: More robust error detection and bug reports.
2011-06-27: Fixed bug that happened when more than one instance was running at the same time. Also, configuration dialog is now "standard".
2011-06-26: Now you can put the plasmoid in the system tray.
2011-06-25: Fixed bug with default options.
2011-06-24: Fixed bug with Redshift.

12345678910
17
product-maker janet Jul 12 2012 9 excellent
product-maker powersack Nov 07 2011 9 excellent
product-maker qwerty12 Sep 24 2011 9 excellent
product-maker Hanau2010 Sep 18 2011 9 excellent
product-maker ams Aug 30 2011 9 excellent
product-maker philopdx Aug 05 2011 9 excellent
product-maker pejakm Aug 02 2011 9 excellent
product-maker pvt14 Jul 31 2011 9 excellent
product-maker stevencolbear Jul 22 2011 9 excellent
product-maker edneymatias Jul 20 2011 9 excellent
product-maker littlecuba Jul 03 2011 9 excellent
product-maker quippini Jun 28 2011 9 excellent
product-maker vitoubien Jun 27 2011 9 excellent
product-maker Saleel Jun 25 2011 9 excellent
product-maker TommyCZ Jun 25 2011 9 excellent
product-maker deabru Jun 24 2011 9 excellent
product-maker SvenArcher Jun 23 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
janet
Jul 12 2012
qwerty12
Sep 24 2011
simgunz
Jun 27 2011
apfelmaus
Jun 26 2011
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.6
updated Aug 23 2011
added Jun 23 2011
downloads 24h
0
mediaviews 24h 0
pageviews 24h 9