diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-03 19:23:08 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-03 19:23:08 +0700 |
| commit | 31172f0dab003b20dda63c6ec32d6465be093d21 (patch) | |
| tree | 11ab7bf55ccabd20d2204d82d9e7bd74e34ea077 | |
| parent | 12b820d7f8e782d498e501e463c4ed3c82849be2 (diff) | |
endless errors
| -rw-r--r-- | backend/notif_test.py | 2 | ||||
| -rw-r--r-- | frontend/status.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/notif_test.py b/backend/notif_test.py index e0d82c0..cf5391f 100644 --- a/backend/notif_test.py +++ b/backend/notif_test.py @@ -17,5 +17,5 @@ api_instance = default_api.DefaultApi(api_client) ONESIGNAL_APP_ID = "83901cc7-d964-475a-90ec-9f854df4ba52" # yes that's my subscription id. probably outdated by now -notification = Notification(app_id=ONESIGNAL_APP_ID, include_subscription_ids=['86f24e73-8887-4e29-b607-31e1a8f25b93', '6a2b4b58-a1d2-403b-afa0-b4a987ca6139'], contents={'en': 'hello world'}, headings={'en': 'Laundry Finished!'}, priority=10) +notification = Notification(app_id=ONESIGNAL_APP_ID, include_subscription_ids=['86f24e73-8887-4e29-b607-31e1a8f25b93'], contents={'en': 'hello world'}, headings={'en': 'Laundry Finished!'}, priority=10) print(api_instance.create_notification(notification)) diff --git a/frontend/status.js b/frontend/status.js index b822e58..446c655 100644 --- a/frontend/status.js +++ b/frontend/status.js @@ -3,5 +3,6 @@ startUpdateMachines(); (async () => { const urlParams = new URLSearchParams(window.location.search); const blk = await information(urlParams.get("machine"))["block"]; + console.log("blk", blk); document.getElementById("status-title").innerHTML = `Machine Status for H${blk ? blk : '?'}` })(); |
