Monday, May 29, 2017

Installing wview 5.21.7 on a Raspberry PI running Jessie.

So the very first Raspberry Pi I purchased finally broke down and wouldn't connect to the network any longer. It was an original Model B and I had unwisely decided to run both XBMC and Wview on the same unit. It seemed like a good idea at the time.

It was also my last pi running Wheezy.

Thanks to Amazon Prime two days later I had a new Raspi 3 Model B and a realization that I had no DR plan for the weather station. To the Internet.

The first decision: Build from sources or use Mark Teel's Ubuntu repository? Over the 9 years I've used wview, I'd done both. For the Fedora builds, I'd built my own from scratch. For the Pi I'd used the repository.

I decided on repository but the only problem is wview is getting bit long in the tooth and I guess Mark hasn't the time these days to keep the repositories up to date so there really isn't a Jessie repository.

However the wheezy build still works fine on the jessie OS so that is the way I went.

I started here for instructions and here are my consolidated notes.


Wheezy Wview on Jessie Build

1.  Add the Wheezy components to a fresh Jessie build

$ sudo vi /etc/apt/sources.list

Insert the following at the top of the file:

deb http://www.wviewweather.com/apt/wheezy wheezy main
deb-src http://www.wviewweather.com/apt/wheezy wheezy main

And wview has some dependencies on wheezy components (libgl2) so add these as well:

deb http://mirrordirector.raspbian.org/raspbian/wheezy main contrib non-free rpi
deb-src http://archive.raspbian.org/raspbian/wheezy main contrib non-free rpi

Perform an update

$sudo apt-get update

Optionally you can also do an upgrade

$ sudo apt-get upgrade

Install Apache and PHP components

$sudo apt-get install apache2
$sudo apt-get install php5 php5-sqlite3 libapache2-mod-php5

Reboot

$sudo reboot

Install Wview

$sudo apt-get install wview
(Respond "Y" to disk pace question and to Install these packages without verification.

Fix the Apache links

$cd /var/www/html
$ln -s /var/lib/wview/img weather
$ln -s /var/lib/wviewmgmt wviewmgmt

Go a browser and complete the wviewmgmt step as described in the manual

http:///wviewmgmt (log in with "wview" for fist time) 

From here I have my own issues with a custom built modification of Mark's alarm monitor but that's a story for different day.