The idea is that i replace Fuelly app that i use to use with my old car. I have this shortcut that I have created. The app asks me a series of questions when I am at the pump about my mileage, price / gal, total cost or total gallons filled, and if this is a full fill up vs partial and if i missed a fill up the last time. Then it creates a dictionary or JS object and should send it over to scriptable so that scriptable can consume this data, and consume my database.json i have saved on the shortcuts file folder (Shortcuts / MPGTracker / database.json). This json database is an array of objects. Scriptable should take this array and extract the last entry and extract value of the key called mileage then calculates MPG based on current mileage - last mileage, and fills that into the new object it got from shortcuts, and then finally will add the object to the array and save the file back. This way i have a large database.
However, i am stuck on just how to get a file bookmark.
It keeps crashing when i try to grab the file. The file is pretty empty right now just has 2 objects in 1 array.