Hi all,
Is there anyway of posting data to Google docs using tasker? I've tried HTTP POST but seems like Google blocked this method? Any advices/ideas would be really appreciated.
Thanks,
Onur
Change your Data box to entry.438219032=%DATE
Also double check your Server box starts with https://docs.google.com/forms/d/
You can send data to a spreadsheet using Google forms and HTTP Post.1. In Google Drive create a new form2. For each piece of data you want to upload make a new question with the type "text"3. Hit done3. Note down/copy the form URL (you'll need it in Tasker)4. Choose the response destination as a new spreadsheet (give it a suitable name).5. Click "view live form"6. Right click on form and view source7. Scan the source for a line that looks similar to this "<input type="text" name="entry.1801993868" value="" class="ss-q-short" id="entry_1801993868" dir="auto">8. You should have an entry.<number> for each question you created above. Note down/copy the numbers9. In tasker9.1 Create a task9.2 Add an HTTP Post9.3 Fill out the action as follows:Server:Port - The URL from step 3 without the trailing "/edit"Path - formResponseData / File - entry.<number>=%YourDATA9.4 Save, close, run, ????, profitIf you need to upload several pieces of data at once, add the entry.<number> on separate lines in the same HTTP Post action.I use this method to upload my clock in and clock out times at work (using an NFC tag as a trigger) to a spreadsheet where I then carry out further processing to calculate monthly pay (as a cross check against wage slip).
Yes, this still works.
The entry.########## you are looking for can be found by inspecting the elements on the live version of the form, not the form response page. If you think about it logically, you're basically fooling Google into thinking someone completed and submitted your form hence the data from Tasker needs to go to the live form and you give it the id of the field to which it should post.
Go to your form in Google Docs and click View Live Form at the right side of the toolbar and then inspect element.
Hope that helps!