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!

Thursday, 10 March 2016

Dart SDK and Dartium 1.15.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Good news - Chocolatey has cleared the moderation backlog! Dart versions are far more up to date. You can install unmoderated versions by specifiying the install version during installation.

Chocolatey has also been updated with versions 1.14.1 and 1.14.2

Command line installation:

choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.15.0
To verify you have the right version on your path.
dart --version

Dart VM version: 1.15.0 (Wed Mar 09 10:07:59 2016) on "windows_x64"

Command line installation:

choco uninstall dartium

choco install -y dartium  -version 1.15.0