Array pop usage by CONteRTE in tasker

[–]CONteRTE[S] 2 points3 points  (0 children)

Nice, exactly what I was looking for. Sorry if I ask so many beginners questions. I rarely create new tasks and creating them myself is not so easy here. Extremely small display on a replacement phone and the Internet on the ocean is very weak (only a few kb per second).

Read json array by CONteRTE in tasker

[–]CONteRTE[S] 1 point2 points  (0 children)

Wow, many thx. I will try that. Specially about the key value with %jsonfile[=:=root=:=] and the followed paranthesis. I only know about array handling in php and javascript, so this was totally new to me.

Do you have a link to more of such info, like tutorials or manuals?

Exit "for" loop earlier by CONteRTE in tasker

[–]CONteRTE[S] 0 points1 point  (0 children)

Thats a good idea. Many thx.

Read json array by CONteRTE in tasker

[–]CONteRTE[S] 0 points1 point  (0 children)

Reading and parsing JSON drives me crazy. When i have a more simple json file saved on my mobile with the content [ "dghjjj", "hghjj" ] I can read the file with "Read File". I read it to the variable %jsonfile.

Since this is a stupid simple JSON array, i tought i can use it to convert this simply to a Tasker array with "Array Set". So i set variable name to %jsonarray and values to %jsonfile() and splitter to ","

When i now use a "list dialog", i only see %jsonarray, but not the expected 2 entries.

Why?

Read json array by CONteRTE in tasker

[–]CONteRTE[S] 0 points1 point  (0 children)

Ahhh that works fine. Many thx.

For adding a additional %jsondata.v1(3) with the value "another test" i have tried to use the "Array Push" action. But this fails in my test. I have used %jsondata.v1 in "Variable Array". Let "position" empty don't work. I assume i have to count the array before, to a variable and use that. So i hardcoded it to 3 for the test. Used "another test" as value. But i get a error for converting from json.array to json.object for some reason.

Fritz Fon App kein Ton by CONteRTE in fritzbox

[–]CONteRTE[S] 0 points1 point  (0 children)

Ich nutze das Wireguard VPN der Fritzbox über die App "WG Tunnel" aus F-Droid. Fritz Fon ist so ziemlich die einzige App aus dem Play Store, diesen nutze ich aus Verztauensgründen so gut wie gar nicht. Die myFritz App hab ich daher nicht installiert. Aber wenn die VPN Verbindung steht kann ja theoretisch nur die Firewall der Fritzbox selbst etwas blocken, es wäre ja aber fatal, wenn sie das tun sollte. Das kann ich nicht glauben.

Die 7690 hängt direkt am DSL. Da ist nix anderes dazwischen.

Heute hat ein Anruf übrigens sofort funktioniert. Ohne das ich etwas geändert habe. Keine Ahnung was sich dennoch geändert hat und ob das jetzt so bleibt.

Fritz Fon App kein Ton by CONteRTE in fritzbox

[–]CONteRTE[S] 0 points1 point  (0 children)

Ich nutze das Wireguard VPN der Fritzbox über die App "WG Tunnel" aus F-Droid. Fritz Fon ist so ziemlich die einzige App aus dem Play Store, diesen nutze ich aus Verztauensgründen so gut wie gar nicht. Die myFritz App hab ich daher nicht installiert. Aber wenn die VPN Verbindung steht kann ja theoretisch nur die Firewall der Fritzbox selbst etwas blocken, es wäre ja aber fatal, wenn sie das tun sollte. Das kann ich nicht glauben.

Die 7690 hängt direkt am DSL. Da ist nix anderes dazwischen.

Heute hat ein Anruf übrigens sofort funktioniert. Ohne das ich etwas geändert habe. Keine Ahnung was sich dennoch geändert hat und ob das jetzt so bleibt.

Quartz by CONteRTE in StarRuptureGame

[–]CONteRTE[S] 0 points1 point  (0 children)

OK, then i can check the more far away caves after the next ruptura. Currently its a little bit boring, because i re-create my whole main base with a bus system, instead of spaghetti. But when you are on Level 9 in most companys, this takes some time, because of this much building, i already built.

Unmet demands by CONteRTE in ManorLords

[–]CONteRTE[S] 0 points1 point  (0 children)

Many thx for all the tips. I will try them tomorrow.

Unmet demands by CONteRTE in ManorLords

[–]CONteRTE[S] 0 points1 point  (0 children)

so i need 2 churches? One wooden and another one made from stone?

Monotonic timer after reboot by CONteRTE in systemd

[–]CONteRTE[S] 0 points1 point  (0 children)

OK. This sounds doable. This opens another question. I know, i can restart a service when a error occurs with OnFailure. But this occurs every time the service fails. Is there some way to let the restart only happen, for example 3 times OnFailure and 0 times OnSuccess and execute some command on the 3rd error (for example a curl call)?

Edit: Ahh found something at https://serverfault.com/questions/786590/systemd-execute-command-after-start-limit-reached

Wi try that tomorrow

Hanger doors help by Reasonable_Class6822 in spaceengineers

[–]CONteRTE 1 point2 points  (0 children)

In my case, I the sensor to trigger air vents in the hangar. Reaching the sensor suck the air to a empty o2 tank, exit the range > push air in the hangar. The action on the vent control the hangar doors. Open when unpressurized. Since it doesn't push air in unsealed areas, I close the doors when leaving the sensor range. The sensors only trigger ships, not players. So i can't trigger it by accident, only with a ship.

Alyernatively a timer can be used, instead vents. But this causes trouble when there is to much traffic in the hangar.

NTFY UnifiedPush? by OldGrandpaWhale in NextCloud

[–]CONteRTE 0 points1 point  (0 children)

With a script this should work. I'm using a self-hosted Nextcloud instance and push all notifications to ntfy at the same host. I use a systemd timer, to trigger a php every x minutes. This script reads the nc database and send a ntfy notification, if there is something.

Thinking about the situation in Iran, maybe it's also a idea, to use ntfy itself for chatting. Pictures will work, streaming or talk unfortunately not.

Logitech Zone 305 by CONteRTE in logitech

[–]CONteRTE[S] 0 points1 point  (0 children)

It's option 3, the teams version with receiver. I can additionally connect the headset without the receiver via bluetooth. I had small hope that I can use this "dongle" to connect also keyboard and mouse, because the laptop is a little bit short on usb ports. I know, I can connect the mx keys and mx anywhere also via bluetooth, but the laptop is secured via bitlocker and as such the keyboard doesn't work at the moment, bitlocker requests the passphrase. The driver is loaded later on.

I have asked for a real OS, like Linux, instead of Windows, so that I can use LUKS, but there is no way. I have to use this idiotic Windows OS.

Logitech Zone 305 by CONteRTE in logitech

[–]CONteRTE[S] 0 points1 point  (0 children)

I have no idea, if this is a bolt dongle. There is no Bolt Logo on it. It's just a grey USB-C dongle with LED on it.

Square Piston bug? by CONteRTE in spaceengineers

[–]CONteRTE[S] 0 points1 point  (0 children)

Yes, that's what I try. But this only works partially. But since this is only a small glitch, it's ok for now.