Question on Redshift and no internet access.
Hi.
If I setup Redshift with a custom config (with lat & long) file on a computer with no internet access - how would it know when is daylight and nighttime? I know that without the ~/.config/redshift.conf file - it detects coordinates, etc. when I go online. Thanks. |
Maybe from system time or hardware clock time? I only tried Redshift briefly a while ago, wasn't keen on it.
|
Quote:
What did you not like about RS? |
I am only guessing that it uses some type of solar calculator to determine sunrise/sunset times based upon position.
https://www.esrl.noaa.gov/gmd/grad/solcalc/ |
Quote:
|
I've certainly been sleeping better after using Redshift.
|
I've come across another handy blue light app - it does not need internet access.
Example usage for eve/nighttime: Code:
sct 3500 RS can be used in a similar manner: Code:
redshift -O 3500 |
I tried both of these (seperately) in crontab (to run at 9pm every night) but both never ran. Does anyone know why?
Code:
crontab -e Code:
0 21 * * * sct 3500 Code:
0 21 * * * redshift -O 3500 Code:
systemctl status cron |
Try using the absolute path to each program.
|
Quote:
I tried both of these but no joy: Code:
10 11 * * * /usr/bin/sct 3500 Code:
10 11 * * * '/usr/bin/sct 3500' |
Are you using a users or system cron job?
|
Quote:
|
I am not familiar with either program and I don't think sct has any sort of configuration file. Since a cron job is not attached to the display you might need to add a export DISPLAY=:0
10 11 * * * export DISPLAY=:0 && /usr/bin/sct 3500 |
Quote:
Edit: It also works without the full path, like so: Code:
10 13 * * * export DISPLAY=:0 && sct 3500 |
All times are GMT -5. The time now is 02:33 PM. |