Go to advanced search

by MarcScott
Thu Nov 24, 2016 9:39 am
Forum: Weather station
Topic: Trouble Uploading Data to Oracle Database
Replies: 9
Views: 2387

Re: Trouble Uploading Data to Oracle Database

Hi, I have a bash script on GitHub that you can use - https://gist.githubusercontent.com/MarcScott/a843c4dd4dfa3934b3de7b1fc0beadf8/raw/e65fd1c178202cf4ad8d4361ed5dcc1eeb2bb8d5/weather_install.sh On a fresh microSD with a updated version of Raspbian pixel, you can have your weather station all set u...
by MarcScott
Wed Oct 26, 2016 7:09 am
Forum: Weather station
Topic: Trouble Uploading Data to Oracle Database
Replies: 9
Views: 2387

Re: Trouble Uploading Data to Oracle Database

Hi isaskey, If you've registered your school and weather station here https://apex.oracle.com/pls/apex/f?p=81290:LOGIN_DESKTOP:0:::::&tz=1:00 you should can see your weather station name and it's unique key. On your Raspberry Pi, there are two files in the weather-station directory called credential...
by MarcScott
Wed Oct 12, 2016 7:05 am
Forum: Python
Topic: Counter : Persistent after reboot
Replies: 1
Views: 433

Re: Counter : Persistent after reboot

This set counter to be the number of files in the directory:

Code: Select all

import os
counter = len([f for f in os.listdir('./tlpics')])
by MarcScott
Wed Oct 05, 2016 7:01 am
Forum: Beginners
Topic: OpenVPN (Permission Denied)
Replies: 1
Views: 552

Re: OpenVPN (Permission Denied)

Try: sudo wget https://www.---VPNProvider---.com/openvpn/openvpn.zip You're in a directory owned by root, and the pi user doesn't have permission to write data there. You'll face the same issue if you need to edit the openvpn config files with your authentication details. So if editing the files mak...
by MarcScott
Mon Sep 26, 2016 12:23 pm
Forum: Teaching and learning resources
Topic: Minecraft Selfies with Skimage
Replies: 9
Views: 3585

Re: Minecraft Selfies with Skimage

I think you're using Python 2 instead of Python 3.
Menu > Programming > Python 3 (IDLE) for the IDLE editor.

Sorry, should have seen that in your initial output
by MarcScott
Mon Sep 26, 2016 6:46 am
Forum: Python
Topic: Timers counting seconds
Replies: 7
Views: 4065

Re: Timers counting seconds

Not sure if this is what you want - but you can make a basic timer using the time module import time timer_a = time.time() timer_b = time.time() while True: if time.time() - timer_a > 20: timer_a = time.time() print('20 seconds') if time.time() - timer_b > 30: timer_b = time.time() #do something else
by MarcScott
Mon Sep 26, 2016 6:18 am
Forum: Python
Topic: Adding time information to picture
Replies: 2
Views: 445

Re: Adding time information to picture

Dave Jones has a recipe for adding text to a photograph in the excellent PiCamera documentation.
https://picamera.readthedocs.io/en/rele ... the-output

Code: Select all

camera.annotate_text = 'Hello world!'
or in your case:

Code: Select all

camera.annotate_text = date_string
by MarcScott
Sun Sep 25, 2016 4:13 pm
Forum: Teaching and learning resources
Topic: Minecraft Selfies with Skimage
Replies: 9
Views: 3585

Re: Minecraft Selfies with Skimage

Hi,
I don't think you have the skimage module installed on your Raspberry Pi.
The instructions were in the "What you will need section" of the resource.
To install skimage type the following into the terminal

Code: Select all

sudo apt-get install python3-skimage
by MarcScott
Fri Sep 23, 2016 7:00 am
Forum: Staffroom, classroom and projects
Topic: Pi GameBoy
Replies: 1
Views: 1071

Re: Pi GameBoy

Hi,
You should check out - http://sudomod.com/ for a complete build guide and have a go at making one yourself. You'll have more fun playing it if it's something you've made.
by MarcScott
Wed Sep 21, 2016 8:22 am
Forum: Teaching and learning resources
Topic: Minecraft Selfies with Skimage
Replies: 9
Views: 3585

Re: Minecraft Selfies with Skimage

Hi there,

Could you put the skimage line back in, run your code and then copy and paste the error you get.
Don't forget to use code tags as it makes reading the errors much easier.

Thanks
by MarcScott
Tue Sep 20, 2016 10:07 am
Forum: Beginners
Topic: How to connect raspberry pi to open WiFi network?
Replies: 12
Views: 1643

Re: How to connect raspberry pi to open WiFi network?

You can probably remove the wpa-psk line completely, as there is no pre-shared key If this is the only authentication the access point requires you should be good to go. There might be a portal that you need to access however, usually through a web-browser. My normal tactic is to use a mobile phone,...
by MarcScott
Tue Sep 20, 2016 8:28 am
Forum: Beginners
Topic: what is remote GPIO
Replies: 16
Views: 25931

Re: what is remote GPIO

