cymplecy / scratch_gpio

Code for scratch_gpio_handler
42 stars 23 forks source link

added basic camera handling #3

Open mattvenn opened 10 years ago

gbaman commented 10 years ago

Looking awesome! This is a quite cool feature I am now rather excited for... Taking photos... WITH SCRATCH! Might want to merge https://github.com/mattvenn/scratch_gpio/pull/1 before merging into main scratchGPIO code

cymplecy commented 10 years ago

FANTASTIC - 1st collaboration on ScratchGPIO on Github

But.... Due to fact that I've

  1. Changed to using scratchgpio_hander5.py instead of scratchgpio_handler5dev.py in dev branch
  2. changed name of dev branch to 5dev
  3. Deleted old V5Dev
  4. made major changes since initial clone ..... etc etc :)

git merge wasn't sucessfull (Can't blame it really) :)

But I've manually merged and my 5dev branch now has the code in it and online to download http://cymplecy.wordpress.com/2013/11/26/scratchgpio-development-testing/

If you don't mind discarding your git stuff and re-setting up off 5dev branch I promise to not muck around again :)

Note - I moved the code so that it doesn't need an add-on to be specified as we'd want it available to any Scratch script/add-on board

1

cymplecy commented 10 years ago

@gbaman Just added #1 with variable path as well - Ta :)

cymplecy commented 10 years ago

Done

On 13 April 2014 13:18, Andrew Mulholland notifications@github.com wrote:

Looking awesome! This is a quite cool feature I am now rather excited for... Taking photos... WITH SCRATCH! Might want to merge mattvenn#1https://github.com/mattvenn/scratch_gpio/pull/1before merging into main scratchGPIO code

Reply to this email directly or view it on GitHubhttps://github.com/cymplecy/scratch_gpio/pull/3#issuecomment-40306244 .

cymplecy commented 10 years ago

Variable path doesn't work because scratchgpio is run as sudo so is saving to /root/photos instead of user ~/photos :(

mattvenn commented 10 years ago

Check http://stackoverflow.com/questions/8633461/how-to-keep-environment-variables-when-using-sudo But use $HOME On 14 Apr 2014 00:05, "cymplecy" notifications@github.com wrote:

Variable path doesn't work because scratchgpio is run as sudo so is saving to /root/photos instead of user ~/photos :(

Reply to this email directly or view it on GitHubhttps://github.com/cymplecy/scratch_gpio/pull/3#issuecomment-40323042 .

cymplecy commented 10 years ago

I've updated 5dev branch with code to cope with sudo usuage