parallella / parallella-utils

Library of various community contributed Parallella board admin scripts and programs
Other
39 stars 19 forks source link

Cannot make xtemp with 'make all' or 'make everything' #6

Open hbfs opened 8 years ago

hbfs commented 8 years ago

make: *** No rule to make target 'xtemp.c', needed by 'xtemp'. Stop.

hbfs commented 8 years ago

That issue was fixed by moving xtemp.c from xtemp/ to the parent directory and deleting the xtemp folder. Alternatively, we can change the path in the make file.

New question is how can we run xtemp on a headless machine (without X)?

LogicalChaos commented 8 years ago

On Dec 14, 2015, at 1:21 PM, Sri Gogineni notifications@github.com wrote:

New question is how can we run xtemp headless?

Use <ssh -X …> when logging in. That forwards the remote X11 to your local host in that session.

hbfs commented 8 years ago

I'm on os x without X11, is there a way to run strictly in terminal?

edit: Here's a handy one-liner

SCALE=$(cat /sys/bus/iio/devices/iio:device0/in_temp0_scale); \
OFFSET=$(cat /sys/bus/iio/devices/iio:device0/in_temp0_offset); \
RAWTEMP=$(cat /sys/bus/iio/devices/iio:device0/in_temp0_raw); \
bc <<< "scale=1; ($RAWTEMP + $OFFSET) * $SCALE / 1000"