<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.waterwaysinwhittlesea.org/index.php?action=history&amp;feed=atom&amp;title=Dweepy_to_record_temperature_data</id>
	<title>Dweepy to record temperature data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.waterwaysinwhittlesea.org/index.php?action=history&amp;feed=atom&amp;title=Dweepy_to_record_temperature_data"/>
	<link rel="alternate" type="text/html" href="http://www.waterwaysinwhittlesea.org/index.php?title=Dweepy_to_record_temperature_data&amp;action=history"/>
	<updated>2026-09-28T20:01:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>http://www.waterwaysinwhittlesea.org/index.php?title=Dweepy_to_record_temperature_data&amp;diff=10119&amp;oldid=prev</id>
		<title>EdmondLascaris at 07:15, 24 February 2024</title>
		<link rel="alternate" type="text/html" href="http://www.waterwaysinwhittlesea.org/index.php?title=Dweepy_to_record_temperature_data&amp;diff=10119&amp;oldid=prev"/>
		<updated>2024-02-24T07:15:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:15, 24 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= Get Dweet using Browser =&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&quot;python&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://dweet.io/get/latest/dweet/for/MPPS-Tiny-House-11-bundoora?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Get all data =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Get all data =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>EdmondLascaris</name></author>
	</entry>
	<entry>
		<id>http://www.waterwaysinwhittlesea.org/index.php?title=Dweepy_to_record_temperature_data&amp;diff=10118&amp;oldid=prev</id>
		<title>EdmondLascaris: Created page with &quot;= Get all data =  &lt;syntaxhighlight lang=&quot;python&quot;&gt;  import dweepy  url = dweepy.get_latest_dweet_for('MPPS-Tiny-House-11-bundoora') print(url)  &lt;/syntaxhighlight&gt;  = Get temperature data =  &lt;syntaxhighlight lang=&quot;python&quot;&gt;  import dweepy  url = dweepy.get_latest_dweet_for('MPPS-Tiny-House-11-bundoora') print(url)  dict = url[0]  internalTemp = dict['content'][('intTemp')] print(f'The internal temperature is {internalTemp}')  externalTemp = dict['content'][('extTemp')] prin...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.waterwaysinwhittlesea.org/index.php?title=Dweepy_to_record_temperature_data&amp;diff=10118&amp;oldid=prev"/>
		<updated>2024-02-23T23:59:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Get all data =  &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;  import dweepy  url = dweepy.get_latest_dweet_for(&amp;#039;MPPS-Tiny-House-11-bundoora&amp;#039;) print(url)  &amp;lt;/syntaxhighlight&amp;gt;  = Get temperature data =  &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;  import dweepy  url = dweepy.get_latest_dweet_for(&amp;#039;MPPS-Tiny-House-11-bundoora&amp;#039;) print(url)  dict = url[0]  internalTemp = dict[&amp;#039;content&amp;#039;][(&amp;#039;intTemp&amp;#039;)] print(f&amp;#039;The internal temperature is {internalTemp}&amp;#039;)  externalTemp = dict[&amp;#039;content&amp;#039;][(&amp;#039;extTemp&amp;#039;)] prin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Get all data =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import dweepy&lt;br /&gt;
&lt;br /&gt;
url = dweepy.get_latest_dweet_for('MPPS-Tiny-House-11-bundoora')&lt;br /&gt;
print(url)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Get temperature data =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import dweepy&lt;br /&gt;
&lt;br /&gt;
url = dweepy.get_latest_dweet_for('MPPS-Tiny-House-11-bundoora')&lt;br /&gt;
print(url)&lt;br /&gt;
&lt;br /&gt;
dict = url[0]&lt;br /&gt;
&lt;br /&gt;
internalTemp = dict['content'][('intTemp')]&lt;br /&gt;
print(f'The internal temperature is {internalTemp}')&lt;br /&gt;
&lt;br /&gt;
externalTemp = dict['content'][('extTemp')]&lt;br /&gt;
print(f'The outside temperature is {externalTemp}')&lt;br /&gt;
&lt;br /&gt;
datetime = dict['content'][('date')]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Plot data =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import dweepy&lt;br /&gt;
import pandas as pd&lt;br /&gt;
import plotly.express as px&lt;br /&gt;
#https://github.com/paddycarey/dweepy - Reference&lt;br /&gt;
&lt;br /&gt;
url = dweepy.get_latest_dweet_for('MPPS-Tiny-House-11-bundoora')&lt;br /&gt;
print(url)&lt;br /&gt;
&lt;br /&gt;
dict = url[0]&lt;br /&gt;
&lt;br /&gt;
internalTemp = dict['content'][('intTemp')]&lt;br /&gt;
print(f'The internal temperature is {internalTemp}')&lt;br /&gt;
&lt;br /&gt;
externalTemp = dict['content'][('extTemp')]&lt;br /&gt;
print(f'The outside temperature is {externalTemp}')&lt;br /&gt;
&lt;br /&gt;
datetime = dict['content'][('date')]&lt;br /&gt;
&lt;br /&gt;
# Saving data&lt;br /&gt;
data = str(datetime) + &amp;quot;,&amp;quot; + str(internalTemp) + &amp;quot;,&amp;quot; + \&lt;br /&gt;
       str(externalTemp) + &amp;quot;\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
print(f'The data is =  {data}')&lt;br /&gt;
         &lt;br /&gt;
f = open('/home/pi/Tiny_House_11/tiny_house_11_data.txt','a')&lt;br /&gt;
f.write(data)&lt;br /&gt;
f.close()&lt;br /&gt;
print(&amp;quot;The data has been saved&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Step 2: Read the data from the text file into a Pandas DataFrame&lt;br /&gt;
data = pd.read_csv('/home/pi/Tiny_House_11/tiny_house_11_data.txt')&lt;br /&gt;
&lt;br /&gt;
# Step 3: Create a Plotly figure with two scatter plots&lt;br /&gt;
fig = px.scatter(data, x='datetime', y=['intTemp', 'extTemp'],&lt;br /&gt;
                 labels={'datetime': 'Date and Time', 'value': 'Temperature (°C)'},&lt;br /&gt;
                 title='Internal vs. External Temperature')&lt;br /&gt;
&lt;br /&gt;
# Step 4: Customize the plot layout&lt;br /&gt;
fig.update_layout(xaxis_title='Date and Time', yaxis_title='Temperature (°C)')&lt;br /&gt;
&lt;br /&gt;
# Step 5: Save the plot as an HTML file&lt;br /&gt;
fig.write_html('/home/pi/Tiny_House_11/temperature_plot_tiny_house_11.html')&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;Temperature 11 plot saved as temperature_plot.html&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>EdmondLascaris</name></author>
	</entry>
</feed>