Things used in this project

Hardware components:
Wunderbar relayr 02 1024x1024
WunderBar
×1

Code

file_8322.pythonPython
Connecting to hack.py code from any place, e.g. django start urls call (https://github.com/the21/do/blob/master/doapi/hack.py)
    sl = hack.SensorListener()
    sl.add_callback(l.onDataReceived, None)
    sl.launch()
file_8324.pythonPython
Receiving data from relayr API (https://github.com/the21/do/blob/34f8022ac41861b7f091e65c35f9051842e89032/doapi/logic.py)
    def onDataReceived(self,data):
        t, v = DataType.getType(data)
        # print "type %s val %s" %( t, v)

        de = DataEntry(d_type=t, value=v)
        de.save()
        self.tryDetectEvent(de)

Project logs

source code available
Project log #1
On Nov 5, 2014 at 7:12 PM - 0 comments

https://github.com/the21/do

Credits

80fc3039e3e603fa0274f327b09c543a
Oleg Chumakov
1 project • 0 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login