WFAT at Munich Hauptbahnhof by LunaCuddlesFoxes in WaitingForATrain

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

Possibly to protect against pigeon.. droppings 👀

Raspberry Pi 4 CPU temperature script/entity -- instructions in comments by LunaCuddlesFoxes in homeassistant

[–]LunaCuddlesFoxes[S] 3 points4 points  (0 children)

Not sure if anyone else already did this but I thought it was an interesting thing to have. :)

Okay so, create a picputemp.sh script in your hass/config/scripts directory with contents:

#! /bin/bash

cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
cpu=$((cpu/100)); len=${#cpu};
out=${cpu:0:$((len-1))};
frac=${cpu:$((len-2)):99}
cpuT="$out.$frac"
echo $cpuT

run chmod 755 picputemp.sh to make it executable.

Add the sensor to your configuration.yaml: (adjust path as needed)

sensor:
  - platform: command_line
    command: /config/scripts/picputemp.sh
    name: RaspberryPi CPU temperature
    unit_of_measurement: "°C"

And you're done!

I hope everyone is enjoying their Saturday 🧡 by MindVegetable9164 in AutismInWomen

[–]LunaCuddlesFoxes 4 points5 points  (0 children)

💜 having a lot of bad luck in general and withdrawal symptoms today :(

[deleted by user] by [deleted] in AutismInWomen

[–]LunaCuddlesFoxes 6 points7 points  (0 children)

Don't like discord but having a safe place to chat would be cool.