File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ The following people helped in creating the above content.
207207* <a href =" https://github.com/vigov5 " target =" _blank " >Nguyen Anh Tien</a >
208208* <a href =" https://github.com/akshitgrover " target =" _blank " >Akshit Grover</a >
209209* <a href =" https://github.com/Sharanpai " target =" _blank " >Sharan Pai</a >
210+ * <a href =" https://github.com/MadhavBahlMD " target =" _blank " >Madhav Bahl</a >
210211
211212
212213### If you like the project give a star <img src =" Selection_008.png " >
Original file line number Diff line number Diff line change 1+ import requests .packages .urllib3
2+ requests .packages .urllib3 .disable_warnings ()
3+ import serial
4+ import json
5+
6+ arduinoData = serial .Serial ('com31' ,9600 )
7+
8+ from firebase import firebase
9+
10+ firebase = firebase .FirebaseApplication ('https://___YOUR_PROJECT_NAME____.firebaseio.com/' )
11+
12+ while 1 :
13+ myData = (arduinoData .readline ().strip ())
14+ myData = (myData .decode ('utf-8' ))
15+ myData = float (myData )
16+ result = firebase .put ('MainNode/Leaf' ,'temp' ,myData )
17+ print 'Data : ' ,result
18+
You can’t perform that action at this time.
0 commit comments