Configure Hivetool

From HiveTool
Jump to: navigation, search

Hivetool configuration data is stored in one or two places:

  1. /home/hivetool/hive.conf text configuration file
  2. HIVE_PARAMETERS table in hivetool_raw database (if SQLite or MySQL is running).

hive.conf

Basic information is stored in hive.conf. On a minimal system, it can be edited with a text editor. It consists of name=value pairs.

HIVE_NAME=XP003
HIVE_CITY=Asheville
HIVE_STATE=North Carolina
HIVE_COUNTRY=USA
HIVE_ELEVATION=2700
HIVE_ORIENTATION=
WX_STATION_ID=KNCCANDL1
WX_NAME=Enka, Candler, NC
WIFI_SSID=
WIFI_PASSWORD=
DATABASE_USER=
DATABASE_PASSWORD=
HIVETOOL_USER=
HIVETOOL_PASSWORD=
HIVE_WEIGHT_SENSOR=none
HIVE_WEIGHT_DEV=
HIVE_WEIGHT_SLOPE=60000
HIVE_WEIGHT_INTERCEPT=55568
HIVE_TEMP_SENSOR=TEMPerHUM
HIVE_TEMP_DEV=/dev/hidraw1
HIVE_TEMP_SLOPE=1
HIVE_TEMP_INTERCEPT=0
AMBIENT_TEMP_SENSOR=TEMPerHUM
AMBIENT_TEMP_DEV=/dev/hidraw5
AMBIENT_TEMP_SLOPE=1
AMBIENT_TEMP_INTERCEPT=0

config.pl

If a webserver is running, config.pl can be used to set variables in both the config file and the database.

  • If the hive is connected to a network, the configuration page is accessed by pointing a web browser to a URL something like this: http://192.168.0.1/config.pl, where 192.168.0.1 is replaced by the IP address of the hive computer.
  • If xwindows is running on the hive computer and there is a monitor connected, the configuration page is accessed by pointing a web browser on the hive computer to: http://localhost/config.pl
Error creating thumbnail: Unable to save thumbnail to destination
Hivetool Configuration Screen

The configuration screen has five ares:

  1. Location
  2. Weather Station
  3. Communication
  4. Sensors
  5. Hive Parameters

5. Hive Parameters

Hive_id must be a number. Status must be a number 4=testing, 5=Online