Skip to content

tkmru/remo_to_mackerel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

remo to mackerel

This code get my room temperature from Nature Remo, and post it as service metrics to Mackerel by AWS Lambda.

image

Usage

set Nature Remo api token, Mackerel api key to environment variable.

$ export REMOTOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ export MACKERELKEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ pip install requests
$ python lambda_function.py

work on AWS Lambda

image

$ mkdir packages
$ cd packages/
$ pip install requests -t .
$ zip -r9 ../function.zip .
$ zip -g function.zip lambda_function.py

and upload function.zip to AWS Lambda.

Releases

No releases published

Packages

No packages published

Languages