We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b2432 commit c3b85b6Copy full SHA for c3b85b6
bin/Pyfirebase.py
@@ -0,0 +1,18 @@
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
0 commit comments