lucasheld
7771d51f12
Merge branch 'master' into bugfix/memory-leak
2023-05-01 20:26:49 +02:00
lucasheld
45f6765f0f
update examples and adjust types
2023-05-01 20:04:01 +02:00
lucasheld
1f8b531342
remove todos
2023-05-01 19:16:17 +02:00
Vinalti
19bd8aecfa
Clean up code and implement best practices ( #27 )
...
* clean up code and implement best practices:
- `type(a) == list` replace with `isinstance(a, list)`
- `adict['key']` replaced with `adict.get('key')`
- annotation `-> list` replace by more accurate `-> list[dict]`
* improve compatibility with previous python versions with Typing
* little fix
2023-05-01 18:57:55 +02:00
lucasheld
e42f6461c0
feat: implement context manager for UptimeKumaApi class
2023-05-01 18:41:45 +02:00
lucasheld
391e5a3077
feat: add param wait_events
2023-04-30 16:48:36 +02:00
Vinalti
341d320549
Add ssl_verify param
2023-04-28 00:07:01 +02:00
Lucas Held
bdd441dd84
Merge pull request #22 from lucasheld/feature/custom-headers
...
Feature: Implement custom SocketIO Headers
2023-04-07 21:08:13 +02:00
lucasheld
d7f033030e
feat: add support for uptime kuma 1.21.2
2023-04-07 21:03:36 +02:00
lucasheld
be537a14d2
fix: do not wait for events that have already arrived
2023-04-07 20:07:52 +02:00
lucasheld
857ad9e082
fix: int to bool conversion
2023-04-06 18:03:06 +02:00
lucasheld
e1fd3b7f03
feat: implement custom socketio headers
2023-03-30 12:19:31 +02:00
lucasheld
128b2b5372
fix: memory leak in event data
...
BREAKING CHANGE: changed return values of get_heartbeats, get_important_heartbeats, avg_ping, uptime, get_heartbeat, cert_info
2023-03-25 19:55:40 +01:00
lucasheld
50b8a5ac70
fix: dictionary changed size during iteration during deepcopy
2023-03-25 19:26:53 +01:00
lucasheld
42c040f451
feat: add support for uptime kuma 1.21.0
2023-03-20 15:14:39 +01:00
lucasheld
14e9f47406
feat: add support for uptime kuma 1.20.0
2023-02-13 22:51:21 +01:00
lucasheld
3e56459fb2
feat: add support for uptime kuma 1.19.5
2023-01-17 21:01:55 +01:00
lucasheld
c1d941a200
docs: complete values for uptime kuma 1.19.2
2022-12-30 21:37:13 +01:00
lucasheld
4538901cea
docs: fix list type hints
2022-12-29 01:17:48 +01:00
lucasheld
9e3cbe7d59
docs: replace list[dict] with list type hint and add missing type hints
2022-12-29 01:09:44 +01:00
lucasheld
d01ff6d80e
feat: add support for uptime kuma 1.19.2
2022-12-29 00:22:53 +01:00
lucasheld
1e4be04ad7
fix: skip condition check for None values
2022-12-29 00:17:57 +01:00
lucasheld
e0c4207984
feat: add parameter wait_timeout
to adjust connection timeout
2022-12-23 14:07:46 +01:00
lucasheld
d68168b769
docs: add return types and exceptions
2022-12-17 15:31:47 +01:00
lucasheld
748d2b191a
docs: write param and type in the same line and add optional to type
2022-12-17 15:31:36 +01:00
lucasheld
ce5ba2d943
docs: add docstrings and sphinx, readthedocs configuration
2022-12-16 21:43:01 +01:00
lucasheld
dac368e2a5
fix: add type to notification provider options
2022-11-05 18:48:31 +01:00
lucasheld
52d33d8751
fix: remove required notification provider args check
2022-10-07 14:32:52 +02:00
lucasheld
06fa29cd41
fix: update event list data after changes
2022-10-04 18:38:17 +02:00
lucasheld
661c06b15f
feat: support autoLogin for enabled disableAuth
...
Call the login method without parameters to log in when disableAuth is enabled.
2022-09-23 18:24:00 +02:00
lucasheld
ebadfb73e6
fix: set_settings password is only required if disableAuth is enabled
2022-09-23 17:19:00 +02:00
lucasheld
0821f38faa
fix: increase event wait time
...
the statusPageList event is slow
2022-09-18 22:31:38 +02:00
lucasheld
54d221cdfe
fix: convert monitor notificationIDList only once
2022-09-18 14:49:10 +02:00
lucasheld
928462c6b2
test: create objects with all available arguments
2022-09-17 12:24:08 +02:00
lucasheld
de38586bf5
fix: remove tags
from monitor input
...
add_monitor_tag must be used instead
2022-09-17 12:19:36 +02:00
lucasheld
314f07c93d
fix: convert monitor notificationIDList return value
...
https://github.com/lucasheld/ansible-uptime-kuma/issues/3
2022-09-12 22:45:43 +02:00
lucasheld
12cd8067e4
fix: generate pushToken on push monitor save
...
https://github.com/lucasheld/ansible-uptime-kuma/issues/5
2022-09-12 20:48:36 +02:00
lucasheld
a7f571f508
add support for uptime kuma 1.18.0
2022-09-07 13:03:13 +02:00
lucasheld
45b8b88166
convert monitor data on edit
...
closes #3
2022-09-06 13:41:51 +02:00
lucasheld
b2bacc9f8b
rename 2FA token
2022-08-26 17:02:55 +02:00
lucasheld
c6b3d59221
fix monitors in status pages
2022-08-26 14:04:43 +02:00
lucasheld
804bd85909
reset uptime kuma config after each test
2022-08-26 14:01:29 +02:00
lucasheld
8f108a700b
add event enum
2022-08-05 15:52:19 +02:00
lucasheld
ed4a6130fe
do not wait for events that are not sent
2022-08-05 15:48:02 +02:00
lucasheld
01664f5fbc
add more tests
2022-08-05 14:35:17 +02:00
lucasheld
512057ab61
implement 2FA login
2022-08-05 14:33:28 +02:00
lucasheld
8d2c0ec4f7
remove converter
2022-08-03 11:56:02 +02:00
lucasheld
a1a483efce
add tests
2022-08-02 23:47:56 +02:00
lucasheld
b92263dd47
improve notification type conversion
2022-08-02 21:32:28 +02:00
lucasheld
d29d908b61
support for python 3.6
2022-08-02 11:58:49 +02:00