Do I need a login now to create trac tickets?
I wanted to put in a feature request for redshift. batches:
-374
4384
632
631
redshift.sh:
#!/bin/bash
. /usr/pluto/bin/Utils.sh
REDSHIFT=/usr/bin/redshift
while getopts ":d:" optname
do
case "$optname" in
"d")
DEVICE=$OPTARG
;;
*)
;;
esac
done
DEVICEDATA_COLORTEMPDAY=322
DEVICEDATA_COLORTEMPNIGHT=323
# get colors from devicetemplate
COLORTEMPDAY=$(GetDeviceData "$DEVICE" "$DEVICEDATA_COLORTEMPDAY")
COLORTEMPNIGHT=$(GetDeviceData "$DEVICE" "$DEVICEDATA_COLORTEMPNIGHT")
DEVICEDATA_LONGITUDE=108
DEVICEDATA_LATITUDE=109
Q="
SELECT PK_Device
FROM Device
WHERE FK_DeviceTemplate='52'
"
EVENTPLUGINID=$(RunSQL "$Q")
LONGITUDE=$(GetDeviceData "$EVENTPLUGINID" "$DEVICEDATA_LONGITUDE")
LATITUDE=$(GetDeviceData "$EVENTPLUGINID" "$DEVICEDATA_LATITUDE")
DISPLAY=:0 $REDSHIFT -l $LONGITUDE:$LATITUDE -t $COLORTEMPDAY:$COLORTEMPNIGHT
Don't know how to add a package to a template so have not added the info package yet (it's in the repos: sudo apt-get install redshift)