This code get my room temperature from Nature Remo, and post it as service metrics to Mackerel by AWS Lambda.
set Nature Remo api token, Mackerel api key to environment variable.
$ export REMOTOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ export MACKERELKEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ pip install requests
$ python lambda_function.py
$ 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.