All posts tagged Open source

This is a close up picture of our new sprinkler (irrigation) computer controller.

It’s a Raspberry PI with a PiFace board and a extra board with 2 relays. So it’s effectively a 4 channel relay based controller, using Domoticz software to control the sprinkler valves.

IMG_0003

At long last a case for the Raspberry Pi with a piTFT screen that you can actually make look neat. From LadyAda of course.

201407300622.jpg

I;ve been using “uptime” as a simple monitor of of all our web services – and somehow one of the services were in state “Paused”.

It took me a long time (6 months) to find out how to restart this – and as with most such cases the explanation was simple

201407272155.jpg

On the left hand site of the polling interval timer was a start/stop button……now I fell a bit stupid…

Really interesting :

Instead, we adopted the bare-metal and container compute model and have built one giant unified platform, running all 250,000 environments with hundreds of thousands of orchestrated containers, serving billions of pageviews a month. This unified platform gives us a huge operational advantage versus the VM-centric hosting architecture.

[From Containers running on Bare-metal IaaS will Destroy the EC2 Virtualization Model of Cloud Computing | Pantheon]

At long last I found out how to use uPnP to get status info put of my Frtizbox – as the old script I had used stopped working after the last software upgrade.

And the answer was on this page.

It contains a perl script that list all counters and variables that can be downloaded by using the uPnP protocol.

To use this you can call the perl script like this :

perl upnp.perl FRITZ | egrep GetTotalBytes | head -2

and I got

urn:upnp-org:serviceId:WANCommonIFC1::GetTotalBytesSent:NewTotalBytesSent = 398046387

urn:upnp-org:serviceId:WANCommonIFC1::GetTotalBytesReceived:NewTotalBytesReceived = 2884042651

which is the total number bytes sent and received since last restart.

Had a bit of debugging to do on my project when I attached the second ring quarter – it did not work.

In the end I found that one of the 4 90 degree segments was completely dead – so currently my project looks like this

IMG_0467

My first test of using FadeCandy to run a Adafruit Neopixel ring looks like this

201404302112.jpg

and it shows all the standard Fadecandy demos – so I seem to have connected most things correctly.

Now on to write my own code.

I’ve just looked at ordering one of these – and the only thing preventing it is the very large postage costs….I may have to think about this.

OpenSprinkler Pi (OSPi) is a sprinkler / irrigation extension board for Raspberry Pi (RPi). It allows RPi to directly access and control sprinkler valves. This is version 1.4 with OpenSprinkler injection molded enclosure. The hardware components include on-board 24V AC to 5V DC switching regulator, solenoid drivers, DS1307 RTC and battery, PCF8591T 8-bit A/D D/A converter (4 input and 1 output channels), fuse, rain sensor terminal, 120V/2A mini relay, and per-station transient voltage suppressor (bidirectional TVS).

201404300833.jpg

[From OpenSprinkler Pi (OSPi) v1.4]

Courtesy of Dave Winer – a really interesting little utility:

WordPress-to-OPML source
As promised, I have released the source for the server that converts a WordPress blog into a single Fargo-editable outline. It’s written in JavaScript and runs in node.js.#

The format is OPML, which has many other uses. #

It’s provided under the MIT license.#

https://github.com/scripting/wp2opml#

[From WordPress-to-OPML source]

Ah – the core of the Facecandy board software – I now need to get my head around this!

OPC describes the format of a stream of bytes, typically sent over a TCP connection, to control an array of RGB lights (pixels). The pixels are assumed to be arranged in strands, where each pixel has a fixed index in its strand.

The purpose of OPC is to separate the generation of light patterns from the control of hardware lights. If you write a program that emits OPC messages, it will be independent of the lighting hardware. You can write your animation or interactive display program once, and then use the same program with many kinds of lighting hardware, as well as a simulator that lets you test and visualize your program before wiring it to real lights.

[From Open Pixel Control]

123416Next