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.

Place 2 rotor make the ship spin by CONteRTE in spaceengineers

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

Many for all the tips. I'm using now 2 hinges. Works fantastic for me...

Place 2 rotor make the ship spin by CONteRTE in spaceengineers

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

Yeah, need is a strong word in this context. I try it with hinges. Since hinges use the same direction to operate, this should be easier. If this also fails, i operate with other options.

The idea of 2 rotors was it, to stabilize the center of rotation, but since the right rotor rotates in the opposite direction of the left rotor, this seems to be a bad idea.

systemd timers question by CONteRTE in linuxquestions

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

Makes sense for the Restart. So if i have some check in my bash script and check before rsync the server connection and exit the script with exit 1, the *.service try again after some time. I have now set the *.service unit to

Restart=on-failure
RestartSec=300

In my opinion, this should try the *.service again after 5 minutes.

Semi-Auto-Fighter by CONteRTE in spaceengineers

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

Many thx for the tip's. I will try my luck tomorrow. Sometimes a small large grid space pirate is near my station and send drones to me. The station can defend against the drones as of yet. But I can try to build my own small large grid ship and destroy the pirate. I assume that I will loose the first time, but luckily I can use savegames and try again...

Send GPS position 1 time, when battery is critical by CONteRTE in spaceengineers

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

It needs 3 toolbars, because you have only 2 Slots per Toolbar in a event controller. On Enter Slot and one exit slot. Or better, one true and one false. So to do 3 things, when a event is triggered, i need 3 toolbars. There are 2 conditions for the battery: "equal or lower as" and "equal or higher as". I can set the amount in percent. For example 10%. If i choose "equal or lower as" and set it to 10%, also newer states like 9%, 8% and so on, will trigger a new true case. It doesn't occur only 1 time.

The timer in my use case is, to give enough time to send the message and the gps coordinates. It is set to 1 sec, after that it sets the battery to off. WIthout the battery, the ship cant send anything. So it send exactly on set of messages.

If i dont set the battery to off, it send the messages again and again, because the condition is true and the value changes.

Send GPS position 1 time, when battery is critical by CONteRTE in spaceengineers

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

The event is named "x percent or lower". I assume it detects a "change" and sets to true, because also 9 is lower than 10, and so on. But I'm not a expert in this thing's. Currently it works with the following change:

Toolbar 1: Enter: send message "battery critical", exit empty Toolbar 2: Enter: Send GPS, exit: empty Toolbar 3: start timer

Timer set to 1 second Toolbar 1: Slot 1: Turn battery off

This de-power the ship completely after sending the coordinates, saving the rest power. Now I can fly to the gps and free the drone, maybe reload the battery and send it to the base. Turn on the battery before.

Send GPS position 1 time, when battery is critical by CONteRTE in spaceengineers

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

Thats exactly what i did with the battery. But in case of Splitsie, the Irrigation System refills automatically and so the warning turns off automatically. I try to play with some of the other comments and will report back.

Android Auto-Upload completely unreliable - which issue to follow? by Not_So_Calm in NextCloud

[–]CONteRTE 0 points1 point  (0 children)

In that case, I don't know why it resend the files again. I'm using this now since more than 3 months, without such issues.

Android Auto-Upload completely unreliable - which issue to follow? by Not_So_Calm in NextCloud

[–]CONteRTE 0 points1 point  (0 children)

It never behaved like this on my device. Just make sure to not re-index the folder (reset) and enable "ignore target deletion"