GitXplorerGitXplorer
b

bosfoodfails

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1dcf216d8b63f112513db66c0b29d605de22db12

Fix a bug in tracking of how many times a restaurant has failed

bbjacobel committed 8 years ago
Unverified
eb77f0e51c3f5c472299cd9472f7f6b901eeac83

Add Pawfile with new API info

bbjacobel committed 8 years ago
Unverified
cc16ec4f5c861ce772759c8730abdc4129be61e7

Fix date formatting issue

bbjacobel committed 8 years ago
Unverified
faaa89d742ad9ef1c224f35ad15e0453705338bd

Merge pull request #6 from bjacobel/ckan

bbjacobel committed 8 years ago
Unverified
60a2149dfb8ade8e911aee7a7c314de69b4342bf

Lol I _always_ do this while debugging bff

bbjacobel committed 8 years ago
Unverified
1bc50a5c382dffad86ae1ca2ec08ded5db72ff10

Switch over to using CKAN

bbjacobel committed 8 years ago

README

The README file for this repository.

###bosfoodfails

Get recent "food establishment" inspection violations and tweet them to @bosfoodfails.

Uses AWS Lambda, AWS KMS, AWS DynamoDB and the Socrata API (data.cityofboston.gov's Open Data vendor).

####Deploy to Lambda:

./deploy.sh

Cron settings for event source: cron(*/20 0-2,12-23 ? * * *)

####KMS secret management: Encrypt:

aws --profile bjacobel kms encrypt --key-id <key> --plaintext "<secretValue>" --query CiphertextBlob --output text | base64 --decode > ./secrets/<secretKey>

Decrypt:

with open('./secrets/<secretKey>', 'rb') as f:
    print(kms.decrypt(
        CiphertextBlob=f.read()
    )['Plaintext'])