<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: JPachube &#8211; pachube thru Java in max</title>
		<atom:link href="http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 12:47:47 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-53568</guid>
					<title><![CDATA[JPachube &#8211; pachube thru Java in max]]></title>
					<link>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-53568</link>
					<pubDate>Mon, 29 Nov 2010 20:06:23 +0000</pubDate>
					<dc:creator>ygreq</dc:creator>

					<description>
						<![CDATA[
						<p>Hi everyone,</p>
<p>I don&#8217;t have a clue about java, generally. But I found this tutorial about using JPachube . <a href="http://code.google.com/p/jpachube/wiki/BasicJPachubeTutorial" rel="nofollow">http://code.google.com/p/jpachube/wiki/BasicJPachubeTutorial</a></p>
<p>Do you know how I can put this into max?</p>
<p>Anyone willing to give a hand?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-192642</guid>
					<title><![CDATA[Re: JPachube &#8211; pachube thru Java in max]]></title>
					<link>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-192642</link>
					<pubDate>Wed, 01 Dec 2010 12:59:25 +0000</pubDate>
					<dc:creator>Guillaume Evrard</dc:creator>

					<description>
						<![CDATA[
						<p>hi,</p>
<p>i&#8217;ve just give a try, it works&#8230; here is a simple java class that allows you to get some data from pachube.</p>
<p>g</p>
<p>import Pachube.Feed;<br />
import Pachube.Pachube;<br />
import com.cycling74.max.MaxObject;<br />
import java.io.BufferedReader;<br />
import java.io.InputStreamReader;<br />
import java.net.URL;<br />
import java.net.URLConnection;</p>
<p>/**<br />
 *<br />
 * @author ge<br />
 */<br />
public class DataStream extends MaxObject {</p>
<p>    private String StreamID = &#8220;&#8221;;<br />
    private int dsid = 0;<br />
    Pachube p;<br />
    Feed f;</p>
<p>    public DataStream(String id, int dsid) {<br />
        this.StreamID = id;<br />
        this.dsid = dsid;<br />
        p = new Pachube(&#8220;your_api_key&#8221;);<br />
        f = new Feed(p);<br />
        f.setId(id);<br />
    }</p>
<p>    public void bang() {<br />
        String s = new String(p.getDatastream(f.getId(), this.dsid).getBody().getBytes());<br />
        outlet(0, s);</p>
<p>    }</p>
<p>    public void setFeedId(String s) {<br />
        this.StreamID = s;<br />
        this.f.setId(s);<br />
    }</p>
<p>    public void setDataStreamId(int i) {<br />
        this.dsid = i;<br />
    }</p>
<p>    public void getFeeds() {</p>
<p>        try {<br />
            URL feedsurl = new URL(&#8220;<a href="http://api.pachube.com/v2/feeds.xml?key=your_api_key&#038;#8221" rel="nofollow">http://api.pachube.com/v2/feeds.xml?key=your_api_key&#038;#8221</a>;);<br />
            URLConnection yc = feedsurl.openConnection();<br />
            BufferedReader in = new BufferedReader(<br />
                    new InputStreamReader(<br />
                    yc.getInputStream()));<br />
            String inputLine;</p>
<p>            while ((inputLine = in.readLine()) != null) {<br />
                outlet(0, inputLine.toString());<br />
            }<br />
            in.close();<br />
        } catch (Exception e) {<br />
        }</p>
<p>    }<br />
}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-192643</guid>
					<title><![CDATA[Re: JPachube &#8211; pachube thru Java in max]]></title>
					<link>http://cycling74.com/forums/topic/jpachube-pachube-thru-java-in-max/#post-192643</link>
					<pubDate>Fri, 17 Feb 2012 23:11:38 +0000</pubDate>
					<dc:creator>ygreq</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Guillaume!</p>
<p>I just read your message. I had a solution to help me update info on pachube, but that doesn&#8217;t seem to work that well.</p>
<p>Can you please tell me how I can integrate what you posted? And maybe change it so it updates a feed instead of reading it?</p>
<p>Thank you so much,<br />
ygreq</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

