<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:DE;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:DE;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:windowtext'>Dear David,<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>thank you for your quick response!<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>I was hoping to find a solution without writing my own type or collecting data, but already thought that it would be complicated.<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>The only problem is, that the data we collect is also depending on the output of the simulation, so it‘s a loop of data and therefore the collection time can not be too long.<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>But I will try and write my own type or modify Type9 in order to create the inputs i need.<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Thank you for your help!<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Best Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>David<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='color:windowtext;mso-fareast-language:DE'>Von:</span></b><span style='color:windowtext;mso-fareast-language:DE'> David BRADLEY <d.bradley@tess-inc.com> <br><b>Gesendet:</b> Donnerstag, 24. Februar 2022 16:26<br><b>An:</b> TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org><br><b>Cc:</b> David Sengl <david.sengl@technikum-wien.at><br><b>Betreff:</b> Re: [TRNSYS-users] Using real-Time Weather data<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>David,<span style='mso-fareast-language:DE'><o:p></o:p></span></p><p>  What you are proposing is quite feasible. Trnsys certainly does not require that weather data be provided hourly. If you had a file containing minute data then you could read it in using Type9. Your case is a bit different of course and I think you'd need to write a component to collect the incoming data and then just put it into a data structure that would be passed as outputs of your Type. You might also need to add some code to your Type so that when called it sits and waits until it gets more data from its incoming source. Last fall I had to do something similar. In my case some data was coming in from another software tool. I had to wait until that data was completely written into a file before I could read it all in and set it as outputs. Transferring data by files is slow and clumsy; there are far more efficient ways of doing it. In our case we opted for "easy to understand" over "efficient" because it was just a proof of concept.<o:p></o:p></p><p>kind regards,<o:p></o:p></p><p> David<o:p></o:p></p><p><o:p> </o:p></p><div><p class=MsoNormal>On 02/23/2022 07:42, David Sengl via TRNSYS-users wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Dear TRNSys-Users,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=DE-AT>for my project i receive data via a MQTT-connection in order to simulate a building. This data-connection also includes real-time weather data from a sensor which should be used to compare the simulation with the real building. Is it possible to read the real-time data directly into a weather-data without creating a file? Type 15 and 99 require a file. As the data is collected every Minute it would be great to also simulate each timestep and not to wait for 60 minutes, create a file and then simulate with the given file.</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks in advance!<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal>David<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>TRNSYS-users mailing list<o:p></o:p></pre><pre><a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a><o:p></o:p></pre><pre><a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><o:p></o:p></pre></blockquote><pre>-- <o:p></o:p></pre><pre>***************************<o:p></o:p></pre><pre>David BRADLEY<o:p></o:p></pre><pre>Principal<o:p></o:p></pre><pre>Thermal Energy System Specialists, LLC<o:p></o:p></pre><pre>3 North Pinckney Street - suite 202<o:p></o:p></pre><pre>Madison, WI  53703 USA<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>P:+1.608.274.2577<o:p></o:p></pre><pre><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><a href="http://www.tess-inc.com">http://www.tess-inc.com</a><o:p></o:p></pre><pre><a href="http://www.trnsys.com">http://www.trnsys.com</a><o:p></o:p></pre></div></body></html>