Setup DC01

From Meteohub Wiki
Revision as of 14:44, 28 September 2021 by Admin (talk | contribs) (Created page with "== Put Meteohub Installer Image onto USB stick == Download Meteohub DC01 installer image from [ here]. Unpack the ZIP archive. Put resulting two...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Put Meteohub Installer Image onto USB stick

Download Meteohub DC01 installer image from here. Unpack the ZIP archive. Put resulting two files (mhdc01.gz and onto a USB stick. You can use a regular formatted USB stick (VFAT, ext2/3, etc) for that. Apart from installation onto other Meteohub platforms you don't have to use special image writing programs like Diskimage, Imagewrite, dd or similar. USB stick will need about 400 MB free space to hold the two files.

Mount SSD

After installation has been done, Meteohub will run entirely on the SSD installed into the Silverstone DC01. Therefore, you have to put a SSD into the DC01 before we can proceed. Any SATA SSD with at least 4 GB will do. We recommend larger ones, but more than 16 GB wil hardly ever been used by Meteohub. I had made good experience with the pretty fast OCZ Vertex Plus 30GB wich can be purchased for about 40 Euro when writing this. Installation into the DC01 is pretty simple. Remove the tiny screws on the bottom (mostly just 2 of the screws are used when shipped from factory, 2 more screws are in the accessory pack) and lift the metal cover. You will see the mounting plate for the SSD. Put in the unprepared SSD, fix SSD with two larger screws provided in the accessory pack. That's all you physically have to do with the unit. Put the cover back on and fasten the tiny screws at the bottom.

Start DC01

Connect DC01 with your LAN, put in the power plug. Blue power LED on front of the DC01 will go on and will start blinking. Wait until blinking stops and LED shows steady blue again. In order to patch the DC01 to a meteohub you have to put some prepared data onto just installed SSD. To provide that data, please plugin the prepared USB stick (equipped with the files downloaded before) into one of the USB jacks at the back of the DC01.

Login via SSH

In order to do the Meteohub setup you have to login to the DC01 via SSH. There are lots of SSH clients around. On linux SSH client is preinstalled, on Windows you can use PUTTY. To login via SSH you need thre things.

  1. IP of the target system. The DC01 receives a dynamic IP from your router via DHCP. To find out it's IP, you can inspect your router logs which might tell you what IP has been recently provided. You can also make use of an IP scanning tool like "Advanced IP Scanner" which can be downloaded here. When using this tool just press "Scanning" button in upper left and wait until an entry with name "isharing" like this appears. The listed IP is the one you need to contact the device
  2. User name: root
  3. Password: toor

Use a SSH client of your choice to login with above credentials (ssh default port is 22, just in case your client does ask for it). When you login, you see a linux prompt like this:

Fedora release 12 (Constantine)
Kernel on an armv6l (/dev/ttyS0)

isharing login: root
[root@isharing ~]#

Setup Meteohub

Now type in "mount | grep USB" and you will see the path how to reach data on your USB stick:

[root@isharing ~]# mount | fgrep USB
/dev/sdb1 on /media/USBCOPY-P1 type ext2 (rw,relatime)

As you can see from the output, data on USB stick is available at "/media/USBCOPY-P1". Therefore, you start the setup script via "sh /media/USBCOPY-P1/".

[root@isharing ~]# sh /media/USBCOPY-P1/
USB stick mounted as /media/USBCOPY-P1.
Target drive found: OCZ VERTEX PLUS  (28626 MB)
Press any key to start setup of target drive...

The started script reports that a OCZ Vertex Plus SSD with a capacity of 28GB is installed. If the right disk is addressed (as long as you have only one connected I would wonder if it reports something unexpected) press a key to start initialization of the disk. This of course will delete all data previously on the disk, so be aware of what you are doing. Installation continues as follows:

System will shut down. Please wait until power LED
turns off. Detach USB stick and power on again.

On power-on Meteohub will continue setup process.
Please be patient, system will shut down again,
when setup of Meteohub is complete (approx. 3 minutes).

After that Meteohub shuts down again and is ready
to use. When you power up Meteohub, the power LED
will signal its IP by a sequence of purple blinks and
will finally switch to steady purple, which tells you
that the system is fully operational and that you can
login to web interface (user and password 'meteohub').

Broadcast message from root@isharing
        (/dev/ttyS0) at 13:52 ...

The system is going down for halt NOW!

... lots of messages I did purge ...

Halting system...
Power down.

When power LED goes off system has halted and SSD has been prepared to start with Meteohub. You should now pull out the USB stick as we don't need it anymore.

Start Meteohub

When you power on the DC01 again (by pressing the power button at the back) the power LED lights blue. As Meteohub has to fully setup the SSD in two waves the system will not boot straight into operation but will do two reboots until it is ready to go. You won't get notice of it, it only takes a bit longer as you might expect a regular boot to take. So be patient. After about 1-3 minutes the LED does a few slow purple blinks and will then go off completely. This indicates that the Meteohub installation is complete.

  1. When you power the system up again, the DC01 is a fully applied Meteohub system. Power LED will light blue, will signal it's IP via purple blinks after boot and will switch to steady purple which indicates that Meteohub is operational. Please be not astonished that the DC01 might have received a different IP compared to your SSH session. Please use the same technique as before to get the valid IP. When you use "Advanced IP Scanner" the unit is now displayed with name METEOHUB.
  2. Browser on your laptop/desktop can also reach the Meteohub system given by your DHCP server (will be mostly your router) and at the emergency IP ("").
  3. When you login to Meteohub with your browser [b]user name is "meteohub", password is "meteohub"[/b]. To reach the emergency IP with your browser you probably have to do reconfigure the IP address of your desktop/laptop to reside the same subnet as Meteohub. Having reached the Meteohub web interface you can set the IP persistently.

Read the Blinks

During boot the power LED turns into steady blue. After a while (a minute or so) the power LED starts signaling it's IP via purple blinks of the blue power LED. When signaling is finished, power LED changes to steady purple.

The IP consists of four numbers in the range of 0 to 255 separated by dots. Meteohub signals each of the four numbers by sending for each digit a seqence of short purple blinks, where the number of blinks in the sequence represents the digit (1 = one blink, ..., 0 = ten blinks). Dots between numbers are represented by a long purple blink. The example below explains how blinking for IP would look like. Meaning of symbols is

  • "_" stands for power LED blue
  • "*" stands for power LED purple

Sequence for will look like this:

192.    ___*___*_*_*_*_*_*_*_*_*___*_*___****
168.    ___*___*_*_*_*_*_*___*_*_*_*_*_*_*_*___****
0.      ___*_*_*_*_*_*_*_*_*_*___****
23      ___*_*___*_*_*

Revert to a regular DC01

The whole process did not change anything to the DC01 system stored on internal NAND. Put out the SSD and the unit is operational as if just received from stock. When you reformat the SSD, you can even use the SSD with regular DC01 operation. While the DC01 is in Meteohub mode, none of the original DC01 features can be used. Meteohub is a completely seperate linux system that does not start any of the stock DC01 services.