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

Make the lib home manager compatible #1

Open
ronny332 opened this issue Jul 11, 2014 · 3 comments
Open

Make the lib home manager compatible #1

ronny332 opened this issue Jul 11, 2014 · 3 comments

Comments

@ronny332
Copy link

Hi, nice piece of software, thank you very much for sharing it with us ;-).

One small extension could be very helpful:

// Hack to check for login.  Should forward to dashboard.
if(httpResponse.headers.location && httpResponse.headers.location=='/FixedPages/Dashboard.aspx') {

Making "Dashboard.aspx" dynamic as variable, the usage of the homemanager product is possible.
In my case I've changed "Dashboard.aspx" to "HoManLive.aspx" and it runs out of the box.

ronny

@ronny332
Copy link
Author

ok, small extension:

var CURRENT_PRODUCTION_URL = '/Dashboard?_=1';

has to be changed to

var CURRENT_PRODUCTION_URL = '/homemanager?_=1';

For sure the webbox product uses again a different path syntax. May be it would be the best to create a few properties which are handled by a setted option value to handle the different types of avaialble products.

I'm currently modifying the library to reuse the login session. In my eyes it does not make sense to login in again and again for a short delayed request (I'm planning to grab the current status every 30s).

@mkorthuis
Copy link
Owner

Happy to share such horrible and hacky code :).

Thank you for sharing! I will pull your changes in.

Since this library is part of a pet project for me to automate my own home. I don't have a lot of time to spend on it and any updates are always appreciated and welcomed :).

@ronny332
Copy link
Author

hi,
time is an issue for most for of us, for me too ;-). I've forked your library and did some "cleaner" modifications to the code at here. The documentation is of cause missing, but the usage is very easy and the modified library works at my rasberry pi since about a day without issues.

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