Web Widget 1st Cut

BloomSky Dashboard – Unofficial Web Widget 1st Cut

The first attempt looks like this:

To add this into your page please take the following code inserting your BloomSky API Key:

Change this line:

GetBloomSkyHTML('<YourAPIKey>', '1');
<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script>
<link href="http://pcst.co.uk/BloomSkyUnofficial/style.css" rel="stylesheet">
<script src='http://pcst.co.uk/BloomSkyUnofficial/BloomSkyUnofficial.js' type='text/javascript'></script>
<div id="BloomSkyUnoffical"></div>
<script type="text/javascript">
    GetBloomSkyHTML('<YourAPIKey>', '1');
</script>
    
       

We will be adding more refinements into the widget over the coming days.

BloomSky Dashboard – Unofficial

Welcome to the BloomSky Dashboard – Unofficial project pages.

After my weather station gave up the ghost I decided to try a BloomSky from https://www.bloomsky.com and while I love the photos I was not too impressed with the ability to store data and serve up the information on personal websites so I have decided to use the APIs that they provide to fill the gap.

This following pages will detail the project & progress.

If you would like to get involved please let me know.

Enjoy.

PowerShell Arrays and that annoying number on the screen

When you create an array and populate it in PowerShell the number of elements is written out to the screen, very annoying.

e.g.

function Array-Error() 
{ 
    $Array = New-Object System.Collections.ArrayList 
    $Return = "ReturnValue" 
 
    $Array.Add("Value1") 
    $Array.Add("Value2") 
    $Array.Add("Value3") 
    $Array.Add("Value4") 
 
    return $return 
}
 
$display = Array-Error 
write-host -ForegroundColor Red $display

Output

0 1 2 3 ReturnValue

So how do we stop the numbers from being displayed to the screen, while Fix 2 is the proper way I like fix 1 as it reminds me of passing things over to “/dev/null” when I was a UNIX chap.

function Array-Fix1() 
{ 
    $Array = New-Object System.Collections.ArrayList 
    $Return = "ReturnValue" 
 
    $Array.Add("Value1") > $null 
    $Array.Add("Value2") > $null 
    $Array.Add("Value3") > $null 
    $Array.Add("Value4") > $null 
 
    return $return 
} 
 
$display = Array-Fix1 
write-host -ForegroundColor Magenta $display

Output

ReturnValue

or

function Array-Fix2() 
{ 
    $Array = New-Object System.Collections.ArrayList 
    $Return = "ReturnValue" 
 
    $Array.Add("Value1") | Out-Null 
    $Array.Add("Value2") | Out-Null 
    $Array.Add("Value3") | Out-Null 
    $Array.Add("Value4") | Out-Null 
 
    return $return 
} 
 
$display = Array-Fix2 
write-host -ForegroundColor Magenta $display

Output

ReturnValue

Gary Numan – 24 September 2016

Today I got to go to a Gary Numan gig in Portsmouth and t was fantastic.

He was revisiting the Replicas, The Pleasure Principle & Telekon albums bringing them bang up to date and he did a fantastic job, I also get to see the same just up the coast in Bexhill on Monday evening as well, I was able to get a few shots tonight but with a bit of luck on Monday I should be able to get some better ones.