There was a DALLAS 1-wire sensor. Many devices used to deal with it. So BM1707 (MP707) also did. This is a small USB device that has one sensor on board and ability to connect much more by wire. Also it has ability to control external relay by temperature changes.
More information on device available at http://olimp-z.ru/mp707 and http://www.masterkit.ru/main/set.php?code_id=565375
So what is it all about
This repo contains files to use with OpenWRT SDK. Current version uses libstdc++ and libusb.
Step by step guide
Run a linux machine.
Let's say it would be Ubuntu on virtualbox. Make sure you have enough disk space on virtual machine to store SDK.
Download proper SDK from OpenWRT.org (release, hardware). If you're not sure what release/hw to use check supported devices list at http://wiki.openwrt.org/toh/start. Follwing example will download SDK for attitude_adjustment
realease 12.09 ar71xx
platform.
wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
Decompress SDK.
tar xjvf OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
Download bmtemp
package contents
wget https://github.com/bubbafix/openwrt-bm1707/archive/master.zip
Decompress archive
unzip ./master.zip
Copy package contents into proper folder.
cp ./openwrt-bm1707-master/package/* ./OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/package/
Go into SDK folder.
cd /OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/
Compile package
make
If everything went well find these files: bmtemp_2_ar71xx.ipk Packages Packages.gz
at
ls ./OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/bin/ar71xx/packages/
File .ipk
is ready to be installed with opkg install ...
command.
Important Notice
There can be hardware limitations for USB on some routers so it won't work without external USB hub. E.g. for TL-MR3020: https://dev.openwrt.org/ticket/11985