Skip to content

Control your Raspberry PI temperature using Pimoroni's Fan SHIM.

License

Notifications You must be signed in to change notification settings

30block/fanshim

Repository files navigation

fanshim

Control your Raspberry PI temperature using Pimoroni's Fan SHIM.

Usage

The fanshim block is meant to o be used alongside other services, so you will need to create a service in your docker-compose.yml file.

version: '2.1'

services:
  fanshim:
    image: bh.cr/gh_pipex/fanshim 
    restart: always
    devices:
      # Required to access gpio 
      - /dev/gpiomem
    labels:
      # Required to access the host /proc directory
      io.balena.features.procfs: '1'

This block will only work with Pimoroni's Fan SHIM (which is the one I have).

Environment variables

Name Description Default Value
FANSHIM_ON_TEMP Temperature threshold in degrees C to enable fan 65
FANSHIM_OFF_TEMP Temperature threshold in degrees C to disable fan 55
FANSHIM_DELAY Delay, in seconds, between temperature readings 5
FANSHIM_VERBOSE Output temperature and fan status messages (1 to enable) 0

Attributions

About

Control your Raspberry PI temperature using Pimoroni's Fan SHIM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published