Logging Temp and Humidity Data with Google Docs - google-sheets-api

I am working on a science project, and need to record temperature and humidity on Google Spreadsheets. I am using the DHT11 sensor with a Raspberry Pi. I know my sensor works (I have gotten data from it to print in the terminal), but cannot get it to automatically record it to a spreadsheet.
I have followed all the instructions here (https://learn.adafruit.com/downloads/pdf/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging.pdf)
and here (http://gspread.readthedocs.org/en/latest/oauth2.html#), but I get an error message each time, specifically
"Unable to login and get spreadsheet. Check OAuth credentials, spreadsheet name, and make sure the spreadsheet is shared to the client_email address in the OAuth .json file!
Google sheet login failed with error: '(email address it gave me)'"
I also receive an email in my main email saying that the domain name is not found for the email address I tried to send the Google Spreadsheet to.
I am at a total loss with all of this. I don't understand CS much at all, but am ready to learn!
Thanks in advance for your help!

Related

Whatsapp URL error ' Phone number shared via url is invalid" even if mobile number is active on whatsapp

I am using Selenium.webdriver to send message on whatsapp using URL
"url = 'https://web.whatsapp//send?phone='+lead+'&text=' + message"
but its showing error after yesterday(16/11/2022)
Phone number shared via url is invalid
how can it be resolved?
Number is a valid whatsapp user. but still url showing error
WhatsApp has stopped the ability to send messages with short urls like wa.me for people who are not registered in your contacts. It is not clear at the moment whether he did this permanently or if this situation will improve after a while.
As a workaround, you need to save numbers in bulk in your contacts. I showed it in detail in the video here.
https://www.youtube.com/watch?v=aUWeO2GMazY
To summarize
we list destination numbers without country code.
export phone numbers to google spreadsheet. Make column header phone and download as .csv
Import the .csv file in the google contacts app.
export again as vcard by selecting export option
open the contacts list on your phone and select the import option. Import the vcard file
After doing these steps, you can send a message to their phone
number.
Remember this is a temporary solution. I hope whatsapp will be restored soon because many people use short urls to send messages

access idx-analytics-data-api through a browser

I am trying to access the Open edX data Analytics API v0 alpha as I would like to download the problem grades data.
In the documentation on setting up the API it mentioned Test the Data Analytics API by "In a browser, go to: http://<server-name>:<port>/docs/#!/api/
Enter a valid key and click Explore."
May I know what is the server-name and port number here refers to?
Also what is the Docs/#! refers to here.
I tried to look for API url online, but could not find it either.
Also I am assuming I need to get authorization through Oauth2 as well.
As this is the first time I am trying to access API to download data, i would really appreciate your help with the questions above
in this
http://<server-name>:<port>/docs/#!/api/
<server-name>
refers to the ip address of the server where you are running the edx-analytics
<port>
refers to port
sample url could be http://192.168.10.110:8085/docs/#!/api/

Google API changed for data from google finance

I have a software that extracts intraday data from google finance. However, as API was updated by Google yesterday so the software giving error
Conversion from string HTML HEAD meta http-equiv="con" to type 'Double' is not valid.
I have one ionic.zip.dll file of that software. Can somebody help to update, as to how to resolve the above error
I believe I have found the solution to the problem of Google Finance not downloading intraday prices: the domain name (the part at the beginning of the URL) has changed.
It seems Google is now serving data from finance.google.com and not www.google.com. If you use the www domain, you are redirected to finance.google.com, BUT in the process they somehow drop the &i query string parameter that determines the time interval. This defaults to 86400, which gets you daily data only.
So to get 2 days of 1-minute data for Apple, instead of
https://www.google.com/finance/getprices?p=2d&i=60&f=d,o,h,l,c,v&q=AAPL
do this instead:
https://finance.google.com/finance/getprices?p=2d&i=60&f=d,o,h,l,c,v&q=AAPL
Hope this helps :-)
Google not serving the Converter API on the main domain as well, not anymore. We've updated the URLs as below:
"https://www.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"
to
"https://finance.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"

How to get web data which can be opened from a specific website into a different tab in excel

I wont to pull data from a webpage on the basis of a criteria's into excel however I am unable to do so.
Website from which I wont to pull data can be logged in only via another website and not by just url.
For E.g. My site name is Elsc and to login into it I have to via another site Gatekeeper and elsc cannot be logged into in any other way.
So is there a solution to get data from such website by Macro.
Thanks in advance :)
I don't think Excel will give you this kind of control (controlling one URL from another URL). I tried to do this a long time ago; it never worked right. Can you just login to that URL and then run a simple VBA script to download the data? Also, consider using a Power Query to do this for you.
http://chandoo.org/wp/2015/08/21/import-web-data-power-query/

Google Sheets API - 500 Error for sheets listing

I am hoping someone can help me figure out why I can't get the Google Sheets API to return a list of sheets for some users.
I am attempting to use the Google Sheets API to get a list of sheets available from a user's account after they have given authorization.
Things seems to be working for the most part, but I am getting 500 Error for a number of users who have tried to test the functionality.
If User1 who experiences the failure shares all of his sheets with User2 who has not experienced the failure, User2 continues to work without experiencing any failure. I believe that rules out an issue with any particular sheet. (Unless of course a sheet that is "shared" with User2 is somehow different than a sheet that is actually in and owned by User1's account.)
I think the problem must be something with this particular user account or their settings, but I don't understand what it might be or how to work around this. The failure is always reproduceable for specific users for whom it fails, and success is always consistent for specific users for whom it does work. It may be important to note that the users with the failures are indeed able to successfully access from the Google Drive and Google Sheets web-interface every sheet in their account (whether owned by them or shared with them).
The requests that have received both failures and successes are being made in exactly the same format. However, the key length is the only real difference I noticed between the requests that succeeded and the requests that failed. In my limited sample set of tests, the successful requests seem to have the longer keys whereas the failed request have shorter keys. Here is an example of each with part of the key redacted:
FAILED
https://spreadsheets.google.com/feeds/worksheets/t-4-L-cbXXXXXXXXXXm2lA/private/full
GOOD
https://spreadsheets.google.com/feeds/worksheets/1n7rDwb5gwt1XXXXXXXXXXYzUz2_F4nEqMhaK4Odk/private/full
Also, I have tested this with both personal Google user accounts as well as with Google Apps user accounts. I have examples of both types that both work, and that fail.
Does anyone have any ideas how to trouble shoot this, or what else to try, or what other information may be helpful?
Thank you!
The API seems to sometimes return sheets that are no longer available in that user's account. I'm not sure why it does that. However, if you try to enumerate the worksheets within a sheet that is no longer available (or access it in any other way), you will experience a problem since the sheet itself is no longer available. Code your solution so that you don't try to access the contents of any sheets that are no longer available.
the FAILED
https://spreadsheets.google.com/feeds/worksheets/t-4-L-cbXXXXXXXXXXm2lA/private/full
seams oddly short are you sure the key is correct?