Skip to content

yusami/KorobotSensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KorobotSensor

Overview

  • Fetch the sensor values and tweet them.

Description

  • Fetch the sensor values via PLANEX API.
  • Convert the time to Japanese local time (JST).
  • Tweet the latest values.

Requirement

Install

$ pip3 install python-dotenv pytz python-dateutil twitter

Usage

  • Set API keys in .env file.
TW_CONSUMER_KEY=...
TW_CONSUMER_SECRET=...
TW_TOKEN=...
TW_TOKEN_SECRET=...
SENSOR_MAC=...
SENSOR_TOKEN=...
  • Call the command below.
$ python3 main.py
  • Example output:
Time:2020-02-16T11:48:02+09:00, Temperature:25.47 degrees, Humidity:49.1%, Air pressure:1007.37hPa

TODO

  1. xxx

Caveats

  • xxx

Changelog

  • 2023/05/06 Support Twitter API v2.

Licence

Author

About

Fetch the sensor values and tweet them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published