gbak / stoker-web

Automatically exported from code.google.com/p/stoker-web
2 stars 1 forks source link

Overview

Stoker-web is a web application that allows the Stoker power draft system to be viewed and controlled from an external browser, this can be on the local network, wireless device or if properly setup from anywhere on the Internet. Stoker-web offers additional functionality over the Stokers own internal browser, these features include: temperature graphs, logging, PDF cook reports, email alerts, local weather information, added Security and more. Stoker-web is written Java so the server will run on most platforms that Java runs on. It has been tested on Windows and Linux. See Browser section below for client compatibility.

http://wiki.stoker-web.googlecode.com/git/sweb6.png

Sample with digit display

PDF Report Sample

Status

Status Update: Android client now available: https://play.google.com/store/apps/details?id=com.gbak.sweb.client.android.paid

Status Update: Beta 0.4.1 Released! 4/12/2013

Runnable Jar file version v1.0_0.4.1 also released

Status Update: Beta 0.4.0 Released! 12/10/2012

Status Update: Beta 0.3.0 Released! 9/10/2012

Status Update: Beta 0.2.1 Released! 3/08/2012

Status Update: Beta 0.2 Released! 2/10/2012

Status Update: Beta 0.1 Released! 1/22/2012

Please see Releases notes for details.

Android

Native android app will have two connection modes: stoker direct and stoker-web

Browsers

Stoker-web has been seen to work on the following Hardware / Browsers:

Not working:

Known Issues as of Beta 4

Known Compatibility Issues

Getting Started

Stokerweb is now released as either an easy to setup and run Java jar file or a classic war file. See the sections below.

Run Stokerweb Jar file

The runStokerweb.jar file can be executed from the command line of your favorite operating system. This one file has the stoker-web.war file and a Jetty server embedded within it. Running the jar file will first extract the necessary files allowing them to be edited for your specific machine and then run again to start stokerweb.

You must be using a version of Java 7 to use the jar file. Execute the jar file with this command:

java -jar runStokerweb.jar

A few files will be extracted. The files ending in .properties need to be edited.

Run the same command again to launch stokerweb.

java -jar runStokerweb.jar

War file distribution

Stoker-web is released as a .war file. This file should be deployed within the web application server of your choosing, Stoker-web has been tested with both Tomcat and Jetty. In addition to the deployed .war file, there is also a separate directory where the Stoker-web configuration and log files exist. This directory should be in a secure location and NOT be publicly accessible. This directory is accessed by the environment variable STOKERWEB_DIR.

Installation and configuration steps:

  1. Download and extract the latest available version.
  2. Create a directory in a secure location on the webserver called StokwerWebDir, or anything else you'd like it to be.
  3. Set the environment variable STOKERWEB_DIR to be the absolute path to the new folder above. Add this path to your profile or machine settings so it is set automatically after boot up.
  4. Copy the stokerweb.properties file into this new directory, assign the correct permissions
  5. Create an empty file called login.properties, assign the correct permissions
    
    # commands for *nix systems
    cd /opt
    mkdir StokerWebDir
    chown nobody:nogroup StokerWebDir
    export STOKERWEB_DIR=/opt/StokerWebDir
    cd StokerWebDir
    unzip stokerweb-release.zip
  1. Edit the stokerweb.properties file, change the IP, email and weather settings

Stoker settings, you should only have to set the IP address

stoker_ip=192.168.18.210

Mail settings

mail.sendTo=sendToEmail@address.com mail.password=password mail.smtp.user=email.user mail.smtp.host=smtp.gmail.com mail.smtp.port=465

Your local zip code to pull weather information.

weather_zipcode=30024

  1. Run the addUser.jar to create a login/password for Stoker-web

The STOKERWEB_DIR is required to be set so it can find the login.properties file

export STOKERWEB_DIR=/location/of/StokerWebDir java -jar addUser.jar


  1. Deploy the war file within your web application.  [Deploy Stoker-web on Windows](http://code.google.com/p/stoker-web/wiki/JettyDeploy)
  1. Start the web application server

## Compiling Stoker-web ##

It is recommended that you use the available releases from the download section, but if you'd like to try to compile it yourself, these are the basic steps.

[Compiling Stoker-web](http://code.google.com/p/stoker-web/wiki/CompilingStokerWeb)