Search found 6 matches

by MoustachedBird
Sat Sep 14, 2019 4:38 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

Is it possible that Google impose some form of throttling? After trying some time i got it partially. I say "partially" because i have to do a random get-request after the post-request; i don't know why it works, but it works (in this way i can send data to Google Forms every second approximately, ...
by MoustachedBird
Wed Sep 11, 2019 7:43 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

The syntax form_data = {'entry.61639300=1','entry.1495906291=2','entry.211888248=3'} causes form_data to be an instance of a Python set . It should be a string, as per your earlier example. Thank you for your response. Sorry, i dont want to bother you , but now i want to do multiple post-requests, ...
by MoustachedBird
Tue Sep 10, 2019 4:34 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

When you post data over HTTP you have a few options how to encode the data. urlencoded and json are two very common options. the example arduino code you posted actually uses urlencoded despite saying json. Thank you so much, it works!!! But I have a last question, if i wanted to post data to more ...
by MoustachedBird
Mon Sep 09, 2019 8:39 pm
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

Hi, You might find some of the posts in this thread useful -- https://forum.micropython.org/viewtopic.php?f=18&t=6492 -- I was able to make some values appear in a spreadsheet using a form submission. Thank you for your time. Sorry, what do you mean with 'application/x-www-form-urlencoded' :shock: ...
by MoustachedBird
Mon Sep 09, 2019 7:56 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Re: Convert arduino code to esp8266 micropython (google sheets) or suggestion

Sorry, i forgot to say that i'm not using the MLX90614, i have an analog sensor. I mean, i'm only interested on the communication part of the code. But i don't know if it could be possible to do http request directly with a public script using micropython. As a test i'd like to send a couple of inte...
by MoustachedBird
Mon Sep 09, 2019 7:48 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 301

Urequests problem (multiple Post) with google docs/forms

Sorry guys, I'm a begginer in micropython, I wanted to know if it could be possible to convert this arduino code to micropython. This code is for posting data in google spreadsheets without using IFTTT (it requieres a public google script). I've taken it from a youtube example (https://www.youtube.c...