|
|
# Automatic update (beta)
|
|
|
**WARNING: This is still pretty new and untested!
|
|
|
Do a backup of your weewx configuration folder (e.g: `/etc/weewx/`) before trying!**
|
|
|
|
|
|
### Download and run update script:
|
|
|
```
|
|
|
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter/raw/master/src/tools/update.sh | sh -s -- /path/to/rabenwetter/skin/ <language>
|
|
|
```
|
|
|
**For example:**
|
|
|
````
|
|
|
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter/raw/master/src/tools/update.sh | sh -s -- /etc/weewx/skins/Rabenwetter/ en
|
|
|
````
|
|
|
|
|
|
# Manual update
|
|
|
|
|
|
1. **Download the Rabenwetter skin as a [zip-file](https://gitlab.ambhost.net/stimpy/template_rabenwetter/-/archive/master/template_rabenwetter-master.zip) or using git:**
|
|
|
> ```
|
|
|
> git clone https://gitlab.ambhost.net/stimpy/template_rabenwetter.git
|
|
|
> ````
|
|
|
|
|
|
2. **Delete the skin.conf file from distribution files:**
|
|
|
> ```
|
|
|
> rm dist/skin.conf
|
|
|
> ```
|
|
|
|
|
|
3. **Adjust owner and group (change user and group according to who's running weewx on your system):**
|
|
|
> ```
|
|
|
> chown -R weewx:weewx dist
|
|
|
> ```
|
|
|
|
|
|
4. **Copy global distribution files to `/etc/weewx/skins/Rabenwetter/` (change paths according to your environment:**
|
|
|
> ```
|
|
|
> cp -ar dist/* /etc/weewx/skins/Rabenwetter/
|
|
|
> ```
|
|
|
|
|
|
5. **Copy localized files for your language to `/etc/weewx/skins/Rabenwetter/` and delete `i18n/` from weewx skins directory:**
|
|
|
> ```
|
|
|
> cp -ar dist/i18n/en/* /etc/weewx/skins/Rabenwetter/
|
|
|
> rm -r /etc/weewx/skins/Rabenwetter/i18n/
|
|
|
> ```
|
|
|
|
|
|
6. **Adjust group of the assets folder to be readable by your webserver:**
|
|
|
> ```
|
|
|
> chown -R weewx:www-data dist/assets/
|
|
|
> ```
|
|
|
|
|
|
7. **Copy assets folder for your language to webroot:**
|
|
|
> ```
|
|
|
> cp -ar dist/assets /var/www/weewx/
|
|
|
> ```
|
|
|
|
|
|
8. **Check `src/skin.conf` for changes and manually add them to your `/etc/weewx/skins/Rabenwetter/skin.conf`:**
|
|
|
> ```
|
|
|
> diff -aur src/skin.conf /etc/weewx/skins/Rabenwetter/skin.conf
|
|
|
> ```
|
|
|
|
|
|
9. **Restart weewx** |
|
|
\ No newline at end of file |