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

Improved get functions for easier access to fhem data #10

Merged
merged 16 commits into from
Dec 3, 2018

Conversation

Andre0512
Copy link
Contributor

I integrated filter from fhem's devspec and give the probalby most used filters as parameters .
Also added functions to return only states or special readings/attributes/internals.

@domschl
Copy link
Owner

domschl commented Nov 30, 2018

Tx @Andre0512 , this looks like a good improvement. I will look over this during this weekend.

@Andre0512
Copy link
Contributor Author

Well, I reworked the code again and went one step further and replaced all get functions with my filter functions. Take a look at this and let me know if you think of a better naming for the functions or you want to do it with a different concept. Theoretically, a single get-function could be done and pass everything as a parameter or it could be even more differentiated into individual functions.

I also implemented a conversion to float, int, and datetime. I could not find an existing function for it and I think my solution is not the best performer, but for that purpose it should be enough, I hope.

That would have to be it then for my purpose at the moment.

@Andre0512
Copy link
Contributor Author

Tomorrow or Sunday I will ensure the compatibility with python2 and I will improve my documentation.

@domschl
Copy link
Owner

domschl commented Dec 1, 2018

This look like a nice extension. Ok, let me know when you're done with the changes.

We would need:

  • Tested Python 2 support,
  • API doc should be complete,
  • and make sure that the old 'deprecated' API-calls still work, so people are not forced to change their code.

and it would be nice, if README.md also contains some updates for the new api.

I would then review and test your changes, and prepare a new version for PyPi and regenerate the documentation from source.

@Andre0512
Copy link
Contributor Author

Okay, I'm working on it.
Documentation for protected and deprecated functions is not needed, right?

@Andre0512
Copy link
Contributor Author

Done. You can start reviewing. 🙂

@domschl domschl changed the base branch from master to getfilter December 3, 2018 09:23
@domschl domschl changed the title Improved get funcitons for easier access to fhem data Improved get functions for easier access to fhem data Dec 3, 2018
@domschl domschl merged commit ed8440b into domschl:getfilter Dec 3, 2018
@Andre0512
Copy link
Contributor Author

Hello, did you manage to have a look on it? Was everything fine?
When do you plan to release a new version?

@domschl
Copy link
Owner

domschl commented Dec 16, 2018

I am on it. Besides cosmetics, so far I have made one change to your parameter names, all nsomething parameters changed to not_something parameters for clarity.
I will still need some days for a few other open issues and testing. It all looks nice!

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

Successfully merging this pull request may close these issues.

None yet

2 participants