Skip to content

Instantly share code, notes, and snippets.

View psimsa's full-sized avatar

Pavel Simsa psimsa

View GitHub Profile
@psimsa
psimsa / oig-ha-rest.yaml
Created June 5, 2023 07:26
OIG/CBB rest api sensor
- resource: https://cbb.simsa.cz/api/batterybox/getstats
scan_interval: 30
method: POST
payload: '{"email": "[email do oig]", "password": "[heslo do oig]", "unitId": "[id boxu]"}'
headers:
content-type: 'application/json; charset=utf-8'
sensor:
- name: "CBB Baterie"
unique_id: cbb-fve.battPct
value_template: "{{ value_json.batteryPct }}"

How to install latest (or any) .NET on arm64

See details for the used script on the Microsoft website

wget https://dot.net/v1/dotnet-install.sh
sudo chmod +x ./dotnet-install.sh
sudo ./dotnet-install.sh -i /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet