Skip to content

yelite/home-system-room-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program exposes the current temperature and atmospheric pressure read from BMP085 sensor to Prometheus.

To Compile

I am compiling it on MacOS to Linux with armv7. I choose to statically link musl libc to avoid setting up a full cross compilation toolchain with glibc. The binary size from a release build is 8.5 MB which is acceptable to me.

I use the toolchain from https://github.com/MarioSchwalbe/homebrew-gcc-musl-cross

My .cargo/config file:

[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-musleabihf-gcc-9"

I need extra environment variables to make it compile

CC=arm-linux-musleabihf-gcc-9
CFLAGS=-march=armv7+fp

Other references that I found useful when trying to fix compiling problems:

About

Monitoring the temperature of each room using BMP085

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages