This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adjust Color temperature and Brightness based on time of day | |
* as if it were April 16th, a nice long spring day in southern Sweden | |
*/ | |
const VARIABLE_PREFIX = 'CircadianRhythm_'; | |
const MIN_BRIGHTNESS = 0.12; | |
const MAX_BRIGHTNESS = 1; | |
const sys = await Homey.system.getInfo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS=$'\n' | |
myUser=`whoami` | |
echo Local user is $myUser | |
SYNO_USER=`psql synofoto -t -c "select id from user_info where name='$myUser'"` | |
echo SYNO_USER is $SYNO_USER | |
echo Scanning for video files.. | |
for i in `find . -iname \*.mov -type f | grep -v eaDir | grep -v "_3"`; do | |
#echo i is $i | |
fname=$(dirname ${i})/@eaDir/$(basename ${i})/SYNOPHOTO_FILM_H.mp4; |