Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.09 KB

README.md

File metadata and controls

52 lines (44 loc) · 1.09 KB

hard-data-transmission

Description

IoTコンポストトイレのハードウェアに組み込むプログラム
Firestoreへのデータの追加処理とFirebaseにアクセスするための認証用プログラム

This repository sends requests to the back-end server of back-firebase-functions to authenticate and add data

Requirement

name version
python(global) 3.x
netifaces 0.11.0

Getting Started

1. Install package

pip install netifaces

2. Add json files

2-1. touch file

cd json 
touch login_params.json token.json

2-2. Edit json file

login_params.json

{
  "id": "[hardware-id]",
  "pass": "[password]"
}

token.json

{}

How to use

Add sensing data

python main.py add -i [temp] [hum]