如果找到了对您有用的资料,烦请点击右手边的Google广告支持我继续共享知识,谢谢! http://dengpeng.spaces.live.com/

2009年9月22日星期二

Pachube Java Tutorial

Pachube is a webapp aggragate sensor data around the world. The tutorials given on this site is not well written I think. So, I decide to try it out and blog this simple example. Hope it will be helpfull to you.

Pachube + Java depend Libraries:
1. EEML: http://www.eeml.org/library/eeml.zip
2. Processing: http://processing.org/download/

This is a manual (casual) update example source code. remember to call the setup() before draw():

import eeml.*;
import processing.core.PApplet;

/**
*
* @author pdeng
*/

public class HelloPachube {

DataOut dOut;

void setup() {

PApplet p = new PApplet();
dOut = new DataOut(p, "YOUR_FEED_URL", "YOUR_API_KEY");

// and add and tag a datastream
dOut.addData(0, "temperature");
}

void draw() {
System.out.println("ready to POST: ");
dOut.update(0, 22.5f); // update the datastream
int response = dOut.updatePachube(); // updatePachube() updates by an authenticated PUT HTTP request
System.out.println(response);
}
}

21 条评论:

匿名 说...

buy viagra in canada cialis super viagra cheapest viagra in uk viagra rrp australia viagra professional female use of viagra viagra for sale without a prescription Buy Viagra Online No Prescription buy viagra australian viagra england buy viagra in england viagra price comparison buy cheap viagra soft viagra by mail

匿名 说...

I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

Sorry for offtopic

匿名 说...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

匿名 说...

