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
Remote Logging #277
Comments
I don’t think so. How does it work with BrewPiLess? Every time it receives/generates a reading it sends it to an external website/endpoint? |
Basically you set a time interval (ie every 15 minutes) and it sends a HTTP (post) to an endpoint you define. So it will send the last know values i guess, then at that interval. You can define the format on the data it sends, but having a default JSON structure is the best. |
You can pull this data from Fermentrack right now through the existing (admittedly undocumented) API endpoints used for the “dashboard” views. If pulling the data works for you, let me know, and I can get you some brief documentation on the endpoint. If you need the data pushed, that’s not something that currently exists. I expect that writing the client to do the push would actually be pretty easy (pull from the database, encode using JSON, send to the endpoint - all using Huey to handle the timing) but there would be some work in writing the screens to allow configuring the endpoint, managing the Huey process, etc. This (push support) isn’t something I envision building in the near future absent either additional requests for the feature or coming up with additional features that could be combined into a single configuration page - but if you wanted to build it and submit a pull request I’d be open to it. |
Thank you for the quick feedback. I will ask how many of my users are looking for this features, and then we can see how many requests we get. |
This feature would be realy nice. |
I don't know if it help but a look to my devices in two ways:
|
It is muche easy to use a dynamic name server la no-ip.com, dynu or duckdns
2018-05-08 8:10 GMT-03:00 lggrizendi <notifications@github.com>:
… I don't know if it help but a look to my devices in two ways:
1. I create a bash script that send me e email with may external ip
every time it changes so i can access at fermnetrack at any time.
2)The other i create a bash script that cut the last 3 log temp and
send me email whit the information at the time that i want. Ex mine send me
a email whit the temperature at 8h,12h and 20h.
If anyone want i can send instructions im just have to translate to
english .
Sorry for my bad english it not may native language .
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK4bcZGkW92UW7SvuP4yQOvzfuKzNLH_ks5twX02gaJpZM4T03jI>
.
|
I know its very easy use, i use with windows for some time. But i don't want to change my host-name every 30days(its a very bad excuse ) but i like with the scrip and its not that difficulty to put to work. I never use on raspberry but here is the tutorial. |
For now I am only interested in getting data pushed by Fermentrack, since pulling data from a device on a local network by an external server is far to cumbersome. |
@tgangso - Is there a documented format for what Brewfather expects? |
@thorrak From Brewpiless i have defined the following JSON structure, but i can adapt if you don't have the same: { |
I would also find remote logging useful. I've been using the feature in BPL to push data up into Thingspeak, essentially just to enable remote temp checking and alert options based on temp thresholds. |
Any news regarding this @thorrak ? I have users still requesting this :) |
It would be really nice to have the possibility to push/integrate the data from Fermtrack to Brewfather. |
I spent quite a bit of time on this feature this weekend, and it's nearing completion. It works, but isn't easily accessible from within the Fermentrack UI just yet. Once the forms get added (hopefully in the next week) this should be good to go. Soon! |
Awesome @thorrak |
Excellent news @thorrak, do you have a sample of the final message format? Also, does it always log in Celcius and gravity in SG (1.XXX), or is the unit specified in the format? Thanks! |
This isn't yet final, but this is what it looks like at the moment (this is the pretty-printed version of the JSON, I'll post the raw JSON as well later)
|
Thanks, i can not see the gravity number in this format? What are the possible temp_format values? |
That’s the dump of what my Fermentrack install sent ~1 minute before I posted the comment rather than a true exemplar of all the fields. I think my Tilts need new batteries. If a gravity reading was available it would have appeared as Right now, all (selected) gravity sensors & BrewPi devices are sent with every push. I haven’t yet decided how I want to handle caching of values, so right this second it’s a bit of a mess. The formats at the moment are C and F, and are specified whenever a temperature is provided. If someone else wants to add support for Rankine, they’re welcome to. ;) |
One other thing of note - at the moment, the only device identifier is the “API key”. The idea is that when you set up a push target in Fermentrack, you provide two pieces of information - an endpoint (in most cases a URL) and an API key. The API key can be literally anything, but is intended to be something known to the endpoint as an identifier for a Fermentrack installation. I wouldn’t be averse to adding an optional “username” field or something of the sort in addition to API key if anyone thought that might be useful - in my head the API key should be enough of an identifier, but I can see other scenarios where an additional data point might be helpful. |
API-key only should work fine i think |
* Add remote logging (external push) support (#277) * Remove the constant polling for LCD refreshes (#278) * Add "NewCCModelForm" for "modern" controllers (#282) * Support debugging connection for ports other than 23 (Fixes #279) * Add support for temperature calibration offsets (Closes #281) * Update documentation * Catch ObjectNotFound errors generated by the iSpindle calibration API * Fix link to favicon (Fixes #313) * Remove error not available in Python 3.4 (Fixes #321) * Catch error when API called for nonexistant gravity sensor (Fixes #330) * Map "Log1Temp" to "RoomTemp" value
External push support is now live in dev. I'm expecting that there are going to be questions/concerns/requests/complaints - if you have any (or all!) of those, feel free to post them here. :) |
For anyone interested in developing for this, I have created a "sample" app which accepts Fermentrack pushes & logs them. The sample app is available at https://github.com/thorrak/fermentrack_push_target If you just want to see the app in action, you can spy on my personal Fermentrack push targets by looking at http://pushtest.fermentrack.com/ |
Hey @thorrak, where would I find logging for this feature? Or any other thoughts as to where we might start looking? Set up a push target to help @tgangso integrate with Brewfather but we aren't seeing anything come through at his end. Have rebuilt my fermentrack twice and did notice an issue with redis not coming back up (which has now been fixed). |
It leverages Huey -- the logs are huey-stderr.log in the log directory of Fermentrack. If you see any errors/bugs, post here and I'll try to squish them post-haste. |
All i'm seeing in there is a lot of these, might be something I am doing, I am running a non-standard build. Let me know what you think
|
I just pushed out a fix to dev that should resolve that. |
I have had multiple users move from Fermentrack to BPL because they are not able to get any data in the body from this feature |
I’m not surprised - BPL is a damn food piece of software, and is a great solution for a number of people. My focus has been on TiltBridge for the past two months, but now that it’s complete I’m shifting back to push support to try to finalize Brewers Friend support and get this bug fixed. Should be ~1-2 weeks out if I was to make a guess based solely on the number of hours I was to have to work on it. |
Would you mind enlighten me about the push support? I guess it will be the same thing i am after for Brewfather. Maybe add a option for Brewfather aswell? Thanks |
It probably is, depending on what data you want. The Brewers Friend support is gravity only I believe - It uses their stream API. |
Brewfather also has a custom stream, with similar field names and function. If you can tie into that aswell, that would be awesome. https://docs.brewfather.app/integrations/custom-stream there is the spec. Loggin url would be http://log.brewfather.net/stream?id=xxxx |
Is support for stream/tilt/etc limited to premium accounts? |
Yes, if you register an account you have premium for 30 days. Send me a private message and i can set your account up with premium. |
Hey thorrak, I have Brewfather and this app is great. I just updated Fermentrack to the Master and it says that it has the ability to export. I was wondering how I would do this for Brewfather? I see there is some troubleshooting here but I would love the instructions if possible. Thanks for all you do, and this project is amazing. The current setup is Fermentrack running Uno and Tilt. |
@potseeslc I personally haven't been able to get this working yet, however this could be due to my configuration (running Fermentrack inside Docker) and i haven't had a chance to confirm either way. I'd be curious how you go with it. There is an 'External Push Target' option under the settings section in Fermentrack where you would configure, and potentially use the Custom Stream option in Brewfather. I know @tgangso was looking at setting up a specific option for it in Brewfather but as we haven't been able to get any data written to an endpoint this hasn't happened yet. |
Yeah - @potseeslc reached out on HBT as well. I think you're right @danielatkins that BrewFather doesn't work with it yet. I'm going to try to get a BrewFather account set up to play with/test, but haven't had a chance just yet. Depending on how (non-beer-related) things go this week I may end up stuck in a car for 7+ hours on Friday. If that happens, bugfixes & revisiting why this is causing issues are at the top of the list! |
Am also travelling at the minute, I'll make some time when I'm back to spin up fermentrack on a spare Pi and see if the ext push target works on that. That'll confirm if my Docker image needs something added to it - i suspect it will. |
Yes that was me on HBT as well. I did the custom add-on in brewfather. I
added the custom stream URL but it wouldn’t show up. I also made sure the
push was only in 15 min intervals. Thanks for all of you help both
fermentrack and brewfather projects are super cool.
…On Mon, Apr 22, 2019 at 8:00 PM danielatkins ***@***.***> wrote:
Am also travelling at the minute, I'll make some time when I'm back to
spin up fermentrack on a spare Pi and see if the ext push target works on
that. That'll confirm if my Docker image needs something added to it - i
suspect it will.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC5AAP74GTNKUXPS2CWUMDPRZUU5ANCNFSM4E6TPDEA>
.
|
Any update on this feature? Would be a really nice addition to both Fermentrack and Brewfather |
I have Fermentrack running on a Pi (not in Docker) and a Premium Brewfather account so I'm very willing to pitch in and help run some tests or figure it out. Just need some guidance. |
Any news @thorrak ? |
@thorrak Having the possibility to customize the JSON POST format for other apps would be ideal. I'm using BrewFather and the JSON format is different. It should be quick and easy to implement. |
Hi @thorrak have you stopped working on fermentrack? I haven't seen an update in months. I was hoping to see movement on this brewfather push issue. |
I know he's still around and wishing he had a little time. As a fellow maintainer of a software package or two, I can confirm there are more things to do than time to do it. He just started a new job and is pretty busy but I know this is one of the things he really wants to do. I'm looking at it as well but there are other products/services out there which are much friendlier to developers. |
Thanks Lee for the update. I totally understand the new job thing and this
is a free project. But one could hope. I’ll sit tight and hope to see more
work soon.
…On Sun, Aug 18, 2019 at 5:51 PM Lee Bussy ***@***.***> wrote:
I know he's still around and wishing he had a little time. As a fellow
maintainer of a software package or two, I can confirm there are more
things to do than time to do it. He just started a new job and is pretty
busy but I know this is one of the things he really wants to do. I'm
looking at it as well but there are other products/services out there which
are much friendlier to developers.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277?email_source=notifications&email_token=ABC5AALZKSDF3US72DXNNTLQFHN77A5CNFSM4E6TPDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RLVZA#issuecomment-522369764>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC5AAK3RPV34FCBRIGAKBDQFHN77ANCNFSM4E6TPDEA>
.
|
Any updates on this ? |
Brewfather support should now be live on the dev branch of Fermentrack. I've tested it briefly - if you have any questions/issues/requests, please let me know! Note - For gravity sensors attached to temperature controllers, the current implementation does not include any of the data coming off the temperature controller itself (e.g. beer temp, fridge temp). I plan to resolve this prior to pushing this patch live into master, but wanted to get this out now to let people start playing with it. |
Sweet! I’ll update and test it now.
…On Fri, Nov 29, 2019 at 3:39 PM John ***@***.***> wrote:
Brewfather support should now be live on the dev branch of Fermentrack.
I've tested it briefly - if you have any questions/issues/requests, please
let me know!
*Note* - For gravity sensors attached to temperature controllers, the
current implementation does not include any of the data coming off the
temperature controller itself (e.g. beer temp, fridge temp). I plan to
resolve this prior to pushing this patch live into master, but wanted to
get this out now to let people start playing with it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277?email_source=notifications&email_token=ABC5AAJG47V5YEIZZD3IQDTQWGK3LA5CNFSM4E6TPDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFPT5CI#issuecomment-559890057>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC5AALC4A5YAGUX5D5CFVLQWGK3LANCNFSM4E6TPDEA>
.
|
Sweet! Thanks John.
I have two beers that went into my fermchambers yesterday so I don’t want to screw around with updates while they are fermenting. I’ll update as soon as they are done.
Mark.
From: John <notifications@github.com>
Reply-To: thorrak/fermentrack <reply@reply.github.com>
Date: Friday, November 29, 2019 at 3:39 PM
To: thorrak/fermentrack <fermentrack@noreply.github.com>
Cc: TripitakaBC <hurstfamily@gmail.com>, Manual <manual@noreply.github.com>
Subject: Re: [thorrak/fermentrack] Remote Logging (#277)
Brewfather support should now be live on the dev branch of Fermentrack. I've tested it briefly - if you have any questions/issues/requests, please let me know!
Note - For gravity sensors attached to temperature controllers, the current implementation does not include any of the data coming off the temperature controller itself (e.g. beer temp, fridge temp). I plan to resolve this prior to pushing this patch live into master, but wanted to get this out now to let people start playing with it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks John. I'll update and test on my next batch!
…On Sat, 30 Nov 2019 at 08:12, TripitakaBC ***@***.***> wrote:
Sweet! Thanks John.
I have two beers that went into my fermchambers yesterday so I don’t want
to screw around with updates while they are fermenting. I’ll update as soon
as they are done.
Mark.
From: John ***@***.***>
Reply-To: thorrak/fermentrack ***@***.***>
Date: Friday, November 29, 2019 at 3:39 PM
To: thorrak/fermentrack ***@***.***>
Cc: TripitakaBC ***@***.***>, Manual ***@***.***
>
Subject: Re: [thorrak/fermentrack] Remote Logging (#277)
Brewfather support should now be live on the dev branch of Fermentrack.
I've tested it briefly - if you have any questions/issues/requests, please
let me know!
Note - For gravity sensors attached to temperature controllers, the
current implementation does not include any of the data coming off the
temperature controller itself (e.g. beer temp, fridge temp). I plan to
resolve this prior to pushing this patch live into master, but wanted to
get this out now to let people start playing with it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277?email_source=notifications&email_token=ABKELBOQSZMUGRHSM3CT23TQWGLE3A5CNFSM4E6TPDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFPT7KI#issuecomment-559890345>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKELBJTVEDMLY466HHLSGLQWGLE3ANCNFSM4E6TPDEA>
.
|
I have been testing with my current batch and the tilt functionality with
Brewfather is working great.
On Fri, Nov 29, 2019 at 10:52 PM danielatkins <notifications@github.com>
wrote:
… Thanks John. I'll update and test on my next batch!
On Sat, 30 Nov 2019 at 08:12, TripitakaBC ***@***.***>
wrote:
> Sweet! Thanks John.
>
>
>
> I have two beers that went into my fermchambers yesterday so I don’t want
> to screw around with updates while they are fermenting. I’ll update as
soon
> as they are done.
>
>
>
> Mark.
>
>
>
> From: John ***@***.***>
> Reply-To: thorrak/fermentrack ***@***.***>
> Date: Friday, November 29, 2019 at 3:39 PM
> To: thorrak/fermentrack ***@***.***>
> Cc: TripitakaBC ***@***.***>, Manual <
***@***.***
> >
> Subject: Re: [thorrak/fermentrack] Remote Logging (#277)
>
>
>
> Brewfather support should now be live on the dev branch of Fermentrack.
> I've tested it briefly - if you have any questions/issues/requests,
please
> let me know!
>
> Note - For gravity sensors attached to temperature controllers, the
> current implementation does not include any of the data coming off the
> temperature controller itself (e.g. beer temp, fridge temp). I plan to
> resolve this prior to pushing this patch live into master, but wanted to
> get this out now to let people start playing with it.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#277?email_source=notifications&email_token=ABKELBOQSZMUGRHSM3CT23TQWGLE3A5CNFSM4E6TPDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFPT7KI#issuecomment-559890345
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABKELBJTVEDMLY466HHLSGLQWGLE3ANCNFSM4E6TPDEA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#277?email_source=notifications&email_token=ABC5AALNMPHY6EVN7WSRJKLQWH5SDA5CNFSM4E6TPDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFP2B2Q#issuecomment-559915242>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC5AAPDZNFPQU3YYFAULOLQWH5SDANCNFSM4E6TPDEA>
.
|
Nice job, I still see only gravity sensor support on Dev branch. Dio you plan to also support data comming from the temp controller (beer temp, fridge temp, etc.)? |
Yeah - assuming I understand your request correctly, #401 should add this to the dev branch. |
Hi @thorrak,
Does fermentrack support remote logging to external HTTP endpoint? (Similar to BrewPiLess)
That would be golden as i want to integrate this into my Brewfather app.
The text was updated successfully, but these errors were encountered: