Giter Club home page Giter Club logo

harmony's People

Contributors

yuri-sevatz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

webxl pcfe

harmony's Issues

Fails to Compile on GCC6

When trying to compile with GCC 6.1.0 on Gentoo, I run into the following error:

Scanning dependencies of target harmony
[ 20%] Building CXX object libharmony/CMakeFiles/harmony.dir/csocket.cpp.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/bits/basic_string.h:5402:0,
from /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/string:52,
from /home/neandrad/harmony/libharmony/csocket.hpp:15,
from /home/neandrad/harmony/libharmony/csocket.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/ext/string_conversions.h: In function ‘_Ret __gnu_cxx::__stoa(_TRet ()(const _CharT, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...)’:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/ext/string_conversions.h:72:25: error: ‘ERANGE’ was not declared in this scope
else if (errno == ERANGE
^~~~~~
make[2]: *** [libharmony/CMakeFiles/harmony.dir/build.make:63: libharmony/CMakeFiles/harmony.dir/csocket.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: libharmony/CMakeFiles/harmony.dir/all] Error 2

Not a major issue as compiling works fine with GCC 5.4.0, but just wanted to raise awareness in case you're interested in updating the code.

Unable to get Login Auth Token on Harmony Elite Hub

I'm not sure if this issue is due to me using a Harmony Elite Hub or updates to the backend web service, but I'm unable to get an auth token.

I see the following error:
harmonyctl <my_username> <my_passwd> list_commands
LOGITECH WEB SERVICE LOGIN : FAILURE
ERROR : harmonyWebServiceLogin : Logitech web service response does not contain a login authorization token

I get a similar issue on the old pyharmony as well. Running debug there I see:

PYTHONPATH="." python2 harmony --loglevel DEBUG --email <my_email> --password <my_passewd> --harmony_ip <my_hub_IP> show_config
DEBUG requests.packages.urllib3.connectionpool Starting new HTTPS connection (1): svcs.myharmony.com
DEBUG requests.packages.urllib3.connectionpool https://svcs.myharmony.com:443 "POST /CompositeSecurityServices/Security.svc/json/GetUserAuthToken HTTP/1.1" 200 31
ERROR harmony.auth Malformed JSON (GetUserAuthTokenResult): {u'GetUserAuthTokenResult': None}
Could not get token from Logitech server.

I haven't tried hooking up Wireshark yet to see how the POST compares to what my phone/remote are doing. Will try that soon, but any suggestions would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.