Skip to content

Installation

Ronen Lapushner edited this page Mar 24, 2017 · 20 revisions

Compilation and Installation Instructions

Installing

Debian binary packages are available since version 1.1.1. Head over to the Releases page to download them!

Compiling From Source

  1. Several development libraries must be installed in order to successfully compile rpiweatherd.

Note: User used here must be a sudoer. In Raspbian, for example, the pi user is a sudoer by default.

Distribution Name Command to Install
Raspbian/Ubuntu $ sudo apt-get install cmake python3 gcc make git libsqlite3-dev wiringpi
Arch Linux ARM $ sudo pacman -S cmake python gcc git make sqlite wiringpi lsb-release
  1. Clone the repository.
    $ git clone https://github.com/ronen25/rpiweatherd
  1. Create a bin directory, switch to it, and initiate compilation using CMake.
    $ cd rpiweatherd
    $ mkdir bin && cd bin
    $ cmake -DCMAKE_BUILD_TYPE=RELEASE ..
    $ make
  1. Finally, install the daemon:
    $ sudo make install
  1. Configure rpiweatherd according to the configuration guide.

  2. Run the program using the appropriate init tool, either as root or with sudo:

Distribution Name Command
Raspbian <= 7/Ubuntu # service start rpiweatherd
Arch Linux ARM/Raspbian >= 8 # systemctl enable rpiweatherd

For more detailed information see Running the Daemon page.

NOTE: The administration script and the CLI client will not be installed! This is intended behavior.