Skip to content
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

Guidance #4

Open
travisghansen opened this issue Oct 2, 2017 · 5 comments
Open

Guidance #4

travisghansen opened this issue Oct 2, 2017 · 5 comments

Comments

@travisghansen
Copy link

I'm interested in making a wrapper for this to make it work with node-red. I am, however, pretty ignorant with node/js in general. I'm interested in knowing if you have any interest in helping me out with this effort?

Regardless, I'm interested in a couple things:

  1. What's the setup you're using to sniff traffic from the app?
  2. How exactly are you launching example.js? when I do node I get errors about the import token (I'm sure this is super noob stupidity).
  3. Have you used it since anova started requiring an account on their systems? Any gotchas you're aware of?

Thanks!

@dfrankland
Copy link
Owner

Hey there! Sure, I'd love to help out however I can. To answer some of your questions:

  1. Android, Packet Capture app.

  2. First, run npm install to get all the dependencies, then run npm run example.

  3. Yes, I think I have. Once the Anova is setup, then there's nothing extra needed—no gotchas.

Cheers! There's some other cool things I have yet to commit to this repo yet, but I plan to do it once I have got some time.

@travisghansen
Copy link
Author

Perfect thanks for the pointers. I was able to install babe node after I sent the message and got it working that way. I'll have a look at packet capture.

I'm pretty ignorant when it comes to js so I'll just fumble through it for a bit and see where it lands.

Do you have any idea how the communication goes from device to cloud? Is it real-time or on some specific interval?

@dfrankland
Copy link
Owner

dfrankland commented Oct 2, 2017

The monitoring isn't done through the Anova API actually. It's done through a TCP socket that the Anova device connects to. This socket is opened by an Anova AWS server. The Anova device then sends information every second or so.

Check out this video: https://www.youtube.com/watch?v=xDDPFHhY7ec&t=2067s

@travisghansen
Copy link
Author

Wow, great link! That's more my language than JS :) I'll see if I can watch the requests from my app tonight and go from there.

@travisghansen
Copy link
Author

I was able to sniff the secret and have been able to successfully make curl requests. However, after initially connecting via ble (before sniffing the secret) I am no longer able to..the example just hangs now for some reason..any ideas?

Also, did you happen to jot down the frequency that the app polls status? Is it always polling or is there some websocket-esque connection being made to receive real-time updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants