Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Matthew Gotth-Olsen mgottholsen

🎯
Focusing
View GitHub Profile
@mgottholsen
mgottholsen / esphome_get_camera_image.py
Created Jun 1, 2021 — forked from micw/esphome_get_camera_image.py
Getting camera images from esp32cam with esphome and python
View esphome_get_camera_image.py
#!/usr/bin/env python3
import aioesphomeapi
import asyncio
async def main():
loop = asyncio.get_running_loop()
cli = aioesphomeapi.APIClient(loop, "HOST-OR-IP", 6053, "API-PASSWORD-OR_EMPTY")
await cli.connect(login=True)
View autopi.json
[
{
"id": "207111fc.39d516",
"type": "http request",
"z": "de854356.27206",
"name": "login",
"method": "POST",
"ret": "obj",
"url": "https://api.autopi.io/auth/login/",
"tls": "",
View hasGig.csv
We can't make this file beautiful and searchable because it's too large.
latitude,longitude
38.2279736,-85.7938262
38.2283609,-85.7937792
38.0984972,-85.8558046
38.2507318,-85.5904163
38.2456706,-85.6337935
38.0931369,-85.7452002
38.1362353,-85.7712499
38.1032101,-85.8727555
View USPS Vacancy Data
https://www.huduser.gov/portal/usps/home.html
HUD has entered into an agreement with the United States Postal Service (USPS) to receive quarterly aggregate data on addresses identified by the USPS as having been "vacant" or "no-stat" in the previous quarter. HUD is making these data available for researchers and practitioners to explore their potential utility for tracking neighborhood change on a quarterly basis. The potential power of these data is that they represent the universe of all addresses in the United States and are updated every three months. Under the agreement with the USPS, HUD can make the data available publicly at the Census Tract level provided users agree to the terms and conditions of the click-on sublicense.
Total Number of Addresses - This reflects all addresses (residential and commercial) that USPS has recorded in their database.
Total Vacant Addresses - These are addresses that delivery staff on urban routes have identified as being vacant (not collecting their mail) for 90 days
View WMTSCapabilities.xml
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
version="1.0.0">
<!-- Service Identification --> <ows:ServiceIdentification>
<ows:Title>LOJIC_HistoricImagery2016</ows:Title>
@mgottholsen
mgottholsen / electric_objects.py
Created May 24, 2018 — forked from harperreed/electric_objects.py
Electric objects simple API wrapper
View electric_objects.py
import requests
import urllib
import requests
import json
import random
"""
here is a wrapper for the *unreleased* electric objects API
Built by Harper Reed (harper@nata2.org) - @harper
View metro_parks.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gov_offices.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
<div id="map_id" class="maps"></div>
View Keybase.md

Keybase proof

I hereby claim:

  • I am mgottholsen on github.
  • I am mattgolsen (https://keybase.io/mattgolsen) on keybase.
  • I have a public key ASDLzs1VWCpbcD0EoRVtdhsQkvaxzwn1CcWCluzOrIkfEAo

To claim this, I am signing this object: