mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-11-29 13:14:12 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0772eb3c39 | |||
| 5d9264494a | |||
| a59672bffc | |||
| 8b315c34b4 |
@@ -52,3 +52,4 @@ You can use the example [docker-compose.yml](docker-compose.yml) file and just r
|
||||
## 📝 Other infos
|
||||
|
||||
* The django container needs to run in host network mode to send the wakeonlan command on your local network. Therefore all other containers also need to run in host network mode. I don't like it but there is no way around.
|
||||
* Firefox 92 and below: The datetime picker for wake events will be available with version 93 and above. [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#browser_compatibility)
|
||||
|
||||
@@ -142,4 +142,4 @@ STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
|
||||
VERSION = "v1.0.0"
|
||||
VERSION = "v1.0.1"
|
||||
+1
-1
@@ -10,7 +10,7 @@ if [ -n "$DJANGO_SUPERUSER_USER" ] && [ -n "$DJANGO_SUPERUSER_PASSWORD" ]; then
|
||||
fi
|
||||
|
||||
# set visitors to 0
|
||||
python -u manage.py shell -c "from wol.models import Websocket; [i.delete() for i in Websocket.objects.all()]; Websocket.objects.create(visitors=0)"
|
||||
python -u manage.py shell -c "from wol.models import Websocket; [i.delete() for i in Websocket.objects.all()]; Websocket.objects.create(visitors=0)"
|
||||
|
||||
# set notifications
|
||||
if [ -n "$ENABLE_NOTIFICATIONS" ]; then
|
||||
|
||||
@@ -295,7 +295,7 @@ socket.onmessage = function (event) {
|
||||
|
||||
// set wake by client
|
||||
if ("wake" in message) {
|
||||
document.getElementById(message.wake.id + "-btn-wake").classList.add("is-loading");
|
||||
document.querySelector(`[id="btn-wake"][data-id="${message.wake.id}"]`).classList.add("is-loading");
|
||||
if (enableNotifications) {
|
||||
notif.show("Wake started", message.wake.name + " has been started.", "is-info", 5000);
|
||||
}
|
||||
@@ -303,7 +303,7 @@ socket.onmessage = function (event) {
|
||||
|
||||
// set wake by schedule
|
||||
if ("wake_schedule" in message) {
|
||||
document.getElementById(message.wake_schedule.id + "-btn-wake").classList.add("is-loading");
|
||||
document.querySelector(`[id="btn-wake"][data-id="${message.wake_schedule.id}"]`).classList.add("is-loading");
|
||||
document.getElementById(message.wake_schedule.id + "-schedule-notice").innerHTML = "";
|
||||
if (enableNotifications) {
|
||||
notif.show("Scheduled wake started", message.wake_schedule.name + " has been started.", "is-info", 5000);
|
||||
|
||||
Reference in New Issue
Block a user