This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
import shutil | |
import datetime | |
while 1: | |
#check what time it is | |
curr_date = str(datetime.datetime.today()) | |
curr_hour = curr_date[11:13] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#These instructions are based on this tutorial from Adafruit: | |
#https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis | |
#Tried and tested with the eduroam network at UWaterloo! If you're an undergraduate student, | |
#make sure for the identity field you include .edu in your email address. | |
#In short, boot up your Pi and edit your wpa_supplicant.conf file to contain the following lines of code, | |
#or conversely just use this file! You can start editing your .conf file by heading to the terminal | |
#and typing sudo nano /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev |