yuri-sevatz / harmony Goto Github PK
View Code? Open in Web Editor NEWFork of HarmonyHubControl, renamed "harmonyctl" -- trying to standardize this for more stable linux adoption!
Fork of HarmonyHubControl, renamed "harmonyctl" -- trying to standardize this for more stable linux adoption!
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.