Skip to content

Scenic weather webcam feed with a stable URL for my info display at home

License

Notifications You must be signed in to change notification settings

joonas-fi/tamperewebcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

Takes (and crops) image from one of the camera feeds in my hometown and makes it available at a stable URL and archives the images for me to maybe make automated timelapse videos later.

Runs in AWS Lambda

Published image at

https://s3.amazonaws.com/files.function61.com/tampere-webcam/hiedanranta/latest.jpg

I show this URL in my constantly-on info display at home.

Why is this open source?

This can't directly benefit anyone, as there are many hardcoded details. But I open sourced this because there might be some details that could help someone:

  • Roundshot (the provider that has multiple 360° cameras in my city) URL making
  • Image cropping
  • S3 bucket access, incl. copying
  • Lambda function, hybrid one (can directly run locally but also in Lambda)
  • Dead man's switch check-in to an alerting system
    • So that if this stops working, I get an alert

Cropping

Here's how the original image is cropped:

IAM policy

Good name for inline policy: putWebcamImages

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:CopyObject",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::files.function61.com/tampere-webcam/*"
            ]
        }
    ]
}

About

Scenic weather webcam feed with a stable URL for my info display at home

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published