Saturday, November 26, 2016

Getting all your Drives Linux - Memory games

One of the things that happened to me through using the Raspberry Pi and Linux is that over time I have learnt a few things to type into the shell to get around. 

this is my blog to self of all I can remember in 5 mins

cd  -  change directory

df -h   - list files and sizes

sudo nano /etc/fstab    - describe what drives get mounted at boot

cp +rwx /location directory  /destination directory

chmod - change permissions

chown - change owner


cd ./directory  a directory with in the present directory

ls - list directory

apt-get install package 

crontab -e  -edit the cron tab

ctrl c - escape current process

python /programme path  - run a programme

reboot - reboot the pi

rasp-config


TIMES up 

Note to self must do better

Saturday, November 19, 2016

Solving no network for my pi

On a reboot I was able to ssh into the device but not the internet.

What was effected was both the gateway and DNS server settings

Tested gateway issue through trying to ping google

ping 74.125.29.138 Google

Gateway resolution 

The solution was to add a default gateway which was missing from the routing table

sudo route add default gw 192.168.1.1
With the internet established I was still unable to intstall packages or

apt-get update

This was caused by being unable to resolve the address

mirrordirector.raspbian.org/raspbian

DNS Resolution

Edited the file /etc/resolv.conf

to add the google name servers

done by

sudo nano /etc/resolv.conf

added the following two lines

nameserver 8.8.8.8

nameserver 8.8.4.4


Then we we good to go

Monday, August 1, 2016

Auto remove Kodi temp files

The best way to do this I know is by use of  cron job

We can edit the cron jobs using the command crontab -e

The time for this is 0 4 * * * on the hour at 4 every day every week every month

The delete is done by rm /home/pi/.kodi/temp#/filecache*.*

Thursday, May 26, 2016

New storage


Things are really cheap now. Decided that it is worth it to have a different card for different projects. 7 dollars for 32gb.


Sunday, May 22, 2016

The Pace Display Holder


The main piece of learning I attempted with this project was to reduce the number of iterations from idea to actuality.

The design brief  was to make a shelf that would hold the a pace display unit at the right angle for a swimmer in our new pool. The shelf sits snugly on a galvanised pole with rounded corners. This build dimension was the limit of my printer.


What helped
Using paper and printing pieces of the design to test concepts, fit and function. I also used the actual dimensions of the object in the drawing.
































Onshape functions to use https://cad.onshape.com/help/index.htm#cshid=sketch_tools_transform

Transform - select shapes and move them. I used this to position the pace unit model onto the design when check that things would fit.












Monday, May 16, 2016

Blind puller


Continuing to try to develop my Onshape skills and use them for practical applications

Have designed  a blind puller which uses the follow onshape features and design intent. Below are some pics and a 3d model of the resulting design.

Used 

Multi side tool to make a nine sided shape



Loft - this is what I used to connect the faces to the top 


Revolve to hollow out the inside in a cone like shape


Aims for next time 

  • Move quicker to final iteration






Sunday, February 28, 2016

3D printed - Pi camera holder

I have been trying to learn how to use onshape the online 3d design platform.
Having watched a few tutorials I developed a strategy: