Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hbfs opened this issue Dec 14, 2015 · 3 comments
Open

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

hbfs opened this issue Dec 14, 2015 · 3 comments

Comments

@hbfs
Copy link

hbfs commented Dec 14, 2015

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

@hbfs
Copy link
Author

hbfs commented Dec 14, 2015

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
Copy link

On Dec 14, 2015, at 1:21 PM, Sri Gogineni [email protected] 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
Copy link
Author

hbfs commented Dec 14, 2015

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants