thegnnu
Posts: 156
Joined: Thu Oct 18, 2012 7:07 pm
Location: Bristol

Essentials_Camera_Book Chapter 10

Tue Sep 19, 2017 5:42 pm

Hi Has anybody made the chapter 10 Project from the book
I have just finished it minus the enviro hat and removed the hat code but I have 1 funny result that is for the amount of space left on the SD card.
I have used a 32Gb with about 2Gb used for Stretch Lite and over 26Gb
free using DF -h command but the web page display show it only has 5.5% of free space

Has anybody hacked the script to give a closedown button so a clean closure occurs..
TerryR

thegnnu
Posts: 156
Joined: Thu Oct 18, 2012 7:07 pm
Location: Bristol

Re: Essentials_Camera_Book Chapter 10

Mon Sep 25, 2017 7:31 pm

A friend has given me the answer for the wrong ram size.
You just need to remove a 100 from the line below
df_pc = round(100 -(100 * df_avail/df_size),1)

becomes
df_pc = round((100 * df_avail/df_size),1)
Post this on magpi github as well

Still looking for a good clean way to close the camera down
TerryR

Return to “The MagPi”

Who is online

Users browsing this forum: No registered users and 1 guest