Commit Graph

7 Commits

Author SHA1 Message Date
雲華
3bf7744513 Clean up timer widget code and create state widgets more intelligently
This commit corresponds to the most recent update of warpy and removes the need
for state handlers in order to determine the string value of the open worlds
state. This also further abstracts the code for the asynchronous state_widget
function by taking the function and timer widget instead of specifying these
explicitly in code. This removes the need to have three near identical timer
state setting functions due to a small difference in function calls despite
ingesting the same target information, just with different strings and values.
2021-05-05 01:33:53 -04:00
雲華
f1d4fb2d1c Move window styling and timers to separate script files and/ or class
This commit aims to clean up the significant mess that was the timer code and amassing of functions.
In order to better clean up the main GUI code these functions have been moved to their own respective
script files. More specifically any future commits that contain window styling aspects will be added
to the styles.py script and any timer related code will be moved into timers.py. The timer code has
also been abstracted a little more, however, we are still restricted by the API, one solution would
be to modify warpy and better standardize the returns from the three open world json objects.
Currently there is explicit handler functions within the class that can set this information, however,
it may be more reasonable to return smarter json objects that have the current state attached.
2021-05-04 14:52:18 -04:00
雲華
45691dc8ad move warframe_api.py to warpy repo and fix API wrapper calls
This commit removes the API from this repository and to the warpy
repo. There are also a change to the warpy class call and import
as documented in the warpy repository.
2021-05-02 16:45:16 -04:00
雲華
0040b508f1 Break timer update function into three functions to reduce load
By breaking up the timers into their own functions they are now capable of
running more intelligently using the difference between the current time
and expiration time for API polling rates. Polling attempts are skewed by
two minutes to attempt to prevent negative timedeltas. These are handled
on the off chance they are negative but it would be best to avoid negative
timedeltas in general.

Additional changes include more documentation, todos, and the removal/
addition of debug text.
2021-05-02 02:41:43 -04:00
雲華
c3a5f10b82 Replace requests with aiohttp and make warpy asynchronous
This is a major change in how this overlay will be defined as it will now be asynchronous. After doing
a bit of research this is likely to be the best option since there will be various functions polling
the API for information. If one requests takes to long the GUI will get hung up, this resolves that
issue.

Note: This is a first dive into asynchronous so future commits may aim to resolve sloppy asynchronous
implementations.
2021-05-02 00:37:33 -04:00
雲華
5a92803bbe Create README.md 2021-05-01 22:29:26 +00:00
雲華
04b4b96cae Initial commit
The following components and features have been implemented per this initial commit:
- Python library wrapping warframestat.us API endpoint w/ decorated functions
- Full transparency for overlay window (click through and alpha)
- Added status for open worlds
- Added support for variable window sizes (does not resize automatically)
2021-05-01 18:28:02 -04:00