I’m recently working on a project, which has the goal to show data (as diagramm) in the companys intranet.
Im using a Heltec ESP32 to receive the data. At the moment im using the Tago.io integration to visualize it.
But now i want to integrate google sheets to display a diagramm on the website.
Has anyone an idea how i can transfer my data from TTN to Google App Scripts as easy as possible?
I tried many scripts, but none of them ist working.
If you have an completly different idea without Google Sheets, tell me
I remember posting a link to a how too about 1.5-2 years back for getting data into ggogle sheets - use forum search with squix & google sheets as terms and should find as way forward? May need to do work to get from datalines in sheets and simple graphing ther eto integrate to your website.
Hey guys,
Does anyone has a solution for automatically get all the data to google spreadsheet, that works now?
I looked at the solutions that are in this thread, but it looks that the ttn v3 is quite a bit different then previously. Not sure if IFTTT is also still relevant, from browsing the page it does not really looks so.
@ozolniece I posted about this one some 3-4 years back if I recall… havent looked at whether still ok for V3. Note Daniel’s caution wrt access va the URL and potential security issue unless authenticated.
Might be worth giving it a try again I dont have time right now to crawl over the code or attempt to use as busy with other projecs… Previous HTTP Integration now under Webhooks…Custom Webhook…
Thanks for the reply guys. @descartes I don’t understand - where is the script supposed to get the variable data from? That’s exactly the part I don’t get - how to get a the data variable from TTN. The latter formatting part I’d manage afterwards.
@Jeff-UK Thanks I had found and tried this solution but nothing is happening. Not sure if I didn’t create the Webhooks correctly or done something else wrong (even though the link was quite well described, thanks for that) somehow or the changes there have been too large.
TTS sends JSON to the Google URL, the script captures that data and puts it in the sheet:
var theJSON = JSON.parse(e.postData.contents);
Probably easiest if you travel hopeful and give it a try - add as an AppScript to your sheet, deploy, take the URL Google gives you and set up a webhook with it and, at minimum, turn on uplinks.
Thanks, I didn’t mean that I don’t trust your code, but I just didn’t understand it, thanks for taking the time and adding a little explanation. Just tried it and it works just fine for me - so thanks for sharing it.
Hey, I hope I’m not bothering you, but I can’t seem to get the metadata out of this. Is there something I’m missing?
Right now, just trying to get anything out, but I don’t get what’s wrong with this line to just get RSSI out.
as the signal info is for each gateway so you need to reference the array, ideally iterate around all the gateway entries to find the best signal, but TL;DR:
which I haven’t tried as Google Sheets isn’t a robust storage solution for me, so it’s just there for the occasional convenience. But getting out any of the data is just normal JSON path constructions for objects & arrays, so plenty of resources to read for that.