Yes, and it's all integrated into gpiozero.
You can check out the docs here - http://gpiozero.readthedocs.io/en/v1.3.1/api_pins.html
by MarcScott
Tue Sep 13, 2016 7:21 am
Forum: Python
Topic: use python script to pass values
Replies: 4
Views: 764

Re: use python script to pass values

You could use Python to write your HTML file and then pass in any data you want from any text file or anything else from your system. with open('index.html', 'w') as f: f.write('#your html goes here') This might be tricky to scale however. You might want to look into using a python web framework lik...
by MarcScott
Mon Sep 12, 2016 6:44 am
Forum: Beginners
Topic: Just with grive
Replies: 1
Views: 463

Re: Just with grive

I seem to remember having issues with grive. Have you ever had it working? Looking on GitHub, it looks as if it is no longer maintained, and it wouldn't surprise me if Google has changed authentication methods since their last commit, over three years ago. I've had success with https://github.com/as...
by MarcScott
Mon Sep 12, 2016 6:39 am
Forum: Beginners
Topic: High frequency data upload to cloud server?
Replies: 2
Views: 492

Re: High frequency data upload to cloud server?

I'm really no expert, but I'm pretty sure that each post requires a handshake that probably couldn't handle 100Hz.

Have you looked into using websockets? Again, I'm no expert, but I think once the initial handshake has been completed, you can send a stream of uninterrupted data to the server.
by MarcScott
Thu Sep 08, 2016 7:16 am
Forum: Python
Topic: Servo control really need help
Replies: 6
Views: 921

Re: Servo control really need help

Try this and see if it works - (note you'll need the latest gpiozero, so update and upgrade)

Code: Select all

from gpiozero import Servo
from time import sleep
s = Servo(13)
s.min()
sleep(1)
s.max()
by MarcScott
Thu Sep 08, 2016 7:09 am
Forum: Beginners
Topic: Preload Raspbian wi-fi configuration?
Replies: 6
Views: 1302

Re: Preload Raspbian wi-fi configuration?

You could put the microSD card into another machine and then edit /etc/wpa_supplicant/wpa_supplicant.conf as described in our guide https://www.raspberrypi.org/documentati ... ess-cli.md
Alternately you could use this new tool - http://www.pibakery.org/
by MarcScott
Thu Sep 08, 2016 7:01 am
Forum: Beginners
Topic: Booting my raspberry Pi for the first time
Replies: 8
Views: 1223

Re: Booting my raspberry Pi for the first time

Ideally you want to use an HDMI monitor or TV with your Raspberry Pi and a USB keyboard and mouse. Later, once you are a little more familiar with the device, you could use software to remotely access the Raspberry Pi. Can I recommend you have a look through our help section https://www.raspberrypi....
by MarcScott
Tue Sep 06, 2016 12:03 pm
Forum: Python
Topic: Learning Python
Replies: 18
Views: 2323

Re: Learning Python

Another option, rather than dual boot or running from a USB memory stick is to use Linux inside of Windows. You could run a VM if you wanted, in which case I would suggest using https://www.virtualbox.org/ An even lighter weight way is to use a bash shell inside Windows 10. This gives you access to ...
by MarcScott
Mon Sep 05, 2016 6:20 am
Forum: Beginners
Topic: Hellp with wireless connection
Replies: 4
Views: 644

Re: Hellp with wireless connection

Hi,
Happy to help, but could you answer a couple of questions first?

Which Raspberry Pi model do you have?
Are you running the very latest version of Raspbian?
Can your Raspberry Pi 'see' the WiFi network?
by MarcScott
Mon Sep 05, 2016 6:16 am
Forum: Beginners
Topic: getting a raspberryPi, is it worth
Replies: 3
Views: 977

Re: getting a raspberryPi, is it worth

IMHO There are two main advantages to buying a Raspberry Pi: 1. They're cheap. 2. Physical computing. Because they're cheap, they're perfect to use as dedicated computers for whatever tasks you have in mind e.g. a media server or a twitter bot. Because of the GPIO pins you can interact with other bo...
by MarcScott
Fri Aug 19, 2016 7:33 am
Forum: Python
Topic: Python Script to create XML file doesn't work on new RPI3
Replies: 4
Views: 1286

Re: Python Script to create XML file doesn't work on new RPI

Just as a quick sanity check - could you make sure you have a directory called templates in your home directory, and that you are running the script from your home directory.
by MarcScott
Fri Aug 19, 2016 7:24 am
Forum: Beginners
Topic: transfer files from SD card to a PC
Replies: 4
Views: 583

Re: transfer files from SD card to a PC

With a couple of config changes you can access the Pizero over USB
http://blog.gbaman.info/?p=791
by MarcScott
Thu Aug 18, 2016 9:03 am
Forum: Beginners
Topic: Noob-Understanding the 'big picture'
Replies: 6
Views: 1079

Re: Noob-Understanding the 'big picture'

This sounds like a fairly reasonable project. We even have a resource that will help you with some of it. https://www.raspberrypi.org/learning/parent-detector/worksheet/ The only difference between the setup in the resource and what you are looking for is transferring the video files from the Pi to ...

Go to advanced search