Sailing7

joined 2 years ago
[–] Sailing7@lemmy.ml 17 points 4 days ago

Omfg this shit is hillarious. Thank you for sharing this :D

[–] Sailing7@lemmy.ml 2 points 2 weeks ago (1 children)

Ein tach schon her, klar.

Aber FFM innenstadt bspw sagt DWD 36°C für den 01.07 vorraus.

So oder so isses aber brütend heiß, das streitet niemand ab.

[–] Sailing7@lemmy.ml 43 points 3 weeks ago (8 children)

Is this some 'murica thing I'm too German to get?

[–] Sailing7@lemmy.ml 9 points 1 month ago (1 children)

Grausame scheiße. Wer klaut bitte nen hund MIT Chip?

Wenn du nen rumlaufenden wauzel findest und dich mental drauf vorbereitest, den auf ner mehrstündigen heimfahrt mitzunehmen, dann nimm dir doch die 20 minuten vor der abfahrt und fahr zum tierarzt FFS.

Immerhin bekommt die kleine ihren wauzel zurück :D

[–] Sailing7@lemmy.ml 15 points 1 month ago* (last edited 1 month ago) (5 children)

Uhhh niiiceee

Been a loyal bequiet customer before. Veeery interested how good those will come out to be

Edit: Looks nice but why in the hell is this thing not wireless? Or at least an option for a wireless variant?

Fully equipped variant costs 250 euros but is only USB pluggable. In what century are we living in?

[–] Sailing7@lemmy.ml 1 points 1 month ago (1 children)

Well, some people like the taste of this drink.

The other hand of the spectrum mostly thinks it tastes like what you would imagine a ashtray would taste like.

I'm part of the second kind. Had seen lots of people in the office drink it. Wanting to try it out gave it a shot. Absolutely regret that.

[–] Sailing7@lemmy.ml 2 points 1 month ago (3 children)

This one does not spark joy.

shudders

[–] Sailing7@lemmy.ml 8 points 2 months ago

Weil er auf deutsch halt so garnicht funzt.

Ich hab das erst gecheckt, als ich die englische variante gelesen hab.

:D

[–] Sailing7@lemmy.ml 4 points 2 months ago

The mentioned php file:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Charging Time Calculator (PHP)</title>
  <style>
    body { font-family: Arial, sans-serif; background: #f4f4f4; color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
    .box { background: #fff; padding: 20px 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
    h1 { margin-top: 0; text-align: center; }
    .field { margin-bottom: 15px; }
    label { display: block; margin-bottom: 5px; font-weight: bold; }
    input[type="number"] { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
    button { width: 100%; padding: 10px; background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; }
    button:hover { background: #218838; }
    .result { margin-top: 20px; background: #e9ecef; padding: 15px; border-radius: 4px; }
  </style>
</head>
<body>
  <div class="box">
    <h1>Charging Time Calculator</h1>

    <?php
    // Default values at the top
    $default_capacity      = 52.0;   // kWh
    $default_current_pct   = 55.0;   // %
    $default_target_pct    = 80.0;   // %
    $default_power_kw      = 1.8;    // kW
    $default_loss_pct      = 15.2;   // Charging loss in %

    // I have extended the PHP script with the new field for charging loss (default 15.2%). 
    // The loss is applied immediately after calculating the net energy requirement, 
    // so the charging time is determined based on the inclusive energy requirement (net + loss). 
    // Additionally, the result view now shows the following values:
    // - Net energy required
    // - Configured charging loss
    // - Energy requirement including loss

    // Take from POST or use defaults
    $capacity = isset($_POST['capacity']) ? floatval($_POST['capacity']) : $default_capacity;
    $current  = isset($_POST['current'])  ? floatval($_POST['current'])  : $default_current_pct;
    $target   = isset($_POST['target'])   ? floatval($_POST['target'])   : $default_target_pct;
    $power    = isset($_POST['power'])    ? floatval($_POST['power'])    : $default_power_kw;
    $loss     = isset($_POST['loss'])     ? floatval($_POST['loss'])     : $default_loss_pct;

    if ($_SERVER['REQUEST_METHOD'] === 'POST') {
      // Calculation
      $percent_to_charge = max(0, $target - $current);
      // Net energy requirement
      $energy_needed_raw = ($percent_to_charge / 100) * $capacity;      // in kWh
      // Energy requirement including charging loss
      $energy_needed = $energy_needed_raw * (1 + $loss / 100);
      // Charging time based on the increased energy requirement
      $time_hours        = $power > 0 ? $energy_needed / $power : 0;    // in hours
      $hours             = floor($time_hours);
      $minutes           = round(($time_hours - $hours) * 60);
    ?>
      <div class="result">
        <p><strong>Remaining Charging Time:</strong> <?= $hours ?> h <?= $minutes ?> min</p>
        <p><strong>Percent to Charge:</strong> <?= number_format($percent_to_charge, 1) ?> %</p>
        <p><strong>Energy to Charge (net):</strong> <?= number_format($energy_needed_raw, 2) ?> kWh</p>
        <p><strong>Charging Loss:</strong> <?= number_format($loss, 1) ?> %</p>
        <p><strong>Energy to Charge (incl. loss):</strong> <?= number_format($energy_needed, 2) ?> kWh</p>
      </div>
    <?php } ?>

    <form method="post">
      <div class="field">
        <label for="capacity">Battery Capacity (kWh)</label>
        <input type="number" step="0.1" name="capacity" id="capacity" value="<?= htmlspecialchars($capacity) ?>" required>
      </div>
      <div class="field">
        <label for="current">Current Charge Level (%)</label>
        <input type="number" step="1" min="0" max="100" name="current" id="current" value="<?= htmlspecialchars($current) ?>" required>
      </div>
      <div class="field">
        <label for="target">Desired Charge Level (%)</label>
        <input type="number" step="1" min="0" max="100" name="target" id="target" value="<?= htmlspecialchars($target) ?>" required>
      </div>
      <div class="field">
        <label for="power">Charging Power (kW)</label>
        <input type="number" step="0.1" min="0.1" name="power" id="power" value="<?= htmlspecialchars($power) ?>" required>
      </div>
      <div class="field">
        <label for="loss">Charging Loss (%)</label>
        <input type="number" step="0.1" min="0" max="100" name="loss" id="loss" value="<?= htmlspecialchars($loss) ?>" required>
      </div>
      <button type="submit">Calculate</button>
    </form>
  </div>
</body>
</html>

 

tl;dr: made a excel file for calculating charging time of Opel Corsa F e Cars since there is no proper done limiter by the manufacturer. Turned it into a php file, so you can selfhost it for ease of use.

Have a look at the two pics to generate a view of what it would look like.

I know probably nobody will care about this topic and it seems offtopic for this community but this is the closest community I could find and I wanted to try to remove some inconveniance for some people.

Pic of it before Calcing: https://lemmy.ml/pictrs/image/dd3724e4-6729-4188-9e24-d0c5a737ab48.png

Pic of it when clicking Calculate: https://lemmy.ml/pictrs/image/59a50f0a-b2e5-432b-ba25-7de9731332f5.png

LOOONG Version:

For those wondering and even caring about this nieche topic: Some PSA based cars - like the Opel/Vauxhall Corsa F e (e - electric) do not have a charging limiter built in.

Just like your Phone you should charge only until 80%.

A workaround (for Opel) is, that when charging via AC you can tell the car to stop charging right now but start again later.

Now you could calc out at what time in the night your car should start chargin to get to 80% by leaving the house.

Doing such is also not that conveniant.

To make this thing more easy - I've made myself a simple excel sheet that calcs all those things.

Since I hate Spreadsheets and wanted my partner to also benefit from it without having to have this stupid file on their phone I let ChatGPT transfer my calculus into one done in PHP. Its a simple transfer of math operations and I've checked - it didnt fuck up the calculations.

Soooo to the point: I've got a php file for ya'll that you can put on a dummy webserver driving php wich will enable you to do those calcs in a glance.

I've let it define some standard-values that you can edit:

  • Wanted charging State: 80%
  • Battery MAX Capaticy (for my case 52KWH but yours might differ, since the changable value)
  • ChargingPower: 1,8KW (when charging via normal power-outlets with the default Opel-Charger - and not any 11KW Charger) -- Again Value is chagnabel
  • Loss of load (apparrently some cars are not that great at 1-Phase Charging -- looking at you Renault Zoe... (24% Loss)) -- Also changable.

php file contents following in the comments (If it will allow me to post comments of such length. If not, just hit me up with a DM. I'll figure out a way if anyone actually wants it ^^)

[–] Sailing7@lemmy.ml 6 points 2 months ago

Woooo another comiiic! :D

[–] Sailing7@lemmy.ml 1 points 2 months ago (1 children)

Those lyrics are fire! ^^

[–] Sailing7@lemmy.ml 10 points 2 months ago* (last edited 2 months ago)

[...] and have been using various Linux distros as my main os for almost 20 years.

Matey. Get into any company that has linux junior positions. You already have more experiance in linux than 90% of the average (windows) Sysadmin.

For realzies now. Most will look weird at you if you ask them to edit a file in the shell or using a server VM that runs without graphical interface.

Get into a linux junior position and get started.

Learn lots and lots. After a few years moneywise you might be back your old job as experienced chemist.

 

Heyoo,

just wanted to ask if anyone else is having this issue or if there is a known fix:

When opening Jellyfin on normal Android Clients, the Area displaying the available Media is reduced by quite a lot.

This is occuring in Portrait and Landscape Mode. It is particularly annoying in Portrait Mode though.

I didn't update my Server for quite some time. Today I updated and I suspect that the current/newest Version is the culprit here.

Is anyone else experiencing this or has a link to a thread where this issue was already discussed?

Cheers Sailing7

 

Hi! I have set up my Jellyfin with NFS Shares from another Server. Jellyfin is able to acces those paths since it I saw it writing .nfo files in the directories of the episodes and Movies.

The movies and series are recognised correctly, but when I open said movies or series, i cant see the episodes and i am unable to start playing them.

It was able to find all epsidoes of like two series. When you open one of those two, you are able to see the episodes but cant play them. If you do, an error about unsupported formats pops up.

ffmpeg is installed in the directory that jellyfin expects it, so i dont have any idea why this is also failing.

Does this sound familiar to any of you fellas? If so, could you give me a hint or a link that helps me with this anomaly? Thx in advance!

view more: next ›