wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newby Questions/Missing C Compiler
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation
View previous topic :: View next topic  
Author Message
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 1:13 am    Post subject: Reply with quote

http://www.pcrguam.com/weather/img/index.html

It works ... except it's running in my private/var folder which I can't get to automatically upload to our remote server (I'm using Interarchy now to do auto syncs from a local folder to the remote folder). If I can get the ftp upload included to work, I'm fine with this setup. Or should I try to get wview to run from the opt/local directory, and if so, how.

Thanks so much, it looks beautiful!
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 6:32 am    Post subject: Reply with quote

OK, you are close...

wview "installs" in /opt/local/bin - or it should unless there is some chroot magic going on on your system. There will be configuration data at /etc/wview and the runtime data at /var/wview. So that is 3 locations of interest here. Let's get straight where they actually are:

As root (while wview is running) post output of:

1) find / -name "wviewd" -print

2) find / -name "wviewd.pid" -print

3) find / -name "wview.conf" -print

You will also need to confirm that tnftp is the ftp that is installed on your system - see the FTP section in the User Manual for directions on this.

Once I have clear answers on these, we will proceed.

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 1:40 pm    Post subject: Reply with quote

1)
sudo find / -name "wviewd" -print

/opt/local/bin/wviewd
/private/var/wview/dev/wviewd
/usr/local/bin/wviewd
/wview-1.7.7/daemon/wviewd

2)
sudo find / -name "wviewd.pid" -print

/private/var/wview/wviewd.pid

3)
sudo find / -name "wview.conf" -print
/private/etc/wview/wview.conf
/private/etc/wview-old/wview/wview.conf
/private/etc/wview-old/wview.conf
/wview-1.7.7/examples/conf/wview.conf
Back to top
View user's profile Send private message Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 1:43 pm    Post subject: Reply with quote

This is from the wview.conf file:

##################### wviewd Configuration #####################

# Where to store monthly Weather data archive files:
ARCHIVE_PATH=/var/wview/archive

# VP Console archive retrieval interval (ms) - should be divisor of 60 secs:
ARCHIVE_INTERVAL=15000

# Current conditions data push interval for wvalarmd and possibly others (ms):
PUSH_INTERVAL=30000

# Produce more and verbose diagnostic log messages?
VERBOSE_MSGS=1
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 2:59 pm    Post subject: Reply with quote

Quote:
1)
sudo find / -name "wviewd" -print

/opt/local/bin/wviewd
/private/var/wview/dev/wviewd
/usr/local/bin/wviewd
/wview-1.7.7/daemon/wviewd

wview daemons ARE installed at /opt/local/bin, and you also have an old install at /usr/local/bin from an earlier failed attempt apparently, delete it:
Code:
sudo rm -rf /usr/local/bin/wviewd
sudo rm -rf /usr/local/bin/htmlgend
sudo rm -rf /usr/local/bin/wvalarmd
sudo rm -rf /usr/local/bin/wviewftpd
sudo rm -rf /usr/local/bin/wviewsshd
sudo rm -rf /usr/local/bin/wvcwopd

The provided MacOSX start environment should work as distributed - the daemons are at /opt/local/bin...

Quote:
2)
sudo find / -name "wviewd.pid" -print

/private/var/wview/wviewd.pid

Looks like some kind of chroot business, MacOSX has to be such a pain. Create a link from /var/wview to /private/var/wview:
Code:
sudo ln -s /private/var/wview /var/wview


Quote:
3)
sudo find / -name "wview.conf" -print
/private/etc/wview/wview.conf
/private/etc/wview-old/wview/wview.conf
/private/etc/wview-old/wview.conf
/wview-1.7.7/examples/conf/wview.conf

Create a link from /etc/wview to /private/etc/wview:
Code:
sudo ln -s /private/etc/wview /etc/wview


FTP should work after this IF you have tnftp installed on that Mac...

It looks like you may not have enabled the root account - I believe I had to do that and that may be why you have these things under /private.

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 5:17 pm    Post subject: Reply with quote

Quote:
2)
sudo find / -name "wviewd.pid" -print

/private/var/wview/wviewd.pid

Looks like some kind of chroot business, MacOSX has to be such a pain. Create a link from /var/wview to /private/var/wview:
Code:
sudo ln -s /private/var/wview /var/wview


Quote:
3)
sudo find / -name "wview.conf" -print
/private/etc/wview/wview.conf
/private/etc/wview-old/wview/wview.conf
/private/etc/wview-old/wview.conf
/wview-1.7.7/examples/conf/wview.conf

Create a link from /etc/wview to /private/etc/wview:
Code:
sudo ln -s /private/etc/wview /etc/wview


[/quote]

Creating the links assumes that wview[/code] is installed in /var/wview and /etc/wview, which it's not. /etc only has a folder (directory) called "ports" and /var a folder called "db" both installed, I believe, by Darwinports. Should/could I just drag and copy the subject folders?

When you mention that the install did not happen under root, should the computer be booted into "root" even though my user account (which was used) has admin privileges? Should I (again) delete everything and reinstall logged in as root?

Thanks (again)!
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 5:22 pm    Post subject: Reply with quote

No it does not!

It assumes it is exactly where the find commands said it was and creates symbolic links under /etc and /var - either trust me or look up the ln command.

I wouldn't re-install, but it is up to you. The symbolic links should do the trick.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 5:27 pm    Post subject: Reply with quote

mteel wrote:
No it does not!

It assumes it is exactly where the find commands said it was and creates symbolic links under /etc and /var - either trust me or look up the ln command.

I wouldn't re-install, but it is up to you. The symbolic links should do the trick.


I trust you 100%, but I'm not familiar with the commands. I ran the commands/code as you suggested, but I still do not see anything else in the opt/local/etc or /var folders. Should I? Or what does the symbolic link accomplish?
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 5:34 pm    Post subject: Reply with quote

Code:
cd /var
ls -al

[you should see wview ... --> /private/var/wview
Code:
cd /etc
ls -al

[you should see: wview ...... --> /private/etc/wview

There should be nothing under /opt/local/etc with respect to wview...

The symbolic link makes it look like the /private/var/wview directory is underneath /var so that :
Code:
cd /var/wview

looks like a real directory, but it is actually in /private/var/wview...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 5:44 pm    Post subject: Reply with quote

To become root (after you have played the little game MacOSX requires to enable the root account - google it):

Code:
su
[password]


Then you will be logged in as root and will not have to use sudo to issue commands. sudo allows you to run commands as root without being logged in as root. If you log in as root, you don't need to use sudo.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 5:44 pm    Post subject: Reply with quote

Okay, so "physically" nothing is supposed to change (i.e no "alias" of the folders are created under the /opt/local directories). Gotcha. I'll delf deeper into the user manual now to get the ftp to upload.
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 5:45 pm    Post subject: Reply with quote

But did you see a wview "directory" (actually a link) under /var and /etc?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 5:51 pm    Post subject: Reply with quote

mteel wrote:
But did you see a wview "directory" (actually a link) under /var and /etc?


Looks like it!

G5-Tower:~ paul$ cd /var
G5-Tower:/var paul$ ls -al
total 24

<SNIP>

drwxr-xr-x 11 root wheel 374 Sep 9 08:34 wview
drwxr-xr-x 4 root wheel 136 Mar 28 14:09 xgrid
drwxr-xr-x 4 root wheel 136 May 20 21:48 yp

G5-Tower:/var paul$ cd /etc
G5-Tower:/etc paul$ ls -al
total 2200

<SNIP>

drwxr-xr-x 24 root wheel 816 Sep 9 08:31 wview
drwxr-xr-x 5 root wheel 170 Sep 6 18:11 wview-old
drwxr-xr-x 4 root wheel 136 Mar 28 14:09 xgrid
-rw-r--r-- 1 root wheel 238 Mar 21 10:16 xinetd.conf
-rw-r--r-- 1 root wheel 238 May 20 21:50 xinetd.conf.applesaved
drwxr-xr-x 12 root wheel 408 Jul 13 14:13 xinetd.d
drwxr-xr-x 18 root wheel 612 Jul 13 14:13 xinetd.d-migrated2launchd
-rw-r--r-- 1 root wheel 0 Sep 13 2003 xtab

G5-Tower:/etc paul$ cd /var/wview
G5-Tower:/var/wview paul$ ls -al
total 32
drwxr-xr-x 11 root wheel 374 Sep 9 08:34 .
drwxr-xr-x 28 root wheel 952 Sep 9 08:36 ..
drwxr-xr-x 2 root wheel 68 Sep 6 17:48 alarms
drwxr-xr-x 9 root wheel 306 Sep 8 16:51 archive
drwxr-xr-x 10 root wheel 340 Sep 6 18:23 dev
-rw-rw-rw- 1 root wheel 3 Sep 9 08:34 htmlgend.pid
drwxr-xr-x 84 root wheel 2856 Sep 9 08:34 img
drwxr-xr-x 3 root wheel 102 Sep 6 18:25 noaa
-rw-rw-rw- 1 root wheel 3 Sep 9 08:34 wvalarmd.pid
lrwxr-xr-x 1 root wheel 18 Sep 9 08:31 wview -> /private/var/wview
-rw-rw-rw- 1 root wheel 3 Sep 9 08:34 wviewd.pid
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Sep 08, 2005 5:59 pm    Post subject: Reply with quote

OK, I don't know what you were thinking before, but there already were wview directories (real directories) underneath /var and /etc!!!

The only link I see is an errant one you somehow created inside /var/wview pointing to /private/var/wview... You should delete it. Are you typing the commands I gave you exactly?

cd /var/wview
rm -rf wview

Anyway, everything was already as it should be, in fact, I bet /private is a link to / !!!

cd /
ls -al
private -> /

but I could be wrong.

Anyway, the wview run and config directories (/var/wview and /etc/wview respectively) were installed where they should be from the git-go it looks like...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Thu Sep 08, 2005 6:16 pm    Post subject: Reply with quote

Anyway, everything was already as it should be, in fact, I bet /private is a link to / !!!

cd /
ls -al
private -> /

but I could be wrong.

Anyway, the wview run and config directories (/var/wview and /etc/wview respectively) were installed where they should be from the git-go it looks like...[/quote]

G5-Tower:/ paul$ ls -al
total 130691

<SNIP>

drwxrwxr-t 44 root admin 1598 Sep 9 08:33 .
drwxrwxr-t 44 root admin 1598 Sep 9 08:33 ..
drwxr-xr-x 44 paul paul 1496 Sep 8 15:00 wview-1.7.7

This is the wview folder downloaded (and decompressed).


G5-Tower:/ paul$ cd /private
G5-Tower:/private paul$ ls -al
total 0
drwxr-xr-x 6 root wheel 204 Sep 9 08:33 .
drwxrwxr-t 44 root admin 1598 Sep 9 08:33 ..
drwxr-xr-x 109 root wheel 3706 Sep 9 08:34 etc
drwxr-xr-x 4 root wheel 136 May 20 21:52 tftpboot
drwxrwxrwt 11 root wheel 374 Sep 9 09:53 tmp
drwxr-xr-x 28 root wheel 952 Sep 9 08:36 var

I guess that my problem is/was that the /private folder (directory) is hidden under the MacOSX finder until you actually try to open it (I use Safari the web browser, but there probably is a better (real) way for this too). So, initially I didn't SEE anything installed and was expecting it to be in the opt/local directory created by Darwinports (which is visible). Now because the files are located in this "hidden" directory I can't use the ftp client (Interarchy) I have been using. So, give me the weekend and I'll dig down deep in your user manual.

I have already turned WeatherLink off, because it is so awful, and I like your interface 1000 times better. When you start charging for your efforts, I'll be one of your first paying customers!

BTW, do you notice the sunrise/sunset times for my VantagePro Plus? <http://www.pcrguam.com/weather/img/index.html> It has been doing this forever, using the correct timezone correction for Guam (GMT +10). I'm sure that I can off-set the timezone to reflect actual conditions, but I've been thinking that it's strange.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation All times are GMT - 6 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group