^ Status | working | ^ Developer | [[user:paalsteek]] | ====== Building your own Flukso using FluksoUSB and an OpenWRT-Router ====== In the following section you can learn how to build your own Flukso using the FluksoUSB board and an OpenWRT-Router with an USB-Port. To use the custom Flukso with the website you need a device id, a key and sensor ids. You can get these from the mySmartGrid team. ===== Preparing FluksoUSB ===== First you have to compile the FluksoUSB firmware with your own sensor ids. Therefore you have to change the following lines in the Makefile provided with the firmware. SENSOR0 = 0123456789abcdef0123456789abcde0 SENSOR1 = 0123456789abcdef0123456789abcde1 SENSOR2 = 0123456789abcdef0123456789abcde2 SENSOR3 = 0123456789abcdef0123456789abcde3 Now you can compile and install the firmware as described above. ===== Preparing the Router ===== ==== Finding the right packages ==== Depending on your router you need different packages. [[OpenWRTFlukso]] provides a list of tested routers and the corresponding packages. If your router is not in the list you can try to find a compatible router that is listed or build your own packages from the sources in our git repository. The package you have to install is **fluksousb**. It's a meta package that depends on **msg-flukso**, which contains the necessary scripts to communicate with the mysmartgrid website, and **kmod-usb-serial-ftdi**. ==== The manual way ==== Download the packages for your router and install them as described in the [[http://wiki.openwrt.org/doc/packages|OpenWRT wiki]]. ==== The repository way ==== Add the repository for your router to /etc/opkg.conf and install them using opkg update && opkg install fluksousb ==== Configuration ==== You are almost done now. The last thing you have to do is adding the following lines to the system section in /etc/config/system on your router where device and key are the values you got from the mySmartGrid team. option device 0123456789abcdef0123456789abcdef option key 00112233445566778899aabbccddeeff