\n": $out="\tstyle=\"display:none;float:left;height:100%;width:100%\">\n"; print $out; include($includesDir."/".$item.".txt"); print "\n\n"; } unset($inputArray,$item); ?>

One-Wire-On-Fire: BETA VERSION 1.0.0.b

Source code collaboration: https://github.com/lancemiller/One-Wire-On-Fire

Copyright (C) 2011 : Lance Miller this.is.lance.miller@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
[click to see complete copy of license document]

One-Wire-On-Fire is a web and command line based user interface to 1Wire devices. Written in PHP/Python/HTML/Javacript for use on any device that runs a Unix/Linux variant with Python and serves PHP web pages. See ABOUT page for license restrictions (free use and sharing with attribution to author) and all source code is viewable in your browser.

One-Wire-On-Fire accesses an ACII interface to 1Wire devices. This means One-Wire-On-Fire accesses a plain old directory file structure with a typical line looking like this: /mnt/1wire/22.20F21A000000/temperature/38.075, reading these device/parameter values, and in some cases setting an ON/OFF circuit by writing an 0 or 1 are all that this software does to events out there on system bus. The power and function of One-Wire-On-Fire comes in being able to name the devices a human-friendly name, write simple programs[1] and run/stop those same stored programs, all within a web browser.

[1]example: while currentTime < runTime : if OutdoorA temp is less than 30: set FridgeB to OFF

Note on origin of One-Wire-On-Fire and Linux Automation Project

Note on the origin of One-Wire-on Fire: the Linux Automation Project custom made 1wire devices coupled with Linux, and coded in the Bash programming language. After several years of experiementing with 1wire, Linux based control, and posting to their site on linuxautomation.org, they asked Lance Miller to be the coder in late 2011 with a view to present at LinuxFest Nothrwest 2012.

1Wire Briefly Explained

  • Monitoring

    1-wire is great for low-cost monitoring of environmental conditions (temperature, light levels, humidity, moisture,...).  There are 3rd party devices that can measure more elaborate conditions (Thermocouples for extreme temperatures, ultraviolet, wind-speed, counters. Typical uses include computer case and server room monitoring, weather stations, soil conditions, aquarium and vehicle monitoring.

  • Control

    There are numerous 1-wire chips that have on-off switches (either 1,2,or 8 switches per chip). High current circuits can be built using relays. There is also 3rd party devices that have pulse-width modulation (PWM) counters and other controls, also under 1-wire supervision.

  • Instrumentation

    The battery monitoring chips have (besides temperature) current and voltage sensors in different ranges.

  • Limitations

    In fact, the biggest constraint is usually speed.  Fast process control and momentary contacts are difficult. Instead, 1-wire might be a good supervisory/monitoring/alarm system on top of process control. 

Click to 1Wire Wikipedia Entry