Commit Graph

92 Commits

Author SHA1 Message Date
Miklos Bagi
e0bf33036a Add install details for MacOS, and requests into requirements 2023-06-11 19:30:24 +02:00
Thijs
81c0a55ba5 Add client.loop_forever() for auto-reconnect
Even though hc2mqtt was running, and showed active log lines, I stopped receiving the messages sometimes in the MQTT server and subscribed processes.
Adding client.loop_forever() will auto-reconnect to the mqtt server in case of network loss / hickups. Seems to help for my setup.
Docs: https://pypi.org/project/paho-mqtt/#network-loop
2023-04-01 12:28:47 +02:00
Trammell Hudson
88b47e98e3 Merge pull request #15 from jawsper/hc2mqtt-with-click
Use click to parse CLI args in hc2mqtt
2023-03-17 14:03:41 +01:00
Trammell Hudson
91beb5fe21 Merge pull request #16 from osresearch/singlekey
hc-login: hacks to work with the new singlekey login system
2023-03-17 14:00:16 +01:00
Trammell Hudson
de3d965897 hc-login: hacks to work with the new singlekey login system 2023-03-12 21:27:13 +01:00
Jasper Seidel
8ab7997519 feat: refactor hc2mqtt to take config as cli args, add click to requirements 2022-10-07 16:59:41 +02:00
Trammell Hudson
a574219945 hc-login: add redirect_target field, fixes #8 2022-03-07 18:12:46 +01:00
Trammell Hudson
ed69498fd0 README: coffee state info, another image 2022-02-21 23:59:59 +01:00
Trammell Hudson
e19cbf3f03 README: reworked to talk more about the tools 2022-02-21 23:42:28 +01:00
Trammell Hudson
172c8a22b3 README: hc-login works! 2022-02-19 19:07:08 +01:00
Trammell Hudson
a324966534 removed xml files that are now downloaded during login 2022-02-19 19:01:40 +01:00
Trammell Hudson
b852cfd2b8 hc-login and hc2mqtt work together to allow device monitoring 2022-02-19 19:00:29 +01:00
Trammell Hudson
8f80f43f05 hc-login: works and fetches device descriptions! 2022-02-19 18:41:00 +01:00
Trammell Hudson
224d6c0506 hc-login: produces a bearer token given a valid username and password! 2022-02-12 20:33:49 +01:00
Trammell Hudson
4d5b406b62 hc-login: fill in the login page to get the bearer token 2022-02-07 21:33:05 +01:00
Trammell Hudson
1ed68f4d1a hc2mqtt: format remaining time, print a publish message 2022-02-06 15:21:01 +01:00
Trammell Hudson
5a59422e6a HCDevice: return values even if no machine is available 2022-02-06 15:20:28 +01:00
Trammell Hudson
87914adffa hc2mqtt: create a thread per device 2022-02-06 14:27:56 +01:00
Trammell Hudson
c6407d2a28 hc2mqtt: connect the programs to the mqtt server 2022-02-06 14:24:15 +01:00
Trammell Hudson
814dc5cd03 HCDevice: send authentication nonce, ignore results 2022-02-06 13:22:36 +01:00
Trammell Hudson
e19f31290d HCSocket: do not connect automatically 2022-02-06 13:22:10 +01:00
Trammell Hudson
91e3348b13 HCDevice: return a parsed list of values 2022-02-06 10:54:50 +01:00
Trammell Hudson
95a5ac00f5 hcpxml2json: collapse all uid into one feature list 2022-02-06 10:54:24 +01:00
Trammell Hudson
36b4c8bbd0 HCDevice: last chance look at the feature map 2022-02-06 10:23:40 +01:00
Trammell Hudson
2578e16ac4 hcpxml2json: include the feature map just in case something is not referenced 2022-02-06 10:23:25 +01:00
Trammell Hudson
1806055016 HCDevice: move device handling code into separate class 2022-02-05 21:32:04 +01:00
Trammell Hudson
c2f413153e HCSocket: remove extra prints 2022-02-05 21:31:50 +01:00
Trammell Hudson
33fb8cfd77 ignore stuff 2022-02-05 21:31:16 +01:00
Trammell Hudson
579c16b536 pretty print XML, name for the device type 2022-02-05 21:30:33 +01:00
Trammell Hudson
84592e0c99 split hcpy into HCSocket and restore HTTPS PSK support as well 2022-02-05 14:31:16 +01:00
Trammell Hudson
7e3bd97853 python3 modules to be installed with pip3 install -r requirements.txt 2022-02-05 13:48:55 +01:00
Trammell Hudson
8af4750439 more docs on http interface 2022-02-03 19:30:42 +01:00
Trammell Hudson
986a200717 hcpy: works with http sockets and HC encryption (probably broke the https version) 2022-02-03 19:22:55 +01:00
Trammell Hudson
8a2bbe5a83 readme: alternate way to get the psk 2022-02-01 23:37:55 +01:00
Trammell Hudson
b9270a721a try to use json file to parse messages 2022-01-31 10:42:24 +01:00
Trammell Hudson
e53cdcc072 convert hcp xml into json for easier processing 2022-01-31 10:23:51 +01:00
Trammell Hudson
f5ac01bc3c timestamp in and out messages 2022-01-30 22:51:28 +01:00
Trammell Hudson
6d090f2bbc readme: xml and feature id maps 2022-01-30 22:10:10 +01:00
Trammell Hudson
c86e6472c1 import of xml files retrieved from devices 2022-01-30 21:34:54 +01:00
Trammell Hudson
71cde3de4d readme: better details on psk 2022-01-30 20:25:10 +01:00
Trammell Hudson
60307a5b1f images and rooting 2022-01-30 19:08:08 +01:00
Trammell Hudson
afe099672c initial version of a very hacky websocket tool 2022-01-30 19:01:31 +01:00