-
Notifications
You must be signed in to change notification settings - Fork 15
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
mqttdaemon mode #44
mqttdaemon mode #44
Conversation
…w commands from fhem forum
in your Readme it should be Other than that, it is working nicely for me. Even got it working inside a docker. Thanks for the work! |
Thank you, I corrected it, I'll push it when I find time to clean some other problems, like the EOL in hpsu_commands.json. Please consider contributing your Dockerfile and the doker run / docker-compose example, it'll be of great value. |
We have a working dockerfile. Please consider to submit a PR to https://github.com/pdcemulator/pyHPSU-docker |
Given pyHPSU uses install.sh to place only project's needed files in the user filesystem, would not be a good idea to include directly here the Dockerfiles? |
sure, still experimenting which base image to use for docker. also plan to create an add-on for homeassistant, that way it could be run, configured and re-started from the web interface directly (for people using home assistant of course) - that would be a separate repo. |
With latest command I reverted commands_hpsu.json EOL format to DOS, so it can be compared easily with the original one. Hope I'll be able to find some time to tidy up code, also. |
Why back to dos EOL? I moved all files to unix EOL si editing under unix
is easier without all the ^M at the end of the line.
Am 26.03.2021 um 19:23 schrieb segaura:
…
With latest command I reverted commands_hpsu.json EOL format to DOS,
so it can be compared easily with the original one.
Hope I'll be able to find some time to tidy up code, also.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2I5HGOTRAGQ5ZKPU42W23TFTGIZANCNFSM4YXW7SZQ>.
|
I made it to make the pool request auditable, viceversa the comparison against the same file in By the way, I am using Mqtt Daemon and Automatic Mode with MQTT Output as a systemd service since a month or so and it very stable, to my own surprise given I have not thought a lot of thread safeness when coding. |
I did a first cleanup in the code. It mainly rotates around cli argument parsing (complete refactoring) and config file parsing (minimum refactoring, so far). For argument parsing I moved to
This way -h/--help have argparse default behavious, showing an output like this
or this
to accomodate this "-h" behaviour I am proposing to move the old "-h" functionality to a new Other changes are:
And two additional that are "value type" related:
|
#39
closes #40
Hallo.
This pull request adds mqttdaemon mode.
It does this on top of previous proposed improvements, like the log revision.
I'm not particularly happy about three things that I hope can be improved by collaboration:
etc/pyHPSU/commands_hpsu.json
and the results it shows completely changed in comparisons ...maybe a clear DOS vs UNIX EOL strategy has to be adopted, e.g. every contributor using text=auto in .gitattributesPlease ask me anything if something is not clear in the code.