-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedings total amount #58
Comments
Do you mean the total amount per day? 24 hour period? Something else? |
I should have been more precise. I was thinking the total amount in a 24-hour period. |
Have you looked at the Statistics platform? Specifically, the |
Thanks for getting back to this. Yes, i am using the statistics platform now to get the totals. The challenge with this solution, is if changes are made in the Baby Buddy database, eg. if i enter a feeding in the past. I generally try to avoid this, but sometimes it is necessary. As far as i can see, it does not look like the totals are a part of the Baby Buddy API, so maybe it is better to create a request in the Baby Buddy repo? |
Gotcha, makes sense. We could query API with specific lookback. Docs say |
That would be great! I guess this would be the same with other totals (diapers, sleep etc.?) |
I made some progress on this. If i call the feedings endpoint, it returns all the feedings recorded. I'm then using node red to filter this and create a sensor for the total amount and the number of bottles consumed. Here is the flow: |
I wanted to take a moment to add what I've done here for others as well. This is based on what @mrmultifunk posted April 11th (thanks for that!) and updated to use the datetime format. I expanded the functionality to call additional information available in the API, including total pumping amounts (for supply/demand comparison) and wet/solid/total diaper counts. I plan on expanding this as our newborn gets older to call all the Tummy Time entries and calculate daily/weekly Tummy Time durations. We use a lovelace dashboard for most of our data entry which goes through NodeRed, and certain entries will trigger their respective API call sequence, as well as a midnight call to reset data for graphing purposes.
|
hey, this looks like exactly what I am looking for. Very new to Node Red coding. Mind helping me with a few questions:
Thanks! |
just found this and want the same. Are ppl using the Node-red solution? |
do you mind sharing your Statistic code?? |
Hello,
Thank you for this great integration!
Is it possible to extract the total feeding amount into a sensor directly from the Babybuddy API?
The text was updated successfully, but these errors were encountered: