Wednesday, December 18, 2019

Pi Camera


 install python picamera

#To record video or stills using pi camera

import picamera
import time

camera =  picamera.PiCamera()

#To invert image
camera.vflip = True

#To record  stills

#To record vide0


Tuesday, December 17, 2019

openHAB Documentation

Ref :

Ref :

Ref : Youtube Channel BK Hobbies


Download openHABian  .img.xy

Image Writer send Image to SD Card.

Fire up in ethernet (internet ) connected Pi  and wait for autosetup to complete.

(Use text editor to setup Wi Fi in config files in the SD card before you install it in the Pi or the automatic web install wont work.)

Checking IPs on network

from router  :     pass e..........wif

openhab    B8-27-EB-AD-62-6D

Using the TL-MR3420 Manual C 8.4 Bind the MAC and IP. This serves an unchanging IP with DHCP.

 SAMBA or SSH into the Pi on your LAN.

mark@mark-HP-15-Notebook-PC:~$ ssh openhabian@

pass e.......ope

Run openHABian setup and configuration tool for openHAB;

Web Interface

Configure GPIO Binding from Paper UI

GPIO Binding.

Note : GPIO Binding Must be reinstalled in the Openhab GUI on repair / replacement of the system. It is in PaperUI Add ons. 

GPIO Binding binding-gpio1 - 1.13.0

Relay Board 1

GND                  GRN

GPIO 26 - IN1   BLU

GPIO 19 - IN2   PUR

GPIO 13 - IN3   GRY

GPIO   6 - IN4   WH

VCC                   RED

Relay Board 2

GND                   GRN

GPIO   5  - IN1   BLU

GPIO   9  - IN2   PUR

GPIO  22 - IN3   GRY

GPIO  27 - IN4   WH

VCC                    RED


Items and Sitemap

Demo is a good starting point. It provides a guide to layout




//Channels 2 , 3 , 4 will revert to ON in failure mode to give emergency lighting.

Switch channel1 "Channel 1" { gpio="pin:26 activelow:yes" }

Switch channel2 "Channel 2" { gpio="pin:19 activelow:no" }

Switch channel3 "Channel 3" { gpio="pin:13 activelow:no"}

Switch channel4 "Channel 4" { gpio="pin:6 activelow:no"}

Switch channel5 "Channel 5" { gpio="pin:5 activelow:yes" }

Switch channel6 "Channel 6" { gpio="pin:9 activelow:yes" }

Switch channel7 "Channel 7" { gpio="pin:22 activelow:yes"}

Switch channel8 "Channel 8" { gpio="pin:27 activelow:yes"}


 //Contact DoorSensor "Door Sensor [%s]" { gpio="pin:16 debounce:10 activelow:yes" }

 //Contact Button "Button [%s]" { gpio="pin:24 activelow:yes"



//Dec 17 2019 Rebuild

sitemap home label="Uberboltonwagen"
    Frame label="Lights" {
                Switch item=channel1 label="Desk"
                Switch item=channel2 label="Bed Reading"
                Switch item=channel3 label="Bathroom"
                Switch item=channel4 label="Bed Space"
                Switch item=channel5 label="TBA1"
                Switch item=channel6 label="Outside"
                Switch item=channel7 label="TBA3"
                Switch item=channel8 label="Galley"
    /*Frame label="Date" {
                Text item=CurrentDate

Text Editor

SUDO NANO is good but a crude. I setup Visual Studio Code with the openHAB extension to give me access to a more formal text editor. I couldn't get it to connect directly by entering in a host IP. Instead I accessed the files using SAMBA and opened them from my remote Computer using Visual Studio Code.  

Cloud Access:

/var/lib/openhab2/uuid /var/lib/openhab2/openhabcloud/secret ; you can also run this to find it, and it will search everywhere find / -name secret

Thursday, December 12, 2019

Solar Installed.

1.5 kW of panels and 400Ah batteries installed. Overkill on the solar perhaps but it should suffice in overcast locations.   

The Epever Controller is delivering 3.4 amps @ 24v in a very overcast sky. It has a RS 485 socket on it and runs modbus,.

The monitoring is all very rudimentry.

240w-250w panels - about 1650mmx1000mm
$90 each

If anyone you know is looking at solar both on and off grid, feel free to contact me.
I mainly do commercial sales, but I know residential off my head anyway.

Vlad Kolman

Vladimir Kolman
Energy Consultant

0407 389 601

Railton Pub

Owner Robbie is a lovely bloke. He has camping out back and a 5 dollar for 5 minute hot shower. Beautiful old building.

Tuesday, December 10, 2019


Incredibly fast flowing river full of snags. If you fell in it would be curtains.

Sunday, December 8, 2019

Geolocation and Weather Display

Need geolocation to interface with Astro Maps and Weather.



Weather Service Open Weather



Single Board Computer

Presently I have two quite reasonable laptops a tablet and a few Raspberry Pi 3s.

It would be nice to get a reasonable sized monitor to run off 19 volts and a NUC or and SBC processor. Cash is a bit tight and I don't really need blustering performance. Power consumption is also a consideration being off grid.

The Jetson Nano is interesting.

The first step is to sort through my DC to DC converters and find which do what, if anything. 

The DC charger for the Lenovo Yoga is 20v @ 2A. Need to get a pinout for the USB style connector. 

Saturday, December 7, 2019

Yolla Tavern

Beautiful Old Building.

Ulverstone River Oysters

The boat ramp has quite a tide and at ebb the flats expose tiny oysters. When the sun is shining the water sparks.

These chaps sat with the motor in the drink and spinning away under the starter for minutes. Never fired once.  "She hasn't been started in a long time". I went back half an hour later, the trailer was parked and the boat nowhere to be seen.

Thursday, December 5, 2019

Audible Spokenbooks in Linux

Last time I looked Audible didnt have a Linux app. I use my tablet to listen to spoken books which was kinda annoying.

Launcher wont work.

Ref :

Fault : Didnt have Java Installed.


Debian, Ubuntu, etc.

On the command line, type:

    $ sudo apt-get install openjdk-8-jre

The openjdk-8-jre package contains just the Java Runtime Environment.

Sunday, December 1, 2019

LPG System

1L of LPG weighs 0.51kg

8.5 kg plus aprox 7kg empty.

16.6 litres

417 Mj

116 kWh

4.6 m^3 

310 mm dia

460 mm High


I had the system plumbed up and it wasn't ticketed. The job was rough as guts. The connector to the instantaneous gas system was misidentified as a sealing fitting and it was actually a flat flange. I kinda suspected this and meant to verify it. A washer probably would have prevented the fire which destroyed the heater unit. It looks impossible to get a replacement in Tasmania so I am having to "Pommie Wash" at present.