macOS
This guide describes the installation for macOS (10.12 and higher) using the Homebrew package manager.
Installation
Section titled “Installation”-
Install
Section titled “Install”Open a terminal window and install Homebrew, if it’s not already installed.
Terminal window brew trust --tap evcc-io/tapbrew tap evcc-io/tapbrew updatebrew install --cask evcc -
evcc is shipped as a Homebrew cask, which cannot be managed by
brew services. Create a launchd agent instead. It starts evcc at login and restarts it if it stops:Terminal window mkdir -p "$(brew --prefix)/var/log"cat > ~/Library/LaunchAgents/io.evcc.plist <<EOF<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Label</key><string>io.evcc</string><key>ProgramArguments</key><array><string>$(brew --prefix)/bin/evcc</string></array><key>WorkingDirectory</key><string>$(brew --prefix)</string><key>RunAtLoad</key><true/><key>KeepAlive</key><true/><key>StandardOutPath</key><string>$(brew --prefix)/var/log/evcc.log</string><key>StandardErrorPath</key><string>$(brew --prefix)/var/log/evcc.log</string></dict></plist>EOFlaunchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/io.evcc.plist -
Set up
Section titled “Set up”Open the evcc interface in your browser: http://localhost:7070. Set an administrator password and configure your devices directly via the web interface.
Configuration
Section titled “Configuration”After the first start, you can configure evcc at http://localhost:7070. Settings are automatically saved in the database.
Alternatively, you can use an evcc.yaml configuration file at /etc/evcc.yaml.
Details can be found in Configuration.
Upgrades
Section titled “Upgrades”To upgrade to a new version of evcc, perform the following steps:
-
Open a terminal window
-
Update package lists:
Terminal window brew update -
Upgrade evcc:
Terminal window brew upgrade --cask evcc -
Restart evcc:
Terminal window launchctl kickstart -k gui/$(id -u)/io.evcc
Upgrading from the Homebrew formula
Section titled “Upgrading from the Homebrew formula”Up to version 0.314.5 evcc was shipped as a Homebrew formula and started with brew services.
Homebrew does not upgrade an installed formula to a cask, so brew upgrade keeps reporting the old version as up-to-date.
Remove the formula once and install the cask:
brew services stop evccbrew uninstall evccbrew updatebrew install --cask evccThen create the launchd agent as described in Start. Your configuration and database are not affected.
Additional Commands
Section titled “Additional Commands”-
Check the status of the evcc server:
Terminal window launchctl print gui/$(id -u)/io.evcc -
Stop evcc and remove the launchd agent:
Terminal window launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/io.evcc.plist -
View logs:
Terminal window tail -f "$(brew --prefix)/var/log/evcc.log"
Manual Installation
Section titled “Manual Installation”Here you’ll find instructions for manually installing evcc on macOS.
Installation
Section titled “Installation”- Download the appropriate file to your system:
- 64-bit ARM or Intel CPU: evcc_X.XX_macOS_all.tar.gz
- Extract the downloaded file (e.g., by double-clicking the file)
- There will now be a new folder with the
evccprogram - Open a terminal and navigate to the folder containing the
evccprogram - Start evcc with the following command:
Terminal window ./evcc -v - You should see the current version of evcc (e.g.,
evcc version 0.xxx.y).
Configuration
Section titled “Configuration”After the first start, open http://localhost:7070 in your browser and configure evcc via the web interface.
Alternatively, you can create an evcc.yaml configuration file (see Configuration) and start evcc with it:
./evcc -c evcc.yamlUpdates/Downgrades
Section titled “Updates/Downgrades”Follow the steps above and replace the evcc program file with the new or previous version. The configuration does not need to be redone.