Linux Weather Display Manual: Difference between revisions

From WeatherWiki
m (Added categories)
 
(14 intermediate revisions by 5 users not shown)
Line 2: Line 2:




'''How to get Weather Display Linux:'''
'''How to get Weather Display Linux :'''
*Check the system requirements. (see at bottom of page).
*Check the system requirements. (see at bottom of page).
*  Go to http://www.weather-display.com/linuxdownload.html and download both the setup file (WeatherD.tar.gz) and the executable file (WeatherDLinux.zip).   
*  Go to http://www.weather-display.com/fileslinux.php and download both the setup file (Weatherdisplay.tar.gz) and the executable file (Weatherdisplay).   
'''How to install Weather Display Linux:'''
'''How to install Weather Display Linux:'''
*Extract the setup file (WeatherD.tar.gz) to your installation location (most likely the /home/user directory).   
*Extract the setup file (Weatherdisplay.tar.gz) to your installation location (most likely the /home/user directory).   
*The extraction will create a wdisplay directory.
*The extraction will create a wdisplay directory.
*Open the executable file (WeatherDLinux.zip) and extract the WeatherD executable into the wdisplay directory.   
*Open the executable file (Weatherdisplay.tar.gz) and extract the Weatherdisplay executable into the wdisplay directory.   
'''How to configure Weather Display Linux for the first run''':
'''How to configure Weather Display Linux for the first run (see the end of the page for platform specific information)''':
*Check the permissions on your comport.   This can be accomplished by starting up a command line prompt. Then
*Check the permissions on your comport. This can be accomplished by starting up a command line prompt (for weather stations with a com port). Then
     ls -l /dev/ttyS0
     ls -l /dev/ttyS0
*Where ttyS0 is your comport.   ttyS0 is comport 1, ttyS1 is comport 2, etc....  
*Where ttyS0 is your comport. ttyS0 is comport 1, ttyS1 is comport 2, etc....
*If the permissions are not 777(crwxrwxrwx) then you must  
*If the permissions are not 777(crwxrwxrwx) then you must
     su
     su
     chmod 777 /dev/ttyS0  
     chmod 777 /dev/ttyS0  
*Now you must check the permissions of the WeatherD. This time
*Now you must check the permissions of the Weatherdisplay. This time
     cd /home/user/wdisplay
     cd /home/user/wdisplay/
     ls -l  WeatherD
     ls -l  Weatherdisplay
*If the permissions are not 777(crwxrwxrwx) then you must  
*If the permissions are not 777(crwxrwxrwx) then you must
     su
     su
     chmod 777 WeatherD
     chmod 777 Weatherdisplay
*NOTE: If you are running OpenSUSE, then in order to permanently change permissions of your ttyS0 port (or any ttyS* port), you must edit the "/etc/udev/rules.d/50-udev-default.rules" file. Here are the changes you must make in order for the permissions to stick after rebooting your computer (you must be root to make the changes):  
*NOTE: If you are running OpenSUSE, or any other Linux distro which utilizes "udev" (udev is included in almost every 2.6 kernel based Linux distribution), then in order to permanently change permissions of your ttyS0 port (or any ttyS* port), you must edit the "/etc/udev/rules.d/50-udev-default.rules" file. Here are the changes you must make in order for the permissions to stick after rebooting your computer (you must be root to make the changes):  


Open the "/etc/udev/rules.d/50-udev-default.rules" file in your favorite text editor (as root). Notice the default settings will look something like this:
*Open the "/etc/udev/rules.d/50-udev-default.rules" file in your favorite text editor (as root). Find the line in the file that begins with KERNEL=="tty[A-Z]". That's the line you will need to edit. Notice the default settings will look something like this:


KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"
*KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"


Add the following MODE="777" to the end of the above line in your 50-udev-default.rules file. It should look something like this:
*Add [, MODE="777"] to the end of the above line in your 50-udev-default.rules file (without the brackets but don't forget to add the preceding coma). It should look something like this:


KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="777"
*KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="777"


After changing this file and saving, reboot your computer. The ttyS* ports will grant rwx permission to any user.  
*After changing this file and saving, reboot your computer. The ttyS* ports will grant rwx permission to any user.
For Ubuntu - edit with su rights /etc/udev/rules.d/40-permissions.rules


'''How to start and use Weather Display Linux for the first time:'''
Add this line: KERNEL=="ttyS[0-9]", GROUP="dialout", MODE="0777"
 
Then restart udev: sudo /etc/init.d/udev restart
*Important: If you have a udev enabled Linux distribution and you do not make the above noted changes to your 50-udev-default.rules file, then every time you reboot your computer, the permissions on the ttyS* ports will revert back to root only access. This is because udev dynamically updates the /dev directory upon booting. All permissions granted during your previous session will be lost and Weather Display will not function properly. This solution is known to work properly with OpenSUSE 10.2.
'''How to start and use Weather Display Linux for the first time:'''
*Once again open a terminal open in your wdisplay directory (if you aren't still there from the above step ;-D) and enter
*Once again open a terminal open in your wdisplay directory (if you aren't still there from the above step ;-D) and enter
     ./GoWeather.sh
     sudo ./weatherdisplay
*Now a window will open and load Weather Display Linux and ask you for your language.   
*Now a window will open and load Weather Display Linux and ask you for your language.   
*Now select from the top menu, setup, control panel. This will cause another window to appear.
*Now select from the top menu, setup, control panel. This will cause another window to appear.
*Now select comport setup, and select the correct comport for your station and select ok when done.   
*Now select comport setup, and select the correct comport for your station and select ok when done.   
*Now in the control panel window select units/other settings and choose your units you wish to use. Select ok when done.
*Now in the control panel window select units/other settings and choose your units you wish to use. Select ok when done.
*Now in the control panel window select weather station type and choose your particular station. Select ok when done.  
*Now in the control panel window select weather station type and choose your particular station. Select ok when done.
Congratulations!! You are now ready to run normally. Just as in the windows version there are many options, and they operate in the same way.   For more help visit the [[Weather Display Manual]]
Congratulations!! You are now ready to run normally. Just as in the windows version there are many options, and they operate in the same way. For more help visit the [[Weather Display Manual]]


'''System Requirements'''
'''System Requirements'''


The following are known requirements and a variety of Linux distributions that Weather Display Linux is known to run on. However, this doesn't mean that it won't work on any untested systems(OpenBSD, FreeBSD, NetBSD, Solaris, etc...)
The following are known requirements and a variety of Linux distributions that Weather Display Linux is known to run on. However, this doesn't mean that it won't work on any untested systems(OpenBSD, FreeBSD, NetBSD, Solaris, etc...)
*X windows running
*X windows running
*Supported Weather Station(all supported in the windows version http://www.weather-display.com/supported.php except Dallas One Wire should work.)
*Supported Weather Station(all supported in the windows version http://www.weather-display.com/supported.php except Dallas One Wire should work.)
*  at least 30 mb of RAM
*  at least 30 mb of RAM
*  50 mb of hardrive space for system files, more for log files(about 150mb for every year of data).
*  50 mb of hardrive space for system files, more for log files(about 150mb for every year of data).
*  Log files, datafiles, and webfiles from the windows version can be copied and pasted into the Weather Display Linux and used as normal.
*  Log files, datafiles, and webfiles from the windows version can be copied and pasted into the Weather Display Linux and used as normal.
*Known (tried!) Working Distributions: [http://www.debian.org/ Debian], [http://fedora.redhat.com/ Fedora], [http://wwwnew.mandriva.com/ Mandriva], [http://www.slackware.com/ Slackware], [http://www.novell.com/linux/suse/ Suse]
*Known (tried!) Working Distributions: [https://www.debian.org/ Debian], [http://fedora.redhat.com/ Fedora], [http://wwwnew.mandriva.com/ Mandriva], [http://www.slackware.com/ Slackware], [http://www.novell.com/linux/suse/ Suse]
 
 
'''Platform Specific Information'''
 
 
 
[https://www.debian.org/ Debian Lenny]
 
'''Running as user rather than root in Debian Lenny:'''
 
Debian Lenny uses UDEV for USB devices. You need to modify two files in /etc/udev/rules.d in order to run as a user rather than root.
 
/etc/udev/rules.d/50-udev.rules
 
Change:
<nowiki># usbfs-like devices
SUBSYSTEM=="usb_device", ACTION=="add|change", \
PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add|change", \
NAME="$result"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"</nowiki>
To:
  <nowiki># usbfs-like devices
  SUBSYSTEM=="usb_device", ACTION=="add|change", \
  PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add|change", \
  NAME="$result", MODE="0666"
  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"</nowiki>
/etc/udev/rules.d/91-permissions.rules
 
Change:
<nowiki># usbfs-like devices
SUBSYSTEM=="usb_device", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
MODE="0664"</nowiki>
To:
<nowiki># usbfs-like devices
SUBSYSTEM=="usb_device", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
MODE="0666"</nowiki>
'''Device Specific Information'''
 
Using the OS [[WMR200]] with WD Linux
[[Category:Weather Display]]
[[Category:Linux]]
[[Category:Configuration]]

Latest revision as of 10:41, 7 May 2022

Weather Display Linux Installation & Setup Guide

How to get Weather Display Linux :

How to install Weather Display Linux:

  • Extract the setup file (Weatherdisplay.tar.gz) to your installation location (most likely the /home/user directory).
  • The extraction will create a wdisplay directory.
  • Open the executable file (Weatherdisplay.tar.gz) and extract the Weatherdisplay executable into the wdisplay directory.

How to configure Weather Display Linux for the first run (see the end of the page for platform specific information):

  • Check the permissions on your comport. This can be accomplished by starting up a command line prompt (for weather stations with a com port). Then
   ls -l /dev/ttyS0
  • Where ttyS0 is your comport. ttyS0 is comport 1, ttyS1 is comport 2, etc....
  • If the permissions are not 777(crwxrwxrwx) then you must
   su
   chmod 777 /dev/ttyS0 
  • Now you must check the permissions of the Weatherdisplay. This time
   cd /home/user/wdisplay/
   ls -l  Weatherdisplay
  • If the permissions are not 777(crwxrwxrwx) then you must
   su
   chmod 777 Weatherdisplay
  • NOTE: If you are running OpenSUSE, or any other Linux distro which utilizes "udev" (udev is included in almost every 2.6 kernel based Linux distribution), then in order to permanently change permissions of your ttyS0 port (or any ttyS* port), you must edit the "/etc/udev/rules.d/50-udev-default.rules" file. Here are the changes you must make in order for the permissions to stick after rebooting your computer (you must be root to make the changes):
  • Open the "/etc/udev/rules.d/50-udev-default.rules" file in your favorite text editor (as root). Find the line in the file that begins with KERNEL=="tty[A-Z]". That's the line you will need to edit. Notice the default settings will look something like this:
  • KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"
  • Add [, MODE="777"] to the end of the above line in your 50-udev-default.rules file (without the brackets but don't forget to add the preceding coma). It should look something like this:
  • KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="777"
  • After changing this file and saving, reboot your computer. The ttyS* ports will grant rwx permission to any user.

For Ubuntu - edit with su rights /etc/udev/rules.d/40-permissions.rules

Add this line: KERNEL=="ttyS[0-9]", GROUP="dialout", MODE="0777"

Then restart udev: sudo /etc/init.d/udev restart

  • Important: If you have a udev enabled Linux distribution and you do not make the above noted changes to your 50-udev-default.rules file, then every time you reboot your computer, the permissions on the ttyS* ports will revert back to root only access. This is because udev dynamically updates the /dev directory upon booting. All permissions granted during your previous session will be lost and Weather Display will not function properly. This solution is known to work properly with OpenSUSE 10.2.

How to start and use Weather Display Linux for the first time:

  • Once again open a terminal open in your wdisplay directory (if you aren't still there from the above step ;-D) and enter
   sudo ./weatherdisplay
  • Now a window will open and load Weather Display Linux and ask you for your language.
  • Now select from the top menu, setup, control panel. This will cause another window to appear.
  • Now select comport setup, and select the correct comport for your station and select ok when done.
  • Now in the control panel window select units/other settings and choose your units you wish to use. Select ok when done.
  • Now in the control panel window select weather station type and choose your particular station. Select ok when done.

Congratulations!! You are now ready to run normally. Just as in the windows version there are many options, and they operate in the same way. For more help visit the Weather Display Manual

System Requirements

The following are known requirements and a variety of Linux distributions that Weather Display Linux is known to run on. However, this doesn't mean that it won't work on any untested systems(OpenBSD, FreeBSD, NetBSD, Solaris, etc...)

  • X windows running
  • Supported Weather Station(all supported in the windows version http://www.weather-display.com/supported.php except Dallas One Wire should work.)
  • at least 30 mb of RAM
  • 50 mb of hardrive space for system files, more for log files(about 150mb for every year of data).
  • Log files, datafiles, and webfiles from the windows version can be copied and pasted into the Weather Display Linux and used as normal.
  • Known (tried!) Working Distributions: Debian, Fedora, Mandriva, Slackware, Suse


Platform Specific Information


Debian Lenny

Running as user rather than root in Debian Lenny:

Debian Lenny uses UDEV for USB devices. You need to modify two files in /etc/udev/rules.d in order to run as a user rather than root.

/etc/udev/rules.d/50-udev.rules

Change:

# usbfs-like devices
 SUBSYSTEM=="usb_device", ACTION=="add|change", \
 	PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add|change", \
 				NAME="$result"
 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",	NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"

To:

 # usbfs-like devices
  SUBSYSTEM=="usb_device", ACTION=="add|change", \
  	PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add|change", \
  				NAME="$result", MODE="0666"
  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",	NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"

/etc/udev/rules.d/91-permissions.rules

Change:

# usbfs-like devices
 SUBSYSTEM=="usb_device",	MODE="0664"
 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
 				MODE="0664"

To:

# usbfs-like devices
 SUBSYSTEM=="usb_device",	MODE="0666"
 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
 				MODE="0666"

Device Specific Information

Using the OS WMR200 with WD Linux