Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including thermopi with all npm packages installed. Try it out:

var thermopi = require("thermopi")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

thermopi v0.0.4

nano-server for temperature readings on a raspberry pi

Purpose

The purpose of this node module is to provide web UI for a DS18B20 device available via W1 GPIO. Popilar applications are using the Raspberry Pi computer. Examples:

http://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/ http://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware http://raspbrew.tumblr.com/

Install

ThermoPi requires CoachDb to be installed and available on port 5984. Afterwards just run

npm install thermopi

Usage

The module supports mocking in the absence of a connected W1 thermometer. You can launch the module from node directly:

node index.js

Or you can execute the provided binary

./bin/thermopi -p 3000; # Connect to port 3000, see -h for more options

Direct your browser to the the desired port

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free