Updating#
SolarThing gets updates every once in a while, and when it does, you will want to update. You can see updates here: https://github.com/wildmountainfarms/solarthing/releases
Navigate to the directory containing your docker-compose.yml
file. Now do:
sudo docker compose pull && sudo docker compose up -d
Now you have the latest version!
If your docker compose file references a version other than latest
, you may have to manually change it and do the above commands.
If you notice an update, run these commands to get it:
cd /opt/solarthing
git pull
program/download_solarthing.sh
# Or instead use this if you are running SolarThing Server
program/graphql_download_solarthing.sh
Once you have done that, you can restart SolarThing. One would typically restart SolarThing like so:
sudo systemctl restart solarthing-<NAME OF YOUR DIRECTORY HERE>
If you have multiple SolarThing instances running, or don’t remember the name of the ones you have running, you can run this to restart all of them:
sudo systemctl restart solarthing-*
It’s a good idea to make sure they are all running:
systemctl status solarthing-*
Permission Issues#
Note
Permission errors should not occur for Docker Installs
If you got errors while trying to update, run these commands:
sudo other/linux/create_user.sh
sudo other/linux/update_perms.sh
sudo usermod -a -G solarthing,dialout,tty,video,gpio $USER
# Or use this if you don't need the gpio (if your system doesn't have the gpio group)
sudo usermod -a -G solarthing,dialout,tty,video $USER