Skip to content

About

WIP: serverless nodejs app that uses protobufs to communicate with a microcontroller to display weather data on LEDs

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

weatherClock

Installation

You'll need zeit Now for the serverless NodeJS portion. Download the Now CLI via npm:

npm i -g now
now help        // test this command worked
now login       // login to the CLI

Usage

To run this project, you'll need to grab an API key from OpenWeatherMaps. This uses the 'Current Weather' data API.

You'll need to create a .env file at the root of this directory. Add your api key to it:

open_weather_secret=API_KEY

For deployment, you'll need to add your api key to now as well. To do this:

now secret add open_weather_secret API_KEY

For local access at localhost:4000 run:

npm run start

For deployment, run:

now -e open_weather_secret=@open_weather_secret

The project will be deployed and reachable at the specified url in the console.

What was used

Axios, express, nodemon, zeit Now

About

WIP: serverless nodejs app that uses protobufs to communicate with a microcontroller to display weather data on LEDs

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages