GithubHelp home page GithubHelp logo

tyler-tm / weathernote Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 13 KB

๐ŸŒฆ AWS Lambda function that sends daily weather info from the DarkSky API as an email via AWS SES, in one short JS file

License: MIT License

TypeScript 100.00%
deno aws-lambda aws-ses openweathermap typescript

weathernote's Introduction

WeatherNote ๐ŸŒฉ

WeatherNote was (and will be) an AWS Lambda function that sends daily weather info from the DarkSky OpenWeatherMap API as an email via AWS SES, in one short JS TypeScript file. The plan is to have no outside dependencies, besides the AWS SDK, for interacting with SES, and Denofun for some Functional Programming utilities.

This was working as a single, ~100 line JavaScript file that you could deploy as an AWS Lambda function, but I am rewriting it for a couple reasons:

Currently, main.ts will output the temperature at given coordinates. Just clone the repo, add a client-values.json file in the same directory as main.ts, and try deno run --allow-read --allow-net main.ts.

The client-values.json file should look something like this:

{
  "appid": "dc5eb39d1fdba8db8c08fdb34c8682b3",
  "coords": [40.30969, -105.66679]
}

You can get an OpenWeatherMap App ID for this file from here.

weathernote's People

Contributors

tyler-tm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

freshy969

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.