Search found 3 matches

by Groovy3286
Mon Jul 04, 2022 2:58 pm
Forum: ESP32 boards
Topic: Sending data to influx db using http
Replies: 4
Views: 4515

Re: Sending data to influx db using http

https://forum.micropython.org/viewtopic.php?t=5496 For example, on here. It shows a relatively short piece of code to send data to a URL. Ok that makes sense thank you, was looking around and saw you had to use a file directory as well as the IP and port just wanted confirmation. I saw that it was p...
by Groovy3286
Mon Jul 04, 2022 2:19 pm
Forum: ESP32 boards
Topic: Sending data to influx db using http
Replies: 4
Views: 4515

Re: Sending data to influx db using http

This looks like a lot more code than I've seen either on this forum, or just other websites in general. url = '' headers = {'Temperature': temp, 'Humidity' : hum} data = hum, temp r = requests.post(url, data=data, headers=headers) results = r.json() print(results) This is what i've got right now, wh...
by Groovy3286
Mon Jul 04, 2022 9:27 am
Forum: ESP32 boards
Topic: Sending data to influx db using http
Replies: 4
Views: 4515

Sending data to influx db using http

Hey I have an ESP32 with micropyton firmware, and a locally hosted influx database. I want to send just plain text from the ESP32 to the influx db (have a dht22 sensor hooked up to the ESP32). I am super confused as to how I would go about doing this, looked around and seen POST but not entirely sur...