Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 21 Nov 2018, 16:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Redshift Gui Light Alternative (portable)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 3548
Location: holland

PostPosted: Tue 25 Sep 2018, 06:29    Post subject:  Redshift Gui Light Alternative (portable)
Subject description: 32-bit, 64-bit and wary-32-bit attached
 

*** Redshift Gui Light Alternative (portable) ***
==============================
EDIT 2018-10-09, updated to v2, needed a fix, see info here:
http://murga-linux.com/puppy/viewtopic.php?p=1006894#1006894
Attachments below replaced with the new version
==============================
EDIT 2018-11-09, updated to v3, bug fix and other changes, see info here:
http://murga-linux.com/puppy/viewtopic.php?p=1009548#1009548
Attachments below replaced with the new version
==============================
Inspired by Mike Walsh's "Brightness & colour temperature control for desktop PCs", here's a more extended version that supports redshift's automatic day and night colour transition (if in "Auto mode")
If Auto mode is not selected, then it works just the same as Mike's version (e.g. ScreenControl_redshift-v1.4)

Similar apps already existing, e.g:
https://sourceforge.net/projects/redshiftgui/
Or (more simple, python based):
https://github.com/mlsteele/redshift-gui

This portable version uses yad (notification icon and sliders to adjust the values) and the redshift command line utility.

Both (yad and redshift) I compiled on Debian Wheezy, tested (and works) on Puppy Lucid, Raring, Slacko, Tahr, Stretch (and should work also on later Puppy versions)
EDIT: Also on Debiandog, Xenialdog, Bionicdog
Also separate "wary" version attached, works on Wary or other older puppies with minimal Xorg version.

From the Help (right-click on the icon):

Quote:
*** Redshift Manual mode and Auto mode ***

- Manual: First time run, the Manual mode is enabled.
Left click the icon and adjust color temp. and brightness.

- Auto: Right-click the icon and select 'Redshift Auto mode'.
The timezone and time must be correctly set to make this work well.
First time run, it will get your geo location (the coordinates: latitude, longitude)
A network connection is required for that.
The file $HOME/.rshift/geo-info contains this info.
Remove it if you travel to another country or city.
(then it will be re-configured again)
Left click on the icon to adjust day and night color temp.
To get back to Manual Mode, click 'Redshift Auto mode' again.


Portable: includes yad (v 0.38 ) and redshift (v 1.11) (self-extractable script) so NOT needed to have yad and redshift installed.
EDIT: With v3 it also includes "box_splash" for the auto-mode info dialog
Required is "curl" for getting geo location (but should be installed by default in most systems)

Extract 32 or 64 bit attached tar.gz and just click on e.g. rshift-portable-32 and the icon should appear in the system-tray.
To have it loaded at boot/logon, place it in ~/Startup

Any suggestions for improvement are welcome !

Fred
rshift-portable-32-v3.tar.gz
Description  Redshift portable 32-bit, extract and run rshift-portable-32
gz

 Download 
Filename  rshift-portable-32-v3.tar.gz 
Filesize  199.47 KB 
Downloaded  18 Time(s) 
rshift-portable-64-v3.tar.gz
Description  Redshift portable 64-bit, extract and run rshift-portable-64
gz

 Download 
Filename  rshift-portable-64-v3.tar.gz 
Filesize  201.91 KB 
Downloaded  21 Time(s) 
rshift-portable-wary-v3.tar.gz
Description  Redshift portable Wary, extract and run rshift-portable-wary
gz

 Download 
Filename  rshift-portable-wary-v3.tar.gz 
Filesize  242.84 KB 
Downloaded  10 Time(s) 
redshift-auto-mode.png
 Description   Redshift Auto Mode
 Filesize   87.59 KB
 Viewed   552 Time(s)

redshift-auto-mode.png


_________________
Dog Linux website

Last edited by fredx181 on Fri 09 Nov 2018, 14:19; edited 5 times in total
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Tue 25 Sep 2018, 10:39    Post subject:  

Ha-haa! Nice one, Fred.

I'll take a look at this, and see what it's like. Will this run in any Pup (well, any 5-series onwards, that is)?

I'm only asking because, despite running many much newer Pups, I find I'm spending quite a lot of time with Racy 5.5. On the big old Compaq desktop, she runs like the hounds of hell are after her.....and she still does everything I want her to.

I take it the 'Wary' version ought to work with Racy, it supposedly being 'Wary on steroids'.....

I'm just trying out your 'gtk-youtube-cde' thingy. Works nicely, once you figure out its quirks..... Laughing

(Now if only somebody could figure out a way to get FF-Quantum to run in Racy, I'd be a very happy bunny......)

Keep 'em coming, mate!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Tue 25 Sep 2018, 11:34    Post subject:  

Fred, it works a treat. This is very much appreciated; I like the way you can run it either as 'manual' or 'auto', depending on how you want it to perform. Excellent work, mate.

Cheers!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 3548
Location: holland

PostPosted: Tue 25 Sep 2018, 12:48    Post subject:  

Mike Walsh wrote:
Fred, it works a treat. This is very much appreciated; I like the way you can run it either as 'manual' or 'auto', depending on how you want it to perform. Excellent work, mate.

Cheers!


Mike. Wink


Thanks Mike
Quote:
Will this run in any Pup (well, any 5-series onwards, that is)?

Don't know if it will run in any Pup, but was pleasantly surprised that it works on Lupu (with normal version, not "Wary" version), so anyway it should work on any newer version than Lupu, I think.
On which Puppy you tested ?

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Tue 25 Sep 2018, 17:41    Post subject:  

Hi, Fred.

Well, so far Racy 5.5 ('Wary' version, obviously), and as of 5 mins ago, Slacko 570 (standard 32-bit version). Both working nicely ATM.

A question, if I may? How would I change the details for my exact location? In /root/.rshift/geo-info, I suppose... The auto-locate is picking up on Huntingdon.....which is around 60 miles away from me, to the west-south-west.

Just the location, and the lat/long?

EDIT:- Answered my own question. Edited ~/.rshift/geo-info, to change lat/long and city name, using the same details I've used in RedShiftGUI for the last 2-3 years.

(I have the lat/long to 7 decimal places, courtesy of a couple of astronomical/meteorological sites I occasionally visit. This only wants 4, so I rounded 'em up. Seems quite happy with that.)

There ya go. Nice one! I'll try the 64-bit version out in Xenial64 or Bionic64 before beddy-byes tonight.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Tue 25 Sep 2018, 20:50    Post subject:  

Hi again, Fred.

Just 'installed' it to Bionicpup64. Smooth as so much oiled silk. Once again; a lovely piece of work.....and a credit to our little community. Very Happy

Cheers.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Terry H

Joined: 29 Mar 2009
Posts: 478
Location: The Heart of Muskoka, ON Canada

PostPosted: Tue 25 Sep 2018, 21:16    Post subject:  

Also running on bionicpup64. Set it up as auto mode, which found my coordinates and timezone and set it to night mode. Very nice. Thanks Fred
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1155

PostPosted: Tue 25 Sep 2018, 22:40    Post subject:  

Works great.

Just out of curiosity, how are you getting our location? IP number compared with ???
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3548
Location: holland

PostPosted: Wed 26 Sep 2018, 11:38    Post subject:  

dancytron wrote:
Works great.

Just out of curiosity, how are you getting our location? IP number compared with ???

With curl :
Code:
curl -s --get http://geoip.nekudo.com/api

And then extract e.g. latitude and longitude with grep.

Mike Walsh wrote:
The auto-locate is picking up on Huntingdon.....which is around 60 miles away from me, to the west-south-west.


That's not good, a few miles away would be ok, but 60 is too much.
Is the IP address correct in ~/.rshift/geo_info ?
Perhaps the url to get the info from should be changed , do you get the correct geo info when you do this in terminal ?:
Code:
curl ipinfo.io


Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
belham2

Joined: 15 Aug 2016
Posts: 1594

PostPosted: Wed 26 Sep 2018, 12:59    Post subject:  

fredx181 wrote:
new redshift gui lite

Fred



Thank you, Fred, got installed across all my DDogs, and all other pups too. Everything just works. Only weird thing is I can't get it and/or any redshift to work in Barry's latest Quirky 8.7 release (strange in how they worked in everything before Quirky 8.7). I might give up and try compiling it in Barry's, I guess.

Hope you're doing well and in good health. Crossing fingers we get a nice October.....temps have started to drop....noooooooooooo Wink
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3548
Location: holland

PostPosted: Wed 26 Sep 2018, 14:26    Post subject:  

belham2 wrote:
fredx181 wrote:
new redshift gui lite

Fred



Thank you, Fred, got installed across all my DDogs, and all other pups too. Everything just works. Only weird thing is I can't get it and/or any redshift to work in Barry's latest Quirky 8.7 release (strange in how they worked in everything before Quirky 8.7). I might give up and try compiling it in Barry's, I guess.

Hope you're doing well and in good health. Crossing fingers we get a nice October.....temps have started to drop....noooooooooooo Wink


Hey Belham, thanks for testing.

Strange that it doesn't work in Barry's latest Quirky, not even the redshift command line utility, as I understand.
Please report about any progress you made.

Yes, the weather, one of the things it's legitimated to complain about, we just try to accept Smile

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Wed 26 Sep 2018, 15:43    Post subject:  

Hi, Fred.

Hm. Curiouser & curiouser. Initially, I was getting Huntingdon (around 60 miles away, to the WSW). Now, I'm getting Halstead in Essex.....nearer 90 to the SSE!

We've always had very vague IP auto-location here. Neither Google nor DuckDuckgo can get any closer than around 40-50 miles away.....and other geo-location services are just as vague. But, as I said, courtesy of a couple of astronomical/meteorological sites I occasionally visit, I know my longitude & latitude to 7 decimal places. So I just edited the ~/.rshift/geo-info file to reflect that. No complaints or refusal to function; it's quite happy.

Still doesn't answer why 'curl ipinfo.io' isn't working better than that, though.....does it?


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
dancytron

Joined: 18 Jul 2012
Posts: 1155

PostPosted: Wed 26 Sep 2018, 15:51    Post subject:  

fredx181 wrote:
dancytron wrote:
Works great.

Just out of curiosity, how are you getting our location? IP number compared with ???

With curl :
Code:
curl -s --get http://geoip.nekudo.com/api

And then extract e.g. latitude and longitude with grep.

Mike Walsh wrote:
The auto-locate is picking up on Huntingdon.....which is around 60 miles away from me, to the west-south-west.


That's not good, a few miles away would be ok, but 60 is too much.
Is the IP address correct in ~/.rshift/geo_info ?
Perhaps the url to get the info from should be changed , do you get the correct geo info when you do this in terminal ?:
Code:
curl ipinfo.io


Fred


It is working fine. I was just curious how it worked. Thanks.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3548
Location: holland

PostPosted: Wed 26 Sep 2018, 17:15    Post subject:  

Mike Walsh wrote:
Hi, Fred.

Hm. Curiouser & curiouser. Initially, I was getting Huntingdon (around 60 miles away, to the WSW). Now, I'm getting Halstead in Essex.....nearer 90 to the SSE!

We've always had very vague IP auto-location here. Neither Google nor DuckDuckgo can get any closer than around 40-50 miles away.....and other geo-location services are just as vague. But, as I said, courtesy of a couple of astronomical/meteorological sites I occasionally visit, I know my longitude & latitude to 7 decimal places. So I just edited the ~/.rshift/geo-info file to reflect that. No complaints or refusal to function; it's quite happy.

Mike. Wink


And now I'm curiouser and curiouser, you live in a cave maybe ? Or on top of a mountain? Laughing Laughing
No.. seriously,
Quote:
Still doesn't answer why 'curl ipinfo.io' isn't working better than that, though.....does it?

Not sure what you're saying, did you see the output of 'curl ipinfo.io', was it different ?

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4394
Location: King's Lynn, UK.

PostPosted: Wed 26 Sep 2018, 18:23    Post subject:  

@ Fred:-

fredx181 wrote:
And now I'm curiouser and curiouser, you live in a cave maybe ? Or on top of a mountain? Laughing Laughing


Hah!

No, the output of 'curl ipinfo.io' was the same in the terminal as in the rshift light .pet. To clarify the issue, the first Pup I installed this in came up with Huntingdon, which is around 60 miles to the SSW of us. In the next and every subsequent Pup, that then changed to 'Halstead', 90 miles or so to the ESE of us.....in south-eastern Essex!

------------------------------------------

King's Lynn is located at the base of the 'Wash' area at the top north-western corner of East Anglia, in the angle where it borders on Lincolnshire. It's situated at the mouth of the Great Ouse river, which is one of the major outlets for the huge drainage network your countrymen 'constructed' for us back in the 15th & 16th century....in particular the Dutch engineer Sir Cornelius Vermuyden.

The 'Fens' now comprise around 50% of the 'Grade 1' arable land in the whole of the UK, and have often been referred to as the 'breadbasket of England', due in no small part to the rich peat soil content of the reclaimed land. Modern intensive farming methods supply nearly three-quarters of the British Isles with fresh fruit & veg on a daily basis.





As far as communications and radio/TV reception are concerned, it may as well be in the Australian outback. It's all due to the somewhat unusual make-up of the terrain, which is basically sandstone, below the peat topsoil layer....albeit with a metallic/magnetic component to it. Plays havoc with airborne carrier waves of any sort; radio and TV reception for the area have at times been 'enhanced' with repeater stations (which don't live up to their promises).....and the magnetic component to the terrain, because of its extensive nature, has over the centuries played merry hell with the compasses used by shipping in the area (not to mention the numerous sandbanks and shoals in the Wash itself). All-in-all, a perfect recipe for mayhem in this modern electronic age, concocted by Mother Nature herself....! Rolling Eyes

Although we're on landline Ethernet, because of the afore-mentioned 'problems', most of the area is lagging well behind the rest of the country in Broadband speed thresholds, due to the 'interference shielding' they have to build in to the landline installations, in order to ensure they function as they're supposed to. Even local satellite dish installations need to have a special 'lining' on the back of the dish itself, to dissipate magnetic interference from the ground. I think we're the only area in the UK that has an unusual problem of this nature. And national IPs, of course, just want to wash their hands of the problem (though they're quick enough to take your money for a service which is often patchy at best). Which means our local telecoms people often have to source access to the national network as & how best they can.

Hence the geo-locations often being so far away..! Rolling Eyes

It's almost akin to having a built-in VPN..... Laughing


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Fri 12 Oct 2018, 17:39; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0748s ][ Queries: 12 (0.0069s) ][ GZIP on ]