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
#!/usr/bin/env python | |
import RPi.GPIO as GPIO | |
import SimpleMFRC522 | |
reader = SimpleMFRC522.SimpleMFRC522() | |
try: | |
text = raw_input('Donnée :') | |
print("Placer le tag RFID ...") |
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
#!/usr/bin/env python | |
import RPi.GPIO as GPIO | |
import SimpleMFRC522 | |
reader = SimpleMFRC522.SimpleMFRC522() | |
try: | |
print("Presenter le tag RFID...") | |
id, text = reader.read() |
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
moyenne = (temperature1 + temperature2)/2 | |
print "La moyenne mesuree par les deux sondes est egale a : " | |
print moyenne |
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
camera.sharpness = 0 | |
camera.contrast = 0 | |
camera.brightness = 50 | |
camera.saturation = 0 | |
camera.ISO = 0 | |
camera.video_stabilization = False | |
camera.exposure_compensation = 0 | |
camera.exposure_mode = 'auto' | |
camera.meter_mode = 'average' | |
camera.awb_mode = 'auto' |
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 picamera | |
import datetime | |
camera = picamera.PiCamera() | |
camera.hflip = True | |
camera.vflip = True | |
camera.resolution = (2592,1944) | |
camera.capture(str(datetime.datetime.now())+'.jpg') |
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 picamera | |
import datetime | |
camera = picamera.PiCamera() | |
camera.resolution = (2592,1944) | |
camera.capture(str(datetime.datetime.now())+'.jpg') |
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 os | |
import picamera | |
import time | |
camera = picamera.PiCamera() | |
#Retourner image : Enlever les deux hashtag suivants | |
#camera.hflip = True | |
#camera.vflip = True |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>{{ nomSite }}</title> | |
</head> | |
<body> | |
<h1>Bienvenue sur {{ nomSite }} !</h1> | |
</body> | |
</html> |
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
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
background-color: #F5F5F5; | |
} | |
h1 { | |
font-size: 4.5rem; | |
font-weight: 300; | |
margin: 0 0 0 0; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
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
def fichierVersListe(cheminFich): | |
f = open(cheminFich, "r") | |
points=[] | |
temperatures=[] | |
for line in f: | |
points.append([line[0:2], line[3:5], line[6:len(line) - 1]]) | |
temperatures.append(float(line[6:len(line) - 1])) | |
f.close() | |
return [points, temperatures] |
OlderNewer