Serverless function for replicating weather underground data to an influxDB database

Overview

Weather Underground → Influx DB 🌤

Serverless function for replicating Weather Underground data to an influxDB database.

In my case, the data goes:

  1. Gathered by Yoshiko YC9471 and sent to base station
  2. Forwarded by base station to Weather Underground
  3. Downloaded hourly by a Lambda Function in AWS
  4. Converted and forwarded to Influx DB Cloud

INFLUX_explore

FAQ

Why not straight to Influx from the weather station?

Unfortunately, my station only supports Weather Underground and Weather Cloud, and I haven't been able to get hold of the firmware to potentially modify it to upload directly.

Testing locally

Replace values as necessary below:

$ WUNDERGROUND_INFLUX_FUNC_test_proxy=1 WUNDERGROUND_STATION_ID=MYSTATION WUNDERGROUND_API_KEY=secret INFLUX_API_KEY=secret INFLUX_ADDRESS=eu-central-1-1.aws.cloud2.influxdata.com INFLUX_ORG=2398573287563438 INFLUX_BUCKET=my_weather make

Deploying AWS

Upload code as a Python 3.8 Lambda function:

AWS_code

Configure the environment variables:

AWS_env

Setup an hourly EventBridge trigger:

AWS_rule

Owner
Ben Meier
Twitter: @benmeier_
Ben Meier
Zappa makes it super easy to build and deploy server-less, event-driven Python applications on AWS Lambda + API Gateway.

Zappa makes it super easy to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway. Think of it as "serverless" web

Zappa 2.2k Jan 09, 2023
Serverless console based chat program made with PyDrive2.

Nautilus Serverless console based chat program made with PyDrive2. How To Use: After installing the program files from GitHub, they can be put anywher

legitimately_the_1984th_year_of_the_common_era_&_anno_domini_designations 0 Jul 30, 2022
Portfolio-tracker - This serverless application let's you keep track of your investment portfolios

Portfolio-tracker - This serverless application let's you keep track of your investment portfolios

José Coelho 1 Jan 23, 2022
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions

⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –

Serverless 44k Jan 03, 2023
Serverless Public Key Infrastructure Framework

Ottr: Serverless Public Key Infrastructure Framework Ottr is a serverless framework for Public Key Infrastructure (PKI) that aims to provide a robust

Airbnb 259 Dec 28, 2022
Chainlink Python Serverless External Adapter Template

This template shows a basic usecase of an external adapter written in Python for the CryptoCompare API. It can be ran locally, in Docker, AWS Lambda, or GCP Functions.

Chainlink Hackathon - Insureblox 1 Nov 17, 2021
Python Serverless Microframework for AWS

AWS Chalice Chalice is a framework for writing serverless apps in python. It allows you to quickly create and deploy applications that use AWS Lambda.

Amazon Web Services 9.4k Jan 08, 2023
Repository for Research Paper: Serverless Thumbnail Generation

Serverless deployment on IBM Cloud Code Engine that uses the Lithops Framework to process images in parallel

Luca Mueller 2 Jan 12, 2022
Serverless function for replicating weather underground data to an influxDB database

Weather Underground → Influx DB 🌤 Serverless function for replicating Weather U

Ben Meier 1 Dec 30, 2021