Is there a PoolMath API to extract data?

wayner

LifeTime Supporter
May 31, 2012
966
Toronto, ON
Pool Size
100000
Surface
Vinyl
Chlorine
Salt Water Generator
SWG Type
Jandy Aquapure 1400
I would like to be able to monitor all of my data on a dashboad that I am going to create. After doing my tests I enter the results into PoolMath on my phone. Is there a PoolMatch API that would allow me to retrieve my test results from the cloud (I am assuming that my results get uploaded to the cloud after entry)? I know that I can export my logs to a csv file, but I would like to just export the most recent record, or individual fields, like FC.
 
There is actually some basic support for this using the "Share Code" feature of the app.

Someone wrote a HomeAssistant plugin for it already: GitHub - rsnodgrass/hass-poolmath: Pool Math for Home Assistant

As they suggest in the description, you can go into your pool's settings, enable sharing the pool information for anyone with the unique url, which has a unique code in the URL.

You then use that code to build the json url, eg: `https://api.poolmathapp.com/share/SHARECODE.json` Where the `SHARECODE` value is the unique code from the URL generated in the pool's settings.

This should give you the JSON for the pool's recent timeline logs and pool overview.
 
@redth New news to me as a guide...thanks for piping in!

I tried this with POSTMAN and got null JSON.

Since I haven't entered any test results for a week because I closed, I entered a fake test result, and re-ran the GET. I then got logs from the past ~28 months.

Is a test on the day you run the request the only requirement that will yield GET results?

BTW, thanks for all you do!