An open API service indexing awesome lists of open source software.

https://github.com/joonas-fi/tamperewebcam

Scenic weather webcam feed with a stable URL for my info display at home
https://github.com/joonas-fi/tamperewebcam

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

![Build status](https://github.com/joonas-fi/tamperewebcam/workflows/Build/badge.svg)

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:

![](docs/cropping.jpg)

IAM policy
----------

Good name for inline policy: `putWebcamImages`

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