author
1Instructables62,470Views35CommentsJoined October 10th, 2014

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
  • ezoom404 commented on ezoom404's instructable Post to Google Docs With Arduino2 years ago
    Post to Google Docs With Arduino

    I have mine sending 3 commands currently at home. I will send you the code I used for that and show how I just copied the section of code 3 times and changed some variables.

    You need ethernet for the code to work.

    If you set up enough variables to accept more sensors you can then set up a google form to ask for multiple questions. One question for each sensor input. So you would just repeak the same steps for each form question. Generate a new scenario in pushing box for each as if they were separate. Then in the Arduino code you just copy this section however many times you need:if (wifly.connect(server, 80)){k=0;Serial.println("connected");sprintf(postmsg,"GET /pushingbox?devid=%s&status=%d HTTP/1.1",devid,int(f*100)); // NOTE** In this line of code you can see where the temperature value is inserted into the wed address. It follows 'status=' Change that value to whatever you want to post.wifly.println(postmsg);wifly.println("Host: api.pushingbox.com");wifly.pr...

    see more »

    If you set up enough variables to accept more sensors you can then set up a google form to ask for multiple questions. One question for each sensor input. So you would just repeak the same steps for each form question. Generate a new scenario in pushing box for each as if they were separate. Then in the Arduino code you just copy this section however many times you need:if (wifly.connect(server, 80)){k=0;Serial.println("connected");sprintf(postmsg,"GET /pushingbox?devid=%s&status=%d HTTP/1.1",devid,int(f*100)); // NOTE** In this line of code you can see where the temperature value is inserted into the wed address. It follows 'status=' Change that value to whatever you want to post.wifly.println(postmsg);wifly.println("Host: api.pushingbox.com");wifly.println("Connection: close");wifly.println();Serial.println(postmsg);Serial.println("Host: api.pushingbox.com");Serial.println("Connection: close");Serial.println();delay(1000);} else {Serial.println("failed.");k=1;}Might take some clean up but thats essentially how I have mine set up to run multiple. I saw some people below got it done with a single command but I didn't try that.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs With Arduino2 years ago
    Post to Google Docs With Arduino

    You need to do some clean up, you have two setup() and loop() functions shown. The idea looks right if your moisture sensor is on pin 0. Just collect data from the moisture sensor and assign it to a variable. Then send that variable accross to pushing box. Looks like you replaced the avtemp variable with sensor variable so that's good. I say do a little clean up and give it a go.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino2 years ago
    Post to Google Docs with Arduino

    You would change the temperature read section. Switch over to reading the moisture sensor and pass along the correct variables.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino2 years ago
    Post to Google Docs with Arduino

    Glad it helped! thanks!

    Your sendtopushingbox() function is messed up. Go back to the code I supplied and look how I have it set up during the push command. Try re-writting that section of code.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino2 years ago
    Post to Google Docs with Arduino

    Look at the Arduino code: change:char devid = fskjfnfnvkjsdnf to char devid[] = "fskjfnfnvkjsdnf"Note: this is not a real devid, just use the format. Give that a try and let me know if that works for you.

    Are you getting anything sent to google docs? Do you know if pushingbox is making its connection?

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino2 years ago
    Post to Google Docs with Arduino

    Great! Thank you. I will give it a try on my end and update the page for others.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino2 years ago
    Post to Google Docs with Arduino

    I am currently doing this using three separate commands. I am sure there is a way to do it in one string but I didnt have the time to figure it out so I just copied code and had it run three times answering three different questions on the form.

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino3 years ago
    Post to Google Docs with Arduino

    What was the issue you found?

    View Instructable »
  • ezoom404 commented on ezoom404's instructable Post to Google Docs with Arduino3 years ago
    Post to Google Docs with Arduino

    Please go back and verify all the data you have entered is correct. One typo will prevent the system from working. This is often the cause of errors from what I have seen below. I am assuming this because you are not dealing with the Arduino yet, this is just pushing box to google which should work no problem.

    View Instructable »