Download OS from https://www.raspberrypi.org/downloads/raspbian/
Install OS to SD card via https://etcher.io/
Add an empty ssh
file to enable ssh by default:
$ touch /Volumes/boot/ssh
Add a wpa_supplicant.conf
file:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple click event</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<style> | |
html, | |
body, |
# coding=utf-8 | |
import requests, base64, ipdb | |
from bs4 import BeautifulSoup | |
username = 'natas15:'.encode() | |
password = 'AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J'.encode() | |
url = 'http://natas15.natas.labs.overthewire.org' | |
chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
existsStr = 'This user exists.'.encode() | |
parsedChars = '' |
// taken from https://www.hackster.io/Momy93/gps-datalogger-with-linkit-one-fe6541 | |
#include <LGPS.h> | |
gpsSentenceInfoStruct info; | |
double latitude = 0.00; | |
double longitude = 0.00; | |
int sat_num = 0; //number of visible satellites | |
String lat_format = "0.00000", lon_format = "0.00000"; |
import RPi.GPIO as GPIO | |
import time | |
def bin2dec(string_num): | |
return str(int(string_num, 2)) | |
data = [] | |
GPIO.setmode(GPIO.BCM) |
import time, datetime, json | |
import RPi.GPIO as GPIO | |
import picamera, dht11 | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BCM) | |
GPIO.cleanup() | |
instance = dht11.DHT11(pin=14) | |
result = instance.read() |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.bundle.js"></script> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Price Changes</div> | |
<div class="panel-body"> | |
<canvas id="myChart"></canvas> | |
</div> | |
</div> | |
<script> |
Download OS from https://www.raspberrypi.org/downloads/raspbian/
Install OS to SD card via https://etcher.io/
Add an empty ssh
file to enable ssh by default:
$ touch /Volumes/boot/ssh
Add a wpa_supplicant.conf
file:
# -*- coding: utf-8 -*- | |
import csv, os, time | |
from geopy.geocoders import Nominatim | |
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__)) | |
my_file = os.path.join(THIS_FOLDER, 'data.csv') | |
geolocator = Nominatim() |
# -*- coding: utf-8 -*- | |
import csv, os, time | |
from geopy.geocoders import Nominatim | |
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__)) | |
my_file = os.path.join(THIS_FOLDER, 'data.csv') | |
geolocator = Nominatim() |