Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Make refresh period configurable #11

Closed
trekkir opened this issue Jun 23, 2021 · 5 comments
Closed

Make refresh period configurable #11

trekkir opened this issue Jun 23, 2021 · 5 comments
Labels
question Further information is requested

Comments

@trekkir
Copy link

trekkir commented Jun 23, 2021

Hi @Xenomes,
First of all, thank you for your work!
I do have a request; Currently, the refresh period is set to 10 seconds. Is it possible to make it configurable on the Hardware settings page?

I can't seem to find the exact configuration in the python file to modify it myself (basic programming knowledge on my side must be the problem here), so if my request isn't something you want to implement, could you point me in the right direction where I can change that 10 seconds myself?

@Xenomes
Copy link
Owner

Xenomes commented Jun 25, 2021

Hi Trekkir,
What is the reason you want a refresh period? If you want to change it I think the wait on line 210 is the best to start.

@Xenomes Xenomes added the question Further information is requested label Jun 25, 2021
@trekkir
Copy link
Author

trekkir commented Jun 25, 2021 via email

@Xenomes
Copy link
Owner

Xenomes commented Jun 25, 2021

Ok, I understand your problem. The 10 seconds I the shortest time I could get to pull data from the API of Tuya there is not a lot of time to win there.

@trekkir
Copy link
Author

trekkir commented Jun 25, 2021 via email

@Xenomes
Copy link
Owner

Xenomes commented Jun 26, 2021

Nope. Maybe you can use a IFTTT or DZGA

@Xenomes Xenomes closed this as completed Jul 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants