Skip to content

Instantly share code, notes, and snippets.

@MichaelRumpler
MichaelRumpler / format-solaredge-wallbox-csv.ps1
Created May 3, 2023 08:40
Format SolarEdge Wallbox charging history
param (
[Parameter(Mandatory)][string] $filename
)
if($filename -eq "" -Or !(Test-Path -Path $filename)) {
Write-Host -ForegroundColor Red 'Usage: powershell -file .\format-solaredge-wallbox-csv.ps1 "C:\Users\micha\Downloads\EV charging history 2022.csv"'
Return
}
$year = $filename -replace ".*(20\d\d).*","`$1"
------------------
System Information
------------------
Time of this report: 7/20/2019, 19:27:21
Machine name: BUTTERFLY
Machine Id: {954172FF-D1D9-4AB7-A41C-FEC852AE720C}
Operating System: Windows 10 Pro 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434)
Language: German (Regional Setting: German)
System Manufacturer: ASUSTeK COMPUTER INC.
System Model: UX360UAK
@MichaelRumpler
MichaelRumpler / Version.cs
Created May 23, 2017 09:26
Version class
using System;
using System.Linq;
namespace RoyalMobileApps.XF.Helpers
{
public struct Version
{
private readonly int[] parts;
public Version(string version)