Wednesday, December 18, 2019

Pi Camera

Ref: https://pythonprogramming.net/camera-module-raspberry-pi-tutorials/?completed=/terminal-navigation-raspberry-pi-tutorials/

raspbi-config
 install python picamera

camera.py
-------------------------------------------------------------------------------------

#To record video or stills using pi camera

import picamera
import time

camera =  picamera.PiCamera()

#To invert image
camera.vflip = True

#To record  stills
camera.capture('example.jpg')

#To record vide0
#camera.start_recording('examplevid.h264')
#time.sleep(5)
#camera.stop_recording

 ---------------------------------------------------------------------------------------


Tuesday, December 17, 2019

openHAB Documentation

Ref : https://www.openhab.org/docs/installation/openhabian.html


Ref : https://www.openhab.org/docs/installation/openhabian.html#raspberry-pi-prepackaged-sd-card-image


Ref : Youtube Channel BK Hobbies

Software

Download openHABian  .img.xy


Image Writer send Image to SD Card.

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

OR
(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  :

http://192.168.1.1/     pass e..........wif

openhab    192.168.1.103    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@192.168.1.103

pass e.......ope

Run openHABian setup and configuration tool for openHAB;


Web Interface http://192.168.1.103:8080/start/index

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.

http://192.168.1.103:8080/paperui/index.html#/extensions?tab=binding 

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


etc/openhab2/items/home.items

-----------------------------------------------------------------------------------------------------


//Relays

//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"}

 //switches

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

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

---------------------------------------------------------------------------------------


 /etc/openhab2/sitemaps/demo.sitemap

//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: 

https://myopenhab.org/

/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

Forth

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.

GPSLogger

Owntracks

Weather Service Open Weather

API Key

c6ad3a0c202b51060e355f821482e1e7


https://www.openstreetmap.org/?mlat=-41.1582&mlon=146.1599#map=16/-41.1582/146.1599

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.



https://openaudible.org/

Launcher wont work.

Ref : https://github.com/openaudible/openaudible/issues/110

Fault : Didnt have Java Installed.

JDK 8

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

9kg

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. 

Saturday, November 30, 2019

Raspberry Pi Temp / Humidity Monitor

Dig out the other raspberry Pi and setup Raspbian Desktop.

Get the Arduino and hook up the Temp sensor. Tap into the Diesel Heater controller to see if it can be run from the Pi. A fuel level sensor is hooked up to the tank and it should be easy to hook that up to a GPIO pin.

IP Address

3    raspberrypi    192.168.1.101        B8-27-EB-9D-EC-54

ssh pi@192.168.1.101

pi@raspberrypi:/media/pi/pi_storage

Diesel Heater on the blink - again.

Symptoms:  blows smokey unignited fuel vapour out of the exhaust. Last time this happened I disconnected the fuel and ran it thorough a cuppla start cycles to lean it right out. That was about 4 tanks of 24 liters of fuel ago. It worked.

My initial diagnosis was that I had been running it on a low setting. I thought maybe it was running too cool and not de coking the combustion chamber.  I have never run it one any setting but 100 percent since the last failure.

Best fix ? Move North of the Tropic of Capricorn.

Problem solved. The connector that takes the start up current is not up to the job. Inadequate current gets to the glow plug to start combustion but a credible voltage drop still exists.

Fix:  involved breaking out the conductors to a more robust connector lug / bus style system.

Monday, October 28, 2019

Cooee Point






About 3 ks from the CBD. Penguins squall adorably most of the night and shearwaters perch on the beautiful sedimentary shore.



Saturday, September 28, 2019

Voice Coach / Personal Trainer

When I was in Perth I was working with a Vietnamese Student who was studying at Curtin. Hi English reading skills was excellent. My Vietnamese gets me funny looks when I try to order in restaurants. Since he had learned English from books his pronunciation was terrible. He was functionally unable to speak English.  When he was trying to organize a rental accommodation he was not taken seriously. The Estate Agents were wasting his time and trying to rip him off.

They tried to set up up in this flea pit for about twice what it was worth. "My Dude for this money, I could get you a penthouse in the CBD." He was smart and a quick learner. After a cuppla months I had him doing accents.

I had a cracking good time working with this guy and his family when they came from Vietnam to visit. It was an education for us both. As a gift the family took me to Vietnam. I took old Mate out bush and showed him the WA outback. He found it as weird as I found Hanoi Old City. He was just as lost as I would have been.

I was in LOVE! Vietnam is so exciting. When I got back to Perth it was like the streets were huge and deserted and the people were stumbling around half dead by comparison.

Vietnam is so beautiful is makes a grown man cry.  Now a lot of the weird things Me Old Mate did made perfect sense.

I advised him to pretend to be a poor student whos family were rice farmers from Ha Noi.  I was worried flashing his money around was going to get him set up to be cheated or worse. He chose not to take my advice. His Dad paid $60 k in cash for a brand new SUV. It worked out OK but after a few months he realized an SUV which was the only choice In Saigon, was not the right vehicle for WA.

It was a learning curve for us both.

I would like to do that or something similar again. This time a bit more professionally. Some sort of Liaising between Australia and Vietnam.

When I was in my 20s I was First Mate Diver on a Pearling Lugger in Exmouth Gulf.  All the crew were Vietnamese Refugees and I just loved those guys. I nearly drowned at one point and Minh saved my life. I have been interested in Vietnam since.

I got massive cred from Old Mate's family because I knew of Gen Vo Neyen Giap and how he handed the French their arses in Dien Bien Phu back in the 50s. Vietnam today is so young and vibrant. The war is ancient History to them. There was a bloke and the Fire Station who served in Vietnam in '68. He still calls them "nogs" and hates them.  What a terrible shame. I genuinely love them.

There are 300 roughly Vietnamese in Hobart.


Huế


I thought my eyes were playing tricks on me but the decks on barge closest, is actually underwater.

This hilltop overlooks the Perfume River. The birds were singing and the butterflies were flitting between the trees. Such tranquility, it is hard to credit the brutal history of the place. If it were me with a Kalashnikov or an M - 16 i would have just put it down and had a snooze. What was the point of it all?

Before I met with Old Mate and his family I wanted to go on a bit of a tour of Vietnam to get used to the vibe. I chose a trip with G Adventures who were just amazing. The tour guide was top notch. I told him I was a Tour Guide myself and I would be asking a lot of questions so he deserved to know why.

At the end of the tour I absolutely blitzed his customer feedback form with ticks. I gave him a very generous tip. There was nothing i could suggest he could do to improve his performance. He took on incredible tasks. He would often let us all just wander off to do our own thing. I would be terrified to do that. He did it and monitored us all as individuals. He was an education. A totally class act.

A note on tipping. Supposedly tipping is not necessary in Vietnam. I beg to differ. It is polite to give money in a card as a gift to begin a interaction then do the same afterward to say "thank you". Never look at the money until you are alone. Never wait for the shopkeep to make change.

Friday, September 27, 2019

Ulverstone. The Heap Brothers.

I spotted the garage the Heap Brothers had where they worked on British Motorcycles back when they were the only sort of motorcycle that even existed.

The owners of the property currently are upto thier elbows in Rieki Massage or some such nonsense.

Now GET OUT! 

Tuesday, September 17, 2019

The Most Hated Bird on the Planet

The masked lapwing (Vanellus miles), also known as the masked plover and often called the spur-winged plover or just plover.

At the outset I didn't consider pouring my venom on this particular individual, more the species as a whole, but now I am not so sure.








Sunday, September 15, 2019

X - Y Scanning CRT clock

https://www.youtube.com/watch?v=ZKYBnWyJpmU

This project is very  cool bit I reckon it would be nicer as an Atari style X - Y rendered image.

A CRT is an inherently analogue device and the raster scan scheme was an inherently analogue technique based on two sawtooth waveform generators.

The 80s machine code methodology was very cool but required a certain special type of autism to author. I did a bit of PDPII machine code once. Rather than sperg right out I am wondering if simply deciding the X - Y fields into a single table and asining each of the characters in thier respective positions a set of consecutive coordinates corresponding to the vertices of the characters.

Back up the line what be required is to generate a sequence of ordered pairs.

Bandwidth might be an issue but that then becomes a hardware problem. The image programming could be done in a fairly human friendly workspace.

Two 10? Bit ADC for X Y and a Z drive hooked up to a standard electrostatic CRT would be the display. Big would be better but the downside is the higher drive voltages.

The number rose would be a static lookup table. The hands would be generated using a sin function who input is fed by a timer.

The whole project would be extremely cool but ultimately space and time consuming and would probably culminate in something rather over wrought and appallingly baroque and steam punk.

Likely the "fake and gayness" would out way the coolness because it would be plain how much work went into the stupid thing. Now if you could pick up a vintage Oscilloscope that would change the whole outlook. You would just need an Arduino and a cuppla ADCs . Plus you could use the Oscilloscope as and Oscilloscope. Now THAT would be cool!!

Thursday, August 15, 2019

Vale Mum

I was warned when I first took on ownership of a Mother™ that they were fraught with all sorts of issues. In constant need of maintenance, both of them and thier consequent infrastucture. In short there is so much to go wrong with them pity help the unfortunate owner of such an appliance.

Truth  be told I got relatively trouble free service from this unit for nigh on 60 years. Your mileage may vary however.

It all stopped happening for Mum  27 August 2019. I dont want to speculate on the medical side of things but am wanting some answers as to why or even if her drip was set up so as not to provide hydration. Non medical people in the grip of deep grief, beware of second guessing the professionals. That said nothing they could have done or not would make her any less dead now. Dieing will never be a pleasant experience - price you pay for the joy of living.

Love you so much Mum....

It was so much fun !!

Tuesday, February 26, 2019

Böltonwagen Specs


CVM 9.0 Tonne
Tare ??? Find a Weighbridge. 

CGM 14.0 Tonne
Model : N - 1630
Chassis CMA 86H 00138
Date 1 1984.
International Harvester AKA Nissan UD Acco.

Monday, February 25, 2019

Böltonwagen Tour - Feb

Going from the stationary cluttered building site to the more mobile, more comfortable and far more aesthetically uplifting. Plenty of construction and invention yet to be undertaken but this will be more in the nature of embellishment than survival. 

Collage

Every library has a shelf of books to be sold off for a cuppla bucks. Making up a collage is fun and the results quite pleasant. I find Aquadhere applied neat on the back. Sand the spikes of wood off the ply wall then dampen with a sponge. Stick the cutout in place then smear a  coat of Aquadhere over the outside surface and squeegee with a wet sponge to change out blobs and bubbles. Less glue will leave a friable paper that peels away from the wall. 





















Dictionary

Tuesday, February 19, 2019

R/C Simulators.

Just as whacking a tennis ball isn't supposed to be tennis - it is well worthwhile as a short interlude for relaxation and to help wire up one's reflexes for more articulate brain / hand coordination.

# 1 Multiflight - good graphics and pleasant to operate. Windows.


#2 PicaSim - Medium Graphics and has a variety of senarios. Windows.


#3 CRRCSim - crude graphics and GUI. Quite pleasant to use. Linux.

All of them require a bit of fiddling to setup. This is part of the familiarization process and becomes less frustrating every time.