Friday, 25 March 2016

A Web Status Panel On The Raspberry Pi - Part One

I purchased a RaspberryPi 2 late last year and it has been sadly underused. Time to change all that - let's use Dart to build a simple web status panel! Of course, it will run on any platform that runs the Dart VM so don't worry if you don't have a Pi!

The ARMv7 version of Dart is available from here - select Linux from the OS dropdown if it is not shown automatically. [Really should be a little more obvious guys :-)]

The code for the web status panel is available from GitHub. There's not a great deal to write up about it! The code just interrogates various system details via the Platform class an pops them into a simple template.

A couple of configuration points. Firstly, you will need to set you own IP on the server. Secondly, depending on the version of Linux you are using on the system, you may need to open up the port through the firewall software.

The current panel works cross-platform as it only relies on details exposed via the dart:io package. To get more useful information we will look at running external commands and feeding them back to the web status pane. Have fun!