Is there an influxdb ui API to import json model charts? - influxdb

I am using the influxdb UI to chart some data using influxql. I want to be able to deploy these charts out alongside the database. There is a way to export these charts to JSON models, and you can import these charts via the UI with the exported JSON.
Is there any way to import these JSON models via an API? I cannot find any mention of one in the docs.
Edit: the CLI seems to only support export, but not import: https://docs.influxdata.com/influxdb/cloud/reference/cli/influx/dashboards/

Related

Redash: Import Google Sheet with URL Parameters

I'm trying to generate a dashboard using information from Google Sheets.
I would like to be able to import the sheet ID dynamically (using URL params), but Redash won't allow it (unless the viewer has full database access) because it's a text parameter.
I get that it might be dangerous if you're using a database to import information (SQL injection), but I don't see why it could be dangerous using Google Sheets.
Is there a work around for this? Am I missing something as to why I shouldn't do this?
Cheers!

Is there a way to get numbers out of Google Data Studio and into Google Sheets

I have data in Google Data Studio that gets updated from a few sources that don't have historical data. One is a csv of content from our CMS (page, date last updated, etc) that I pull into GDS from Google Cloud Storage, and the other are several Supermetrics Data Studio connectors.
What I'm trying to do is to get the data that is in these GDS reports and automatically pull it into Google Sheets. I've tried making a public report and then using the ImportXML or ImportHTML functions, but that doesn't work. I would love to take those numbers that are pulled into the GDS report, have them display in a cell in Google Sheets, and then use a script to daily add that number to a row in a data sheet, thereby creating a historical set of data from the data in a GDS report.
Has anyone figured out how to do that?
Currently(Apr 2021) there is no automated way to get numbers out of Data Studio into Google Sheets. You can manually export a chart's data by clicking on the chart options and then exporting to Sheets.
If your intention is to automate this, then I suggest revisiting your data flow. Data Studio should be used as a reporting tool and not a data processing one. It should be the last node in your data pipeline. If you need to process and materialize your data in a recurring automated way, that should happen before the data hits Data Studio.

Making charts on phonegap using data from external website

so i need to develop an app using phonegap that creates a graphical display of solar wind data (exciting stuff i know...) from this website http://services.swpc.noaa.gov/text/ace-swepam.txt with a graph being made for 'ion temperature', 'bulk speed' and 'proton denisity' individually, however im clueless as to where to begin... im assuming i need to make use of the charts.js library or something similar, im assuming i can make a variable for the axis as the data will be changing over time but I'm more stuck on how to pull data from this website though to be included in my charts. Any info on this would be greatly appreciated!
Thanks,
Gerrit
Call the web service to get the data, then pass it to the charting library you're using. You'll use AJAX (XMLHTTPRequest) to get the data. There's all sorts of options out there for simplifying this (jQuery and other libraries make AJAX easy).
The service you're using is giving you the data as a text file - this can work, but you'll have to parse the data client-side which is not fun (or a good use of your phone's capabilities). Look for a service that returns the data as a JSON object, then you'll have the data in a format that can be more easily passed to the charting library.

Access SAS table through google sheets

We use SAS to manage our data, and we have a table that updates every day.
We use Google sheets to create a dashboard.
In this regard I would like to have Google Sheets access the table directly and import all the data, instead of me manually importing the data
Is there a way to do this?
Google sheets does not allow direct import of SAS datasets, according to this page:
https://support.google.com/docs/answer/40608?hl=en
However, you can run a SAS program as a batch job to export your SAS dataset to csv or one of the other supported formats, then I think you could use Google Apps Script to automate the rest of the import, as per this answer:
How to automatically import data from uploaded CSV or XLS file into Google Sheets

How do I interact with Google Docs (Sheets) from another scripting environment (VB.net within Grasshopper3d)?

I'm scripting with VB.net (and sometimes with c#) within Grasshopper (a plug-in for a 3d modeling program called Rhino), and I'd like to interact with Google Docs, specifically with the spreadsheet app.
I want to be able to send data from Grasshopper to populate google spreadsheets.
The data is always either numerical or string.
I'd also like to generate charts from the data.
There is a solution to this at the bottom of this thread on the GH website.
.. And this is a solution for reading that should work in python as to use c# would need you to use other libraries.
You need to publish the spreadsheet as a csv first.
import urllib2
myUrl="https://docs.google.com/spreadsheet/pub?key=0AgIWT_wqd-VmdE1NekRSWFZoUnBQdWJhYUhwcU1vclE&single=true&gid=0&output=csv"
response = urllib2.urlopen(myUrl)
print response.read()
Here's a working GH implementation
[this should probably be a comment, but I can't comment yet]

Resources