Skip to content

Instantly share code, notes, and snippets.

Simon Moreau simonmoreau

Block or report user

Report or block simonmoreau

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@simonmoreau
simonmoreau / readings.py
Created Feb 24, 2019
A Python script to send values from an Adafruit DHT22 to an Azure Cosmos DB database
View readings.py
import Adafruit_DHT
import azure.cosmos.cosmos_client as cosmos_client
import time
def reading():
config = {
'ENDPOINT': 'https://bim42db.documents.azure.com:443/',
'PRIMARYKEY': my Azure Cosmos DB Key',
'DATABASE': 'bim42db',
You can’t perform that action at this time.