It only posted whether or not you meditated, not how many minutes you meditated for, so it was unsuitable if your goal was to increase the duration of meditation sessions as well as the frequency.
Anyway, I created a fork on github that does exactly that. Posting it here for posterity.
Please enjoy, peace be upon you and all that stuff…
If that’s where it’s getting hung up, it’s probably unable to find or read the “config.ini” file.
Make sure that you’ve:
a) Renamed the default file from “default-config” to just "config"
b) Placed it in the same directory as the script itself
c) Populated all of the required data in the config file
I didn’t include stack trace logging in the script so if it’s falling down somewhere not obvious it won’t appear in the generated log.
Good news is you can see the error causing the problems with the following steps:
Create a new text file called “run-beesight.bat”
Copy the following inside and save it:
C:
C:~path to python.exe~\python.exe "C:~path to script file~\beesight.py"
pause
When you execute the .bat file you just made it will try to run the script and when it fails you’ll see the error message in the command prompt window. Let me know what it says…
2016-01-14 02:40:52,633 - main - DEBUG - Submitting POST request to insighttimer.com…
2016-01-14 02:40:58,342 - main - DEBUG - Submitting GET request to insighttimer.com…
2016-01-14 02:40:58,604 - main - INFO - Parsing last four sessions from CSV:
Run that .bat file again and when it tells you to “press any key to continue” scroll up and read the error messages instead of hitting the key to close the window.
You have to replace the ~path to *****~ bits with the actual file path. I don’t know where you put the files on your computer so it’s expected that you fill that part in yourself.
In that .bat file you made, you just copied what I posted, but you were supposed to replace the two parts where it says ~path to python.exe~ and ~path to script file~ with the actual path in your computer.
For example, it should say something like C:\users\bluremi\python\python.exe, or at least that’s what it says on my computer because that’s where I installed it.
That’s why the .bat file script isn’t working for you.
Actually I should be thanking you, for pointing out to me that the folks at insighttimer.com just updated their website and the URL I’ve been using (which worked until yesterday!) is no longer valid.
I’ve uploaded a new script to github to fix the problem, it should work now.
Now I get this:
2016-01-14 03:25:52,012 - main - INFO - Parsing last four sessions from CSV:
2016-01-14 03:25:52,013 - main - INFO - 01/14/2016 02:53:29 : 1 minutes
2016-01-14 03:25:52,014 - main - INFO - 01/14/2016 01:51:32 : 1 minutes
2016-01-14 03:25:52,014 - main - INFO - 01/13/2016 07:25:16 : 3 minutes
Now I get this:
2016-01-14 04:12:04,170 - main - DEBUG - Submitting GET request to insighttimer.com…
2016-01-14 04:12:04,511 - main - INFO - Parsing last four sessions from CSV:
2016-01-14 04:12:04,512 - main - INFO - 01/13/2016 14:12:17 : 1 minutes
2016-01-14 04:12:04,512 - main - INFO - 01/13/2016 14:07:26 : 1 minutes
2016-01-14 04:12:04,512 - main - INFO - 01/13/2016 12:53:29 : 1 minutes
2016-01-14 04:12:04,513 - main - INFO - 01/13/2016 11:51:32 : 1 minutes
2016-01-14 04:12:04,513 - main - INFO - No minutes logged for today’s date on InsightTimer.com
Thanks for the script! When the logs are downloaded, the timezone is assumed to be US/Eastern. This may surprise you if you are meditating in a different timezone around midnight eastern. I’ll modify the script in a bit to add a timezone option in the config.