Difference between revisions of "Software: Overview"

From HiveTool
Jump to: navigation, search
(Created page with "This project uses free open source software (FOSS). The operating system is Linux, which usually includes Apache Web Server and Perl. The graphs are generated with the Perl mo...")
 
Line 1: Line 1:
 
This project uses free open source software (FOSS). The operating system is Linux, which usually includes Apache Web Server and Perl. The graphs are generated with the Perl module GD::Graph.  
 
This project uses free open source software (FOSS). The operating system is Linux, which usually includes Apache Web Server and Perl. The graphs are generated with the Perl module GD::Graph.  
  
==Linux Distributions ==
+
== Linux Distributions ==
 
Linux distros that have been tested are:  
 
Linux distros that have been tested are:  
 
#Debian Wheezy
 
#Debian Wheezy
 
#Lubuntu (lightweight Ubuntu)  
 
#Lubuntu (lightweight Ubuntu)  
 
#Slackware 13.0
 
#Slackware 13.0
 +
 +
== Reading the Sensors ==
 +
===Scale===
 +
 +
Talking to the scale is straight forward. Usually send a short character string to the scale and listen for a reply. For the Adam Equipment:
 +
echo "G\r\n" > /dev/ttyS0
 +
read -t 1 SCALE < /dev/ttyS0
 +
 +
To use the Cisco Linksys WRT160NL wireless router to talk to the My Weigh HD300 scale, first detach a process that sleeps for a second and sends a carriage return. Then read the data. The detached bit sleeps for a second, allowing the read to get latched onto the serial port, and then sends the command, which promptly returns data.
 +
'sleep 1;echo -e "\r" > /dev/ttyUSB0' & 
 +
read -t 3 SCALE /dev/ttyUSB0. 
 +
 +
=== Temperature Sensors ===
 +
 +
== Logging the Data ==
 +
 +
== Graphing the Data ==
 +
=== GD::Graph ===
 +
 +
== Displaying the Data ==
 +
=== Apache Web Server ===
 +
=== IceCast ===
 +
=== ffserver ===

Revision as of 18:52, 20 December 2013

This project uses free open source software (FOSS). The operating system is Linux, which usually includes Apache Web Server and Perl. The graphs are generated with the Perl module GD::Graph.

Linux Distributions

Linux distros that have been tested are:

  1. Debian Wheezy
  2. Lubuntu (lightweight Ubuntu)
  3. Slackware 13.0

Reading the Sensors

Scale

Talking to the scale is straight forward. Usually send a short character string to the scale and listen for a reply. For the Adam Equipment: echo "G\r\n" > /dev/ttyS0 read -t 1 SCALE < /dev/ttyS0

To use the Cisco Linksys WRT160NL wireless router to talk to the My Weigh HD300 scale, first detach a process that sleeps for a second and sends a carriage return. Then read the data. The detached bit sleeps for a second, allowing the read to get latched onto the serial port, and then sends the command, which promptly returns data. 'sleep 1;echo -e "\r" > /dev/ttyUSB0' & read -t 3 SCALE /dev/ttyUSB0.

Temperature Sensors

Logging the Data

Graphing the Data

GD::Graph

Displaying the Data

Apache Web Server

IceCast

ffserver