Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Display a sensor value on a webpage
* Uses the Pachube PHP Library - download at http://community.pachube.com/tutorials/php
*/
require_once('pachube_functions.php');
// Obtain your API key here: http://www.pachube.com/users/my_username/settings
# WIP of http://wiki.processing.org/w/Ruby_Comparison
# Based on http://wiki.processing.org/w/Python_Comparison
# todo:
# - write intro paragraph on Ruby
# - add more examples
# - add a separate RubyProcessing_Comparison wiki entry for ruby-processing
# [http://wiki.github.com/jashkenas/ruby-processing/]
# Data
x = 70 # Initialize