chromeJoule icon indicating copy to clipboard operation
chromeJoule copied to clipboard

Help wanted to port your great app onto UWP

Open mediaexplorer74 opened this issue 2 years ago • 4 comments

Hi, Dennis. I'm also interesting to R.E. Joule Android app :) But I am fan of old sweet Nokia/ MS WinPhones... so, I decided to create the very simpest Win10Mobile app that shows the count of Joule devices :) I 2 day ago found JouleUWP project, forked it and researched a little. The code is very uncomplete :( Then I found your great article at Medium site. Then I found your cool chromeJoule :) But your code is so difficult to me :) I cannot translate it onto C#, heh (No good autotranslators at all!) Can you help me to undestand, what first steps your app does? Which url do you use to authorize via ShefSteps API? I tried to use Postman (GET-request https://chefsteps.com/api/v0/authorize, and x-form-encoded user[email] and user[password]) and catched "404 not found" : image

Maybe it happens because of I have not real Joule device (I not ordered yet it as I don't like Droidphones, hehe) ?... Can you 'clone' yout account with some fake login-pass and Joule activated? Or I PM my login-pass pair :) I need to check whats fails: API endpoints or BT-first activation needed... Best wishes, mediaexplorer 30-year c# veteran

mediaexplorer74 avatar Oct 31 '22 10:10 mediaexplorer74

Hey hey!

I think the reason why might be because the app implicitly relies on using cookies from logging in at chefsteps.com. It's been a while since I've touched this repo, so I'm not sure what the original URIs are or if I even wrote that logic vs extracting it from the original apk bundle.js.

You could try to set a breakpoint/monitor the traffic coming out of this and replicate that request in postman? https://github.com/li-dennis/chromeJoule/blob/master/src/authenticationService.ts#L34

Best, Dennis

li-dennis avatar Oct 31 '22 17:10 li-dennis

You probably want to take a look here for where the main logic is, I think? https://github.com/li-dennis/chromeJoule/blob/master/src/CirculatorManagerView.tsx#L24

li-dennis avatar Oct 31 '22 17:10 li-dennis

d try to set a breakpoint/monitor the traffic coming out of this and replicate that request in postman

Ohh.... I only have small skills to use the basics of PostMan... Breakpoints, cookies and traffic redirect are cool things you said :) You're very clever man :) I must to "learn" (recover my mind memory)) what your words mean, indeed... (confused)

Ideal plan is to install your compiled chromeJoule extension onto my Google Chrome Browser and repeat to login procedure :) But idk how to do it... I can't to find your extension at Chrome app store ( https://chrome.google.com/webstore/detail/chrome-joule/lifggfcoblmpbobfobpfhhjkiempjckn broken )

mediaexplorer74 avatar Oct 31 '22 17:10 mediaexplorer74

You probably want to take a look here for where the main logic is, I think? https://github.com/li-dennis/chromeJoule/blob/master/src/CirculatorManagerView.tsx#L24

Thank you very much. Very interesting part of code. At first step, I tried to understand the mechanism of API authorizing (something like a classic OAuth2)... And, for next steps, CirculatorManager's exploring/researching is needed too , IMHO.

Ohhh... I forgot to try VPN on/off experimentation.... Maybe, ChefSteps used geo-blocking targeted to my region (12 hours between us)). Anyway, thank you for your advice :) Have a nice time, Dennis

mediaexplorer74 avatar Oct 31 '22 17:10 mediaexplorer74