This commit is contained in:
Torsten 2024-01-18 12:40:10 +01:00
parent d056ecfbea
commit c33ad9eaf7
9 changed files with 89 additions and 36 deletions

View file

@ -73,7 +73,7 @@
"library2": { "library2": {
"type": "excalidrawlib", "type": "excalidrawlib",
"version": 2, "version": 2,
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.0.13", "source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.0.17",
"libraryItems": [] "libraryItems": []
}, },
"imageElementNotice": true, "imageElementNotice": true,
@ -85,7 +85,7 @@
"mdCSS": "", "mdCSS": "",
"scriptEngineSettings": {}, "scriptEngineSettings": {},
"defaultTrayMode": true, "defaultTrayMode": true,
"previousRelease": "2.0.13", "previousRelease": "2.0.17",
"showReleaseNotes": true, "showReleaseNotes": true,
"showNewVersionNotification": true, "showNewVersionNotification": true,
"latexBoilerplate": "\\color{blue}", "latexBoilerplate": "\\color{blue}",

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
{ {
"id": "obsidian-excalidraw-plugin", "id": "obsidian-excalidraw-plugin",
"name": "Excalidraw", "name": "Excalidraw",
"version": "2.0.13", "version": "2.0.17",
"minAppVersion": "1.1.6", "minAppVersion": "1.1.6",
"description": "An Obsidian plugin to edit and view Excalidraw drawings", "description": "An Obsidian plugin to edit and view Excalidraw drawings",
"author": "Zsolt Viczian", "author": "Zsolt Viczian",

File diff suppressed because one or more lines are too long

View file

@ -13,7 +13,7 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md", "file": "AWA/Godot/Godot World Environment Node (2D).md",
"mode": "source", "mode": "source",
"source": false "source": false
} }
@ -85,11 +85,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/Godot/Godot World Environment Node (2D).md",
"file": "AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md",
=======
"file": "AWA/01_AWS Access/Setup role for lambda function.md",
>>>>>>> 9db0a51 (...)
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -106,11 +102,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/Godot/Godot World Environment Node (2D).md",
"file": "AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md",
=======
"file": "AWA/01_AWS Access/Setup role for lambda function.md",
>>>>>>> 9db0a51 (...)
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@ -133,11 +125,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/Godot/Godot World Environment Node (2D).md"
"file": "AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md"
=======
"file": "AWA/01_AWS Access/Setup role for lambda function.md"
>>>>>>> 9db0a51 (...)
} }
} }
} }
@ -159,13 +147,17 @@
"obsidian-excalidraw-plugin:Create new drawing": false "obsidian-excalidraw-plugin:Create new drawing": false
} }
}, },
"active": "1fc1ac9fc01290be", "active": "0fa2ff500a2e0a35",
"lastOpenFiles": [ "lastOpenFiles": [
"AWA/Godot/Advanced Getters and Setters, useage of @tool.md",
"AWA/Godot/Godot World Environment Node (2D).md",
"TestFolder/Drawing 2023-08-01 15.05.05.excalidraw.md",
"AWA/Godot",
"TestFolder/Drawing 2023-08-01 15.08.23.excalidraw.md",
"AWA/zz_useful_Youtube_tutorials.md", "AWA/zz_useful_Youtube_tutorials.md",
<<<<<<< HEAD "AWA/01_AWS Access/AWS Server Setup + Access.md",
======= "AWA/01_AWS Access/Lambda functions.md",
"AWA/01_AWS Access/Setup role for lambda function.md", "AWA/01_AWS Access/Setup role for lambda function.md",
>>>>>>> 9db0a51 (...)
"AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md", "AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md",
"AWA/Blender/AutoRigPro/02 Transfer animations.md", "AWA/Blender/AutoRigPro/02 Transfer animations.md",
"AWA/Blender/_Workbench", "AWA/Blender/_Workbench",
@ -182,7 +174,6 @@
"AWA/Blender/Extend current selection.md", "AWA/Blender/Extend current selection.md",
"AWA/Blender/Dissolve Edges.md", "AWA/Blender/Dissolve Edges.md",
"AWA/Blender/Move Selection to new Collection.md", "AWA/Blender/Move Selection to new Collection.md",
"AWA/01_AWS Access/AWS Server Setup + Access.md",
"AWA/01_AWS Access", "AWA/01_AWS Access",
"Setup", "Setup",
"AWA/00_Concepts/AWA Tools.md", "AWA/00_Concepts/AWA Tools.md",
@ -194,13 +185,7 @@
"WebDev/Verleih/TomTom/Docs/TomTom Login.md", "WebDev/Verleih/TomTom/Docs/TomTom Login.md",
"AWA/Blender", "AWA/Blender",
"WebDev/Verleih/TomTom/Testkarte anzeigen.md", "WebDev/Verleih/TomTom/Testkarte anzeigen.md",
"WebDev/Verleih/TomTom/Docs",
"WebDev/Verleih/TomTom/Location.md", "WebDev/Verleih/TomTom/Location.md",
"TestFolder/My first test note.md",
"TestFolder/Drawing 2023-08-01 15.05.05.excalidraw.md",
"```dataview.md",
"TestFolder/Drawing 2023-08-01 15.08.23.excalidraw.md",
"TestFolder/Note 2a.md",
"Untitled.canvas" "Untitled.canvas"
] ]
} }

View file

@ -28,4 +28,24 @@ wget https://www.zauberturm.de/downloads/
sudo chown -R awa-admin:awa-admin /opt/awa sudo chown -R awa-admin:awa-admin /opt/awa
sudo yum install p7zip sudo yum install p7zip
```
GetAwaServerIp
```
GET https://7l7x7zpr7ybfjrugwg5hybrd7i0ptqmc.lambda-url.eu-central-1.on.aws/
```
GetAwaUptime
```
GET https://5f7rkcljorwmzo4mnsjpl5bdde0frkcb.lambda-url.eu-central-1.on.aws/
```
StartAwaServer
```
GET https://xqip7wowsd6shind4q3t6hqafa0axudp.lambda-url.eu-central-1.on.aws/
```
StopAWAServer
```
GET https://5ps72qu3uclwnawce5cziv7a6a0niulv.lambda-url.eu-central-1.on.aws/
``` ```

View file

@ -0,0 +1,43 @@
import boto3
import time
import datetime
#ec2 = boto3.resource('ec2')
ec2 = boto3.client('ec2')
awa_server_instance_id = "i-0de7cce6fcdf8c0e6"
def lambda_handler(event, context):
#return "1.2.3.4"
#filters = [
# {
# 'Name': 'instance-state-name',
# 'Values': ['running']
# }
#]
#
#instances = ec2.instances.filter(Filters=filters)
#
#for instance in instances:
# print(instance)
response = ec2.describe_instances()
for reservation in response['Reservations']:
for instance in reservation['Instances']:
instance_id = instance.get('InstanceId', 'NONE')
ip = instance.get('PublicIpAddress', '127.0.0.1')
if instance_id == awa_server_instance_id:
#return {
# 'statusCode': 200,
# 'ip': ip
#}
return ip
#return {
# 'statusCode': 200,
# 'ip': "127.0.0.1"
#}
return "127.0.0.1"

View file

@ -0,0 +1 @@
https://youtu.be/PDISK_JPPQE?si=3bIk5oyDBX9YDw6q

View file

@ -0,0 +1 @@
https://youtu.be/R4xN4DTNDU4?si=EzYM1MMawKnQVq6B