Upgrading smartvisu V2.7 to V2.8 - wvhn/smarthome GitHub Wiki
Smartvisu V2.8 brings drastically improved performance and a new icon handling. The upgrade will not work with smarthomeNG unless some manual changes are made.
First we enter the directory /var/www. I recommend to rename the subdirectory smartvisu to smartvisu.bak. Then we start installation of the new version by typing
sudo git clone git://github.com/Martin-Gleiss/smartvisu.git
After installation of the new version, the access rights need to be adjusted:
sudo chmod -R 775 smartvisu
Smartvisu runs with smarthome protocol version 4 per default. So we set the version in /usr/smarthome/etc/plugin.conf to
wsproto = 4
In the same config file we need to change the sql plugin to
[sql]
class_name = SQL
class_path = plugins.sqlite_visu2_8
If you don't use the auto page generation feature from smarthomeNG you need to copy your visu pages to the respective subdirectory /var/www/smartvisu/pages/(yourpages). Then, all your own visu pages need to be changed individually in order to use the new .svg icons and color management instead of the removed .png icons. This requires changing the file endings and also the paths of the .svg icons.
Old in V2.7
{{ basic.dual('zi6', 'ug.zimmer6.licht', icon1~'light_ceiling_light.png', icon0~'light_ceiling_light.png','1','0', 'midi') }}
New in V2.8
{{ basic.dual('zi6', 'ug.zimmer6.licht', 'light_ceiling_light.svg', 'light_ceiling_light.svg','1','0', 'midi') }}
This one uses default colors. Individual colors can be set in two additional parameters after the size parameter ('midi').
Change any own widgets accordingly. After you have done this, clear the smartvisu/temp subdirectory to delete all cached pages, restart smarthomeNG and open smartvisu in your browser. The config page will open at the first access and you need to set your configuration and your pages directory (yourpages).