|
Post by NFAZ10 on Aug 17, 2013 6:30:22 GMT -8
I have setup everything as per instructions. And tested. My question is how do I make it my own...ie
i will have an DHT11 Sensor hooked up and want to transmit temp and humidity. Also will be the camera feed, two relays and 1 PWM hookup. I would like to control these all via raspiconnect. Could you give me some general direction on how to start.
|
|
|
Post by SDL on Aug 17, 2013 17:35:27 GMT -8
Hi NFAZ10, The first thing to do is look at the manual talking about setting up Local.py. That's where you should put your code. We suggest getting your code working outside of the RasPiConnect Server (reading / writing to the DHT11 sensor for example). The camera feed will work just fine. There are other posts on the site that talk about this. Read more at: raspiconnect.boards.net/thread/50/pi-camera-module#ixzz2cHRb5NDhAgain, the PWM software should be debugged and then put in as either a response to a button or to a refresh request from a control. Depends on what you are doing with them. We are writing a tutorial about adding a sensor to the App and it will be published later this month. But the example in the manual regarding Local.py is pretty complete but could be expanded. BP
|
|
|
Post by bbuckley1 on Aug 18, 2013 10:57:48 GMT -8
could you point me to the "pretty complete but could be expanded" examples??? I'm reasonably experienced and I was able to get action buttons set up and executing commands, but I can't find any examples for the other controls, meters or server status, etc. The only documentation I can find simply says the response should return a "2" for server present. What am I doing wrong?
if (objectType == SERVER_STATUS_UITYPE):
if (Config.debug()): print "SERVER_STATUS_UITYPE of %s found" % objectServerID
# SS-1 - Send RasPiConnectServer status if (objectServerID == "SS-1"):
#check for validate request # validate allows RasPiConnect to verify this object is here if (validate == "YES"): outgoingXMLData += Validate.buildValidateResponse("YES") outgoingXMLData += BuildResponse.buildFooter() return outgoingXMLData
# not validate request, so execute
# note that python is in the main directory for this call, not the local directory responseData = "2" outgoingXMLData += BuildResponse.buildResponse(responseData) outgoingXMLData += BuildResponse.buildFooter() return outgoingXMLData
|
|
|
Post by SDL on Aug 19, 2013 8:16:12 GMT -8
|
|