watch doesn't display steps from Google Fit - google-fit

How do I set up my watch app to show steps on Google Fit, instead of move minutes? Or is this just the newest version? It's actually not even showing those at this point, just a constant update symbol.

Google Fit recommends reading by data type to get the values as the Google Fit app. This includes reading the current daily step count by calling HistoryClient.readDailyTotal, see official docs for sample application developers.google.com/fit/scenarios/read-daily-step-total

Related

With what frequency is my script calling the API? I don't want to get cut off

I'm using a json script from another stack overflow post and don't know with what frequency I'm calling the external data (from Seatgeek).
I don't want to get cut off from the Seatgeek api so I want to make sure I'm not going to bog down the system - I really only need the data to refresh twice a day.
I would not consider myself a developer so I'm not sure where to look. Can someone please help by taking a look at the script?
According to the Google Sheets API documentation:
Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.
Also, if you want to find the usage and more statistics regarding the API, you can check the Google API console and find all the information there.
For more information regarding your issue, you could check the following documentation:
[1] Google Sheets API;
[2] Google Console API Quota

Support for Google Slides

Are there any plans for supporting apps script in google slides?
I wanted to code a progress bar to.. well show the progress of my presentation but as it turns out, slides does not support apps script.
You may want to regularly check Google Apps Script - Release Notes to be updated on the major changes in each release of Google Apps Script. This is intended to help developers identify recent changes in behavior.
However, you may want to also check features that you can use to show progress bar with the use of Google Slides API. Many of the features that make Google Slides so successful are available through the API. This lets you access and update presentations programatically, integrating data from various sources and producing finished presentations in a fraction of the time.
I haven't actually tried using this API, but this SO post shows how you can use the apps-script-oauth2 library to generate your OAuth token and be able to use Google Slides API.
For missing features that you might need or like, you may file requests here.
Hope that helps!

Querying data in Google Apps Scripts

I don't see this explicitly mentioned anywhere, but is it possible to do some sort of data query like it's mentioned in the google charts reference?https://developers.google.com/chart/interactive/docs/queries
I'm looking to start a project and this will have a big impact on whether or not I'll use Google Charts or Google Scripts.
Short answer
Yes, it's possible.
Explanation
Exhibit 1:
See https://developers.google.com/chart/interactive/docs/spreadsheets
Exhibit 2:
At this time there are 6 questions returned by searching [google-apps-script][google-query-language]. I picked one that could serve you as a place where is explicitly mentioned:
Creating a table using google app script from a query
Exhibit 3:
At this time there are 137 questions returned by [google-apps-script][google-visualization]. I picked one that could serve you as place where is explicitly mentioned:
Google Visualization Column Chart set a data column from query as role: "Style"

Google map location displayed in historic real time

I'm interested in adding a Google Maps feature to a program I'm writing. I would start with a historic GPS log file containing a record of my changing GPS location and date/time - for example as I drive along the road. Later on I would like to feed this log file into a windows program which would display the GPS position as a marker in the center of a Google Map that is displayed in a window on screen. The Google Map would be automatically scrolled horizontally or vertically in historic "real time" as the GPS position changed so that the marker always stays in the center of the map.
Below is a YouTube video of an existing program which already does exactly what I want, so it must be possible (it's the pane in the bottom right of the video frame)
http://www.youtube.com/watch?feature=player_embedded&v=r4rwMV7hhaY#at=840
Effectively the user would be playing-back their recorded movements in real-time from days or months ago. It would not be for tracking current movements.
I don't know much about the Google API yet, but I think that the Google maps would have to be running in a desktop program, and not on a web site.
Are there any pre-built modules which already do this (perhaps just feeding it a list of coordinates and times)?
If not, what API would I need to use to reproduce the map behavior shown in the video?
Also are there any licensing issues with doing this in a desktop program which would only be seen by 1 user rather than on a publicly available web site?
I have used the Google Maps API for creating an embedded GPS window like the one you referenced in your link, but basically it was embedding a browser window and linking it up to Google Maps. You can manage the data yourself and pump it over to the browser. This can be done locally.
You'll need to do a few things.
Define the map scripts (with an html/Javascript file). These scripts will allow you to update the location you are displaying on the map which you will hook into code side to control.
In your GUI define a browser object and set it to navigate to the html file you've made and then use the document portion of that object to invoke scripts.
You should be able to control the GPS location once you've done that. The Google Maps API is referenced in your html file. That html file is key, it will need to have all the functions you want to use to update the GPS location and display it on the map.
As per pre-built modules an/or licensing I do not know.

Google Maps Data API - Upload KML / Replace Map Content

I am attempting to create an application that will allow a small group of users to subscribe" to a KML feed we produce. The users want to view the KML using Google Earth on their mobile devices which does not support "network links" (please add this...).
The KML contains several hundred different place marks with related information as wells about 30-40 polygons. I am using the HTTP protocol. So far, I can successfully perform the ClientLogin and get the authorization token, I can retrieve a list of user maps and find the one I am supposed to update. Now I'm stuck. Every single feature needs to be updated every time...I don't want to have to manually update every feature or delete each one and re-add. What I would really like is to just provide a KML document and tell it to just
replace ALL content in this map with this KML.....is this possible?
Summary:
Login, then...
Find a map with a specific name, then...
Replace that maps content with a KML file
I thought of just deleting the map and creating a new one with the
same name, but that might mess up the UI of the mobile device and
force the user to have to re-select the map every time I update them (every day). This is not completely out of the question, but it's certainly not ideal.
What is the best way to handle this?
Good question. I don't think the HTTP protocol allows for this in the way you suggested (login, find map, replace entire map with KML).
The delete and recreate method that you suggested in your comment might work, but you'll have to wait until issue 2590 is fixed to resolve the 400 BAD REQUEST problem. The workaround that Google suggest for this issue is to upload individual KML features as required, which really won't help you as that's exactly what you're trying to avoid!
See my answer on this similar question for more details.