STEP 2
Set up myfitnesspal_rawdata
The following instructions are to allow access to your myfitnesspal data and enable the spreadsheet 'myfitnesspal_rawdata' to log daily your daiy nutrient intake
If you are having trouble following the steps below there is a video bottom of the page demonstrating setting up myfitnesspal.
Otherwise send me a message through the contact form at the bottom of the 'Home' page or on instagram @quinn.higgs and I'll help you out.
Requirements:
-
A Myfitnesspal account you will use to track your food intake
-
Your myfitnesspal_rawdata Google sheet
-
A laptop/computer to complete the following steps on
​
-
Log in to https://www.myfitnesspal.com/account/login
-
Click on "Settings" -> "Diary Settings"
-
Scroll down to the bottom on the page and change your "Diary sharing" to public
-
Click "Save changes"
-
Go to your google drive and open your spreadsheet "myfitnesspal_rawdata" (this can be found in My drive -> Nutrition Tracking -> rawdata -> myfitnespal_rawdata)
-
In cell A1 at the top-left of the sheet input your myfitnesspal username (ensure there are no spaces after your username)
-
Click on the link in the cell adjacent to test if the sheet is functional
-
You should be redirected to a website listing your food log from today
-
If the data withing the spreadsheet is listed as "N/A" either your myfitnesspal username has been inputted incorrectly (make sure you have not added a space at the end of your username) or you have not yet logged any food for that day
-
On your spreadsheet "myfitnesspal_rawdata" click on the Tools bar on the top row and select script editor
-
On the new tab that opens select ​​Edit on the top bar and then current project triggers
-
In the bottom right hand corner on the tab that opens click on the "Add new trigger" button
-
Under "Choose which function to run" select saveData
-
Under "Select event source" click Time driven
-
Under "Select type of time based trigger" click Day timer
-
Under "Select time of day" choose Midnight to 1am
-
Click "Save" and follow the steps to authorise the script to run
-
When the "This app isn't verified" screen opens, select "Advanced" and then click "Go to myfitnesspal_rawdata" (The code being used for this does not allow access to anyone accept yourself and all data stays in your ownership)
-
Click "Allow"
-
Go back to your "myfitnesspal_rawdata" spreadsheet
-
Click on "Share" in the top-right corner and select "Get shareable link"
-
Copy this URL and open your "Nutrition Tracking" google sheet
-
Click on the "Settings" tab and paste the URL in the box adjacent to "myfitnesspal_rawdata"