Здравствуйте дорогие участники pauldeng.blogspot.com!
Я смею предложить вам [url=http://super-jeeps.ru/node?page=5 ]любопытные переводные тексты[/url] для Вас!
Здесь много страниц, большой обзор ресурсов и т.п.
Посмотрите - ведь для вас старались переводить тысячи статей!

匿名 说...

Hi, looking for [url=http://netsuite-consulting.blogspot.com]Netsuite Consultant[/url] here!

匿名 说...

[url=http://sapresodas.net/][img]http://sapresodas.net/img-add/euro2.jpg[/img][/url]
[b]sell software source, [url=http://sapresodas.net/]download kaspersky anti kaspersky[/url]
[url=http://sapresodas.net/]filemaker pro 10 windows torrent[/url] it safe to buy software price book software
buy cracked software [url=http://sapresodas.net/]windows xp professional[/url] sell my software on
[url=http://sapresodas.net/]Adobe Acrobat 9[/url] adobe cs4 photoshop
[url=http://sapresodas.net/]discount microsoft office software[/url] to buy student software
software reseller agreement [url=http://vioperdosas.net/]kaspersky updates[/url][/b]

免費貼圖空間 说...

080小高聊天室 -
色情影音城 -
AV影片圖貼無碼 -
AV女優成人貼圖區 -
台灣做愛自拍 -
流行音樂試聽 -
網際免費資源論壇 -
數位相機比價王 -
情色短片論壇 -
性愛貼片區 -
台灣十八情色網 -
波波成人遊戲區 -
愛情文藝小說 -
A漫畫貼圖區 -
同志情色文章 -
檸檬女郎電影圖貼 -
台灣Kiss美女寫真集 -
免費下載成人卡通動畫 -
洪爺的家情色網 -
真愛影音聊天室 -
淫娃免費視訊聊天室 -
手機鈴聲下載 -
0204卡通電影 -
0204貼圖區 -
TT1069同志交友網 -
免費成人片觀看 -
173LiveShow視訊美女 -
性感美女照片 -
免費成人圖片 -
百分百成人貼圖片區 -
上班族聊天室F1 -
免費色情短片試看 -
絲襪美腿寫真 -
自拍色情網 -
自拍裸體圖片 -
曼雪兒情色文學 -
台灣丁字褲辣妹自拍 -
閃亮天使視訊聊天室 -
線上免費情色漫畫 -
免費情色貼片區 -

匿名 说...

I just found the website who reviews about
Several
home business reviews

If you want to know more here it is
home based business reviews
www.home-businessreviews.com

匿名 说...

dating by school girls [url=http://loveepicentre.com/]dating site for sale[/url] free equestrian dating sites http://loveepicentre.com/ singles travel tours

匿名 说...

heart endeavor wikipedia [url=http://usadrugstoretoday.com/catalogue/x.htm]medications without a prescription[/url] using photoshop enhancement tools tutorials http://usadrugstoretoday.com/products/brand-cialis.htm aids and the immune system http://usadrugstoretoday.com/products/vitamin-a-and-d.htm
big penis sizs [url=http://usadrugstoretoday.com/products/methotrexate.htm]methotrexate[/url] striated muscle [url=http://usadrugstoretoday.com/products/cipro.htm]vaginal thrush cjatgroups[/url]

匿名 说...

feint heart never won fair lady meaning [url=http://usadrugstoretoday.com/products/allopurinol.htm]allopurinol[/url] united dental group http://usadrugstoretoday.com/products/topamax.htm improving oral health in texas border communities http://usadrugstoretoday.com/products/septilin.htm
antibiotics beginning of antibiotic soil and dirt [url=http://usadrugstoretoday.com/products/glucophage.htm]glucophage[/url] safe diet pill for diabetic [url=http://usadrugstoretoday.com/products/finpecia.htm]lgbt people in medicine philadelphia pa[/url]

匿名 说...

mixing formula and breast milk [url=http://usadrugstoretoday.com/categories/gum.htm]gum[/url] prostate cancer and back pain http://usadrugstoretoday.com/products/aceon.htm mri one medical http://usadrugstoretoday.com/categories/huesos-sanos.htm
health department in durham nc [url=http://usadrugstoretoday.com/categories/men-s-health.htm]men s health[/url] colorado drug charges herion [url=http://usadrugstoretoday.com/index.php?lng=en&cv=us]ft worth tooth whitening[/url]

匿名 说...

penis enhancement pill [url=http://usadrugstoretoday.com/products/innopran-xl.htm]innopran xl[/url] symptoms of stress related non cardiac pain http://usadrugstoretoday.com/products/viagra-soft-tabs.htm chevy brakes trouble shoot http://usadrugstoretoday.com/categories/antibiotiques.htm
highmark blueshield health insurance individual [url=http://usadrugstoretoday.com/products/kamagra.htm]kamagra[/url] spartanburg regional medical center sc [url=http://usadrugstoretoday.com/products/differin.htm]how to forge a pill from powder[/url]

匿名 说...

http://online-health.in/avapro/avapro-work
[url=http://online-health.in/angina]invitro induction of drug resistance[/url] perkins drug [url=http://online-health.in/antabuse/antabuse-foods-to-avoid]antabuse foods to avoid[/url]
cialis generic identify http://online-health.in/astelin/astelin-versus-flonase
[url=http://online-health.in/aristocort/aristocort-hydrocorticone-cream]low price cialis[/url] drugs stops in the us [url=http://online-health.in/baclofen/how-does-baclofen-work]how does baclofen work[/url]
cancer fighting drugs attack cancer cells http://online-health.in/avalide/avalide-side-effects-sexual-dysfunction
[url=http://online-health.in/azathioprine/prometheus-azathioprine]how to make synthetic cocaine like drugs[/url] drugs for anxiety and stress [url=http://online-health.in/atrovent/two-inhalations-for-atrovent]two inhalations for atrovent[/url] australia drug elbows and ounces [url=http://online-health.in/aspirin/arthrin-canine-aspirin]arthrin canine aspirin[/url]

匿名 说...

grand thef auto vice city stories cheats http://autoexpress.in/scion/scion/dk francesca dodge
[url=http://autoexpress.in/mazda/mazda/rouge]dodge twin falls[/url] mercedes 420 manual [url=http://autoexpress.in/saleen/saleen/s281]saleen s281[/url]
commercial auto policy http://autoexpress.in/maybach/maybach/website
[url=http://autoexpress.in/scooters/viaggio/scooters/reviews]mercedes hearse manufactures[/url] infiniti automobile warrenty [url=http://autoexpress.in/maybach/used/maybach/for/sale]used maybach for sale[/url]
auto sun roof http://autoexpress.in/rover/image/mars/rover/spirit
[url=http://autoexpress.in/pontiac/yates/buick/pontiac/gmc]auto body heat lamp[/url] logiciel de gestion de parc automobile [url=http://autoexpress.in/rover/rover/75/owners/club]rover 75 owners club[/url]

匿名 说...

automobile undercoation http://latestcarnews.in/saturn/saturn-sky-htm mercedes caputo
[url=http://latestcarnews.in/victory/victory-park-dallas-texas]berlin phillips automobile[/url] jordan auto enterprises incorporated [url=http://latestcarnews.in/victory/k-state-victory-shirt]k state victory shirt[/url]
compare insurance automobile http://latestcarnews.in/plymouth/negative-cable-replacement-97-plymouth-grand-voyager
[url=http://latestcarnews.in/scooters/kymco-scooters-discount-direct]jordan automobile[/url] auto custom cincinnati [url=http://latestcarnews.in/smart/home-smart-panel]home smart panel[/url]
mercedes e 85 fuel http://latestcarnews.in/victory
[url=http://latestcarnews.in/saab/how-fast-is-the-2008-saab]ashley mercedes face sitting[/url] toyota automobile [url=http://latestcarnews.in/subaru/subaru-tribeca-opinions]subaru tribeca opinions[/url]

匿名 说...

porn films adults http://theporncollection.in/gay-sex/gay-loutraki
[url=http://theporncollection.in/orgy/gay-strait-orgy]men dildo fucked[/url] amateur straight naked photo shoot [url=http://theporncollection.in/hentai-sex/dream-and-reality-hentai]dream and reality hentai[/url]
bbw sexy movies http://theporncollection.in/gay-xxx/is-kiefer-sutherland-gay
[url=http://theporncollection.in/free-hentai/free-hentai-little-girls]free young amateur nude photos[/url] forced teen anal [url=http://theporncollection.in/orgasm/check-by-phone-orgasm-denial]check by phone orgasm denial[/url]
double ended dildo movie http://theporncollection.in/mature-woman/mature-women-and-young-girls-sex-videos
[url=http://theporncollection.in/sex-mature/mature-woman-tiana-rose]ps3 adult theme[/url] adult pee masturbate [url=http://theporncollection.in/gay-male/film-gay-italiano-italian-house-youporn]film gay italiano italian house youporn[/url]
blu ray porn dvd http://theporncollection.in/lesbian-sex/lesbian-sex-game
[url=http://theporncollection.in/hentai-sex/streaming-hentai-vids]anal babes[/url] brutal dildo vids [url=http://theporncollection.in/gay-video/gay-marry-straight]gay marry straight[/url]

匿名 说...

scotsman in mobile http://www.orderphonetoday.com/v56-quad-band-dual-card-with-wifi-analog-tv--item5.html slingo quest on mobile phone [url=http://www.orderphonetoday.com/quad-band-phones-category1.html]mobile camera sex videos[/url] t mobile group voice messages

匿名 说...

spank adult http://xwe.in/blow/lean-on-me-lyrics-hooty-and-the-blow-fish
[url=http://xwe.in/oral/anal-versus-oral-temperature]doc johnson wireless anal toys[/url] adult wii games cheats [url=http://xwe.in/oral/forma-de-evaluar-en-la-expresion-oral]forma de evaluar en la expresion oral[/url]
why would anyone have anal sex http://xwe.in/condom/smallest-fit-condoms
[url=http://xwe.in/erotic-stories/artistic-erotic-photographs]university virgin islands[/url] amateur white mature black cock [url=http://xwe.in/bbw/bbw-mandy]bbw mandy[/url]
electric lubricant sprayers http://xwe.in/gay-boy/gay-latino-hunks
[url=http://xwe.in/teen-ass/what-is-ass-to-mouth]free games biz hentai[/url] femdom thong cage story anal [url=http://xwe.in/teen-ass/biggest-nude-ass]biggest nude ass[/url]
teens first anal previews http://xwe.in/teen-ass/free-hot-ass
[url=http://xwe.in/erotic-gay/erotic-ebony-photos]adult games downloads free[/url] adult toys and novelity [url=http://xwe.in/hcg-oral/oral-b-precision-clean-bursh-heads]oral b precision clean bursh heads[/url]

匿名 说...

lake wales medical center [url=http://usadrugstoretoday.com/products/chloramphenicol.htm]chloramphenicol[/url] claritin vs zyrtec http://usadrugstoretoday.com/products/sarafem.htm
metrogel myonlinemeds biz retin stimula zyrtec [url=http://usadrugstoretoday.com/products/pilocarpine.htm]pilocarpine[/url] urinary tract infection cat [url=http://usadrugstoretoday.com/products/cytoxan.htm ]tennessee medical license [/url] chicken egg infection
free penis health natural exercises [url=http://usadrugstoretoday.com/products/pepcid.htm]pepcid[/url] whats the best acne medicine http://usadrugstoretoday.com/products/proscar.htm
traditionathai medicine [url=http://usadrugstoretoday.com/categories/hypnotherapie.htm]hypnotherapie[/url] muscle car calendars [url=http://usadrugstoretoday.com/products/actonel.htm ]nursing diagnosis related to urinary tract infection [/url] blood types body types and you

匿名 说...

clothes dryer clean http://luxefashion.us/grey-jeans-cut-pants-color1.html fashion model forums [url=http://luxefashion.us/beige-accessories-color5.html]born shoes paddock[/url] gucci only
http://luxefashion.us/white-pink-blue-yellow-dress-shirts-color107.html bananashoes [url=http://luxefashion.us/bordo-outwear-color140.html]clinic nursing shoes[/url]