You will need a separate home WiFi router with internet connection. The MR3020 will connect to it as a client.

What does it look like?

The USB Weather Board is installed outside in the balcony.
There are slots cut out in the box for exposing the sensors to the atmosphere.
The TL-MR3020 Pocket WiFi Router is mounted inside.
The power is drawn from the AC mains outlet meant for Air Conditioning.

The USB Weather Board is discontinued now and is now replaced with Weather Shield.

The Weather Shield when paired with an Arduino UNO R3 would function exactly like the older USB Weather Board.

This new combo of Weather Shield +Arduino UNO R3 costs lesser than the original USB Weather Board.

How did you build it?

Get a TL-MR3020 router and connected it to your laptop using a straight LAN cable.

Flash it with OpenWRT. Look here to know how to do that. Make sure to follow the "Method Using Web GUI". Use only Ethernet while flashing the router - do not use WiFi.

Once you are done flashing, the first thing you will have to is to set the default password for WebGUI. Punch in 192.168.1.1 in your browser and OpenWRT will ask you to set the password.

Setting the password for OpenWRT

Next configure the router to act as a WiFi client instead of a WiFi access point. Navigate to Network>WiFi on the OpenWRT Web GUI. You will note that there is an entry "Generic MAC80211 802.11bgn (radio0)". This is the WiFi Access Point entry. Click the Remove button and delete this network.

Delete the entry for WiFi Access Point

Now while on the same page, click on "Scan" and scroll through the list of network and when you find the entry for your home network, click "Join Network". You will be asked to enter the password.

Join your home WiFi network. MR3020 will not become a client of your
home WiFi Router though which it will access the internet

Modify the firewall rules. Navigate to Network>Firewall on the Web GUI and set all the Inputs to accept, all the Outputs to accept and all Forward to reject.

Firewall rules: Set all Inputs and Outputs to Accept

At this point you can unplug the ethernet cable from your M3020 and start accessing it over WiFi. Take note that the IP address for the MR3020 will be different now - it will be the one assigned by your home WiFi Router. Use this new IP address to access the MR3020's OpenWRT Web GUI.

The MR3020 has 4MB of flash memory. After flashing the router with OpenWRT, only 840 kilobytes are left. You can check this under System>Software on the Web GUI. This page will allow you to install additional software that we may require. But the problem is all the software that we need will require more than 840KB of space.

Only 840 KB are available on MR3020's internal flash for our use.

So what we need to do is connect an external USB flash drive and mount the root filesystem on it. This will give us access of multiple gigabytes of space and we can install all the software we want on the MR3020. The MR3020 only has the one USB port. So we need to use a small USB hub which will allow us to connect the USB flash drive as well as the USB Weather Board to it. Before we move the rootfs to external USB drive, we need to install kernel mode drivers for USB hub and USB flash drive. The next steps will show you how to do that. Do not connect the USB hub and the flash drive to MR3020 yet.

MR3020 with USB Hub, Flash Drive and wire going to the Weather Board.

Download PuTTY on your laptop and connect to the MR3020 to gain console access. Start PuTTY, punch in the MR3020's IP address and click open.

Gaining console access using PuTTY

While connecting, PuTTY main complain about the keys not being present in the cache, just ignore the message by pressing yes.

When the console comes up, you will be asked for a login name. Punch in "root", next punch in the password - its the same that you initially set on the Web GUI.

Console access to MR3020 using PuTTY

Now we need to fetch some packages from the internet and install it. We could have done it through System>Software from the Web GUI but this method is better and faster. Issue the commandopkg updateto update the package list. Next issue the following command to install the drivers:opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-scsi-core

USB Drivers Installed

Now before we connect the flash drive and USB hub to the MR3020, we need to format the flash drive. You will need a Linux computer for this. I run Ubuntu using VirtualBox on my Windows Laptop and used that to format the flash drive. The filesystem I chose was ext4.

Formatting the USB flash driver before use with the MR3020

Next, turn off your MR3020, attach the USB hub and the flash driver and reconnect to its console using PuTTY.

We need to check the path where MR3020 has mounted the flash drive. Execute the commandls /dev/sd*to know the path. In my case this was /dev/sdb1. In your case it could be /dev/sda1. Use this path in the following steps wherever required.

The remaining steps required to move the rootfs to the flash drive have been taken from this page here. Mount the USB stick and copy the flash /overlay to the USB stick by executing the following four commands in succession:

mkdir -p /mnt/usb

mount -t vfat /dev/sdb1 /mnt/usb

tar -C /overlay -cvf - . | tar -C /mnt/usb -xvf -

vi /etc/config/fstab

The last of the above four commands will open a text editor. Press I to insert and modify the file. The should look like this:config 'mount' option target /overlay option device /dev/sdb1 option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0

After editing the file press Escape on your keyboard followed by colon (:) and then type "wq!" and press Enter to save the file.

Reboot the router and check if you have gained the extra space of the USB flash drive using the command df -h or via the Web GUI.

Confirming that the rootfs now has 3.4 GB of Space (used a 4GB Flash drive)
via the SSH console using the command df -h

Confirming the space gain using Web GUI

Next we need some additional software - utilities (curl) for communicating with Xively and drivers for FT232 USB-UART chip present on the USB Weather Board. To install all this, issue the following command via the PuTTY Console:opkg install kmod-usb-serial-ftdi curl coreutils-stty usbutilsAlternatively, if you dont want to use the console, you can install these packages one by one using the Web GUI via System>Software.

Now before you connect the USB Weather Board to the MR3020, connect it to a laptop and configure it with the following settings (Refer to the PDF user manual of the weather board to know how to do this):

Data format: CSV

Units: SI

Pressure: Absolute

Baud: 9600

Sample Rate: 5 seconds

I enclosed the Sparkfun USB Weather Board in a small Lunch Box.
Made holes in it so that the sensors stay exposed to the environment.
Used blue-tac to seal the sides of the cut out hole.

Turn off the MR3020 and plug in the USB Weather Board. Turn the router on and check if the FT232 Chip was detected and enumerated correctly. Use the command ls /dev and check if a new device "ttyUSB0" appears there

Checking if /dev/ttyUSB0 appears

The lsusb commands can also be used to check the list of devices
connected to MR3020 over USB

Before the next step, you need to create an account at www.xively.com and create a device there. Note down the API key and the feed ID.

Copy the following code into a text file on your Windows Laptop and and save it as "weather.sh". Modify the API_KEY and the FEED_ID and change them to the one assigned to your own Xively account/device while doing so.

Important Step: You will need to convert the line ending from Windows format to Linux Format. Refer to this blog post to know how to do this.

Copy the file weather.sh to the MR3020 using WinSCP AND set the executable permissions for it. WinSCP works just like PuTTY but instead of gaining console access, it is used to copy files to the target. Copy the weather.sh file to /root.

Start WinSCP, set the file protocol to SCP, enter the IP address.
Enter the user name as "root" and password that you had set
through the Web GUI and click Login.

Copy the Weather.sh to /root on the MR3020

Right click on the weather.sh file on MR3020 in WinSCP, select properties.
Check the boxes next to the X bits and click OK.

The last step requires you to set the script as a cron job. Open the Web GUI and set the script to execute every minute. Do this via System > Scheduled Tasks. Punch in the following line in the text box, save it and reboot your MR3020 and it will start uploading the sensor readings to your Xively account every minute:* * * * * /root/weather.sh

Adding a cron job to MR3020

My Weather Station has been running reliably for more than 2 months now. It has been uploading the reading every minute. You can look at the feed here https://xively.com/feeds/1882537129
You can see the graphs for data accumulated during the last 3 month period.

Adding entry for the script to the cron tab ensures that it gets back to work properly and reliably even after power cycles and power failures.

Update 2014-02-27 :
I have been using the mains socket meant for air conditioning to power the weather station for the past 3 months. Now that summer is almost here (and so are regular power cuts), I decided to switch to the phase that is routed through the Uninterrupted Power Supply. I took the opportunity to mount everything in a single new box. Here is what it looks like now:

Update 2014-10-16:
The weather station is 10 months old now (I put it together in December 2013) and since the last update, I encountered a few more problems which I solved like so:

The MR3020 and the Sparkfun weather board are now enclosed in separate lunchboxes. Notice the Ethernet cable coming out of the box on the left. I now use Ethernet instead of WiFi to provide internet access to MR3020. I already had a spare RJ45 on the switchboard nearby in the room. I had asked the builder to route CAT5e cables through the concealed wiring along with the power cables while the building was being constructed.

The previous lunchbox now has a hole through which the 4GB flash drive sticks out and dissipates all its heat. The USB flash drive is the metal thingy below the blue colored USB hub.

Connectivity IssuesSo I noticed that MR3020 started losing WiFi connection to my home router and then it would stay unconnected for days until I happened to check the Xively feed followed by power cycling the MR3020. I investigated the problem by connecting my laptop as an Ethernet client to MR3020 while it tried to connecting to my home WiFi router and observing the syslogs. The logs showed that MR3020 wasn't able to associate and stay associated with my home router and messages similar to the ones like this kept being spewed out into the syslog.

I came up with the following reasons either or all of which may have contributed to this problem.

I had relocated my home router to a more central location within my home. This meant moving it further away from the weather station thereby causing signal degradation

The daily exposure to the elements (daytime heat and night time cold) may have caused the RF front-end components in MR3020 to drift causing the RF section to go a bit out of tuning.

As more and more tenants shifted into the various apartments in and around my society, they started installing their own WiFi Routers causing crowding within the spectrum thereby causing further deterioration of the signal.

To solve these issues, I tried switching WiFi channel to the lesser crowded one but that didn't work. Ultimately I reconfigured the MR3020 - disabled its WiFi and switched to using Ethernet as the interface for connecting to the internet. To ensure further stability, I manually assigned a static local IP address to it - did not want to depend on DHCP from my home router.

I also configured MR3020 to send syslog messages to papertrailapp.com so that I could remotely view the syslog messages from it. Just connect to your MR3020 using PuTTY and follow the instructions given at https://papertrailapp.com/systems/setup forsyslog-ng.conf

Readings getting affected by heatingMR3020 and the USB flash drive generate a lot of heat when powered. This was causing inaccuracy in the temperature readings taken by the Sparkfun weather board which itself I had mounted in the same enclosure.

To fix that problem, I removed the Sparkfun weather board and mounted it in a separate enclosure of its own isolating it from the heat generating components. I used hot glue to stick this new enclosure to the previous one which still housed the MR3020 (and USB flash drive and power supply)

I also made a hole in the previous enclosure housing the MR3020 such that the 4GB flash drive could stick out of that hole and dissipate its heat. The flash drive generated the most heat and this allowed it to stay cool.

Power Line CommunicationsMost of the switch boards in my house have a RJ45 connector which provide a wired connection to my home router (via a 8 port switch). I had asked the builder to route CAT5e cables through the concealed wiring along with the power cables while the building was being constructed. In case you don't have an easy and non-ugly way to route a CAT5e cable to the router, you can use power line communications - using power cables to transfer ethernet frames between two points. The following devices which used in pairs allows you to turn power outlet into ethernet jacks. I have tested both of them and they work reliably

COMFAST CF-WP200M 200Mbps RJ45 Mini HomePlug AV
Install one near your weather station and connect it to the MR3020 using a CAT5 cable.
Install the other one near your home router and stick a CAT5 cable between them.
And your MR3020 shall have internet. no configuration required.

Linksys PLWK400
These are more expensive ones because they allow you to
extend the range of your WiFi network using power line communication.
They also double up as point to point Ethernet links like the COMFAST ones.

I modified my Weather Station to use the COMFAST PLC modules when the WiFi
link started failing due to spectrum overcrowding. The COMFAST modules worked well for a few week,
but afterwards they too started glitching and had to be rebooted every now and then.
I finally did away with Powerline as well as WiFi and installed a CAT5 wire from my Router to the weather station.
It hasn't glitched even once since then.

Xively has since changed it business model and is no longer favourable for IoT DIYers. Please consider using www.thingspeak.com for your future projects. ThingSpeak is simpler to use and has a straightforward interface.

Final revision with Ethernet cable from my WiFi router running into the Weather Station.The Ethernet cable and power cable are both enclosed in the plastic conduits.

@Pedro Guillem OMG this is awesome! This inspires me to keep blogging about my projects so that others can make use of it! Thanks for acknowledging me and best of luck for your project. Let me know If I can be of anymore help. The project sounds awesome!

portable wind meters have utmost usefulness to researchers, meteorologist and to barometric analyst. With this barometric pressure can be measured to find things, research on weathers,forecasting information regarding it can be known.I learnt using it when I was a student of meteorology.