WS-1001 data direct to WD?

Hello Brian,

Ive moved here from my other thread.

I have read through this thread. Is it suggesting that I use the Ws 1001 wiwfi file raw data file from script ?
So I need to set up a local server and have the station send its data there so that the ws 1001 option reads it ?

Is this the only way ? I will have to look up how to do it as I’ve never ceated a local server before. I take it that wd at present
cannot directly query the ip address of the station ?

Thanks,

Michael

. I take it that wd at present cannot directly query the ip address of the station ?
we have not worked on to see if that will actually work we could certainly try that what happens when you put the IP address and port of the station into a normal browser window URL and hit return..i.e like 192.168.0.1:5000

Hi Brian,

If I type the ip address with the port number it doesn’t find it and reports an error. The ip address on its own, works.
I have just downloaded easyweather 3.0 and it looks like it should be able to read my data and store it, but it cannot find the device.

I hope there is a way, it would be great to receive the data as fast as the station reports.

Michael

if you can get the data returned to a web page URL via the IP address (+port ?) then we are in business
(as that is what a HTTP GET request will be able to do)
maybe someone else with more knowledge of how it all works can chime in?

Hello,

The ip address followed by /livedata.htm goes straight to the live data page, but not sure that helps as it does not mention the port.
The data is in the html file, but have no idea how to extract it from the whole page.

Michael

try this test program
http://www.weather-display.com/downloadfiles/Projecttestip.zip
and see what shows in the file testip.txt
after putting in the url to the livedata.htm and clicking on go

Hello Brian,

I had to put the whole address in, including http:// and /livedata.htm

The response was:

OK
OK

Thanks, Michael

what shows in the testip.txt file?

Hello Brian,

Apologies, here is the text, it looks like all the data values are there and also maybe a form and a js script ?
If you look at this, can you look at the possibility of retrieving the data faster than 16 seconds, as I believe the wind sensor updates faster :smiley:

LiveData
            <tr>
                <td colspan="2" bgcolor="#EDEFEF"><div class="subitem_1">Live Data</div></td>
            </tr>   
             <tr>
                <td width="533" bgcolor="#EDEFEF"><div class="item_1">Receiver Time:</div></td>
                <td width="307" bgcolor="#EDEFEF">
                <input name="CurrTime" disabled="disabled" type="text" class="item_2" style="WIDTH: 120px" value="22:33 07/13/2016" maxlength ="20"></td>
            </tr>
            <tr> 
                <td width="533" bgcolor="#EDEFEF"><div class="item_1">Indoor Battery Status</div></td>
                <td width="307" bgcolor="#EDEFEF">
                <select name="inBattSta" class="item_2" disabled="disabled"  style="WIDTH: 120px">
                        <option value="0" selected >Normal</option>
                        <option value="1"          >Indoor Bat Low</option>
                </select></td>
            </tr>  
            <tr> 
                <td width="533" bgcolor="#EDEFEF"><div class="item_1">Outdoor Battery Status</div></td>
                <td width="307" bgcolor="#EDEFEF">
                <select name="outBattSta" class="item_2" disabled="disabled"  style="WIDTH: 120px">
                        <option value="0" selected >Normal</option>
                        <option value="1"          >Outdoor Bat Low</option>
                </select></td>
            </tr>                 
            <tr>
                <td width="533" bgcolor="#EDEFEF"><div class="item_1">Indoor Sensor ID</div></td>
                <td width="307" bgcolor="#EDEFEF"><input name="IndoorID" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0xa8" maxlength="6"></td>
            </tr>
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Outdoor Sensor1 ID</div></td>
                <td bgcolor="#EDEFEF"><input name="Outdoor1ID" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0x13" maxlength="6"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Outdoor Sensor2 ID</div></td>
                <td bgcolor="#EDEFEF"><input name="Outdoor2ID" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0x--" maxlength="6"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Indoor Temperature</div></td>
                <td bgcolor="#EDEFEF"><input name="inTemp" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="15.5" maxlength="8"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Indoor Humidity</div></td>
                <td bgcolor="#EDEFEF"><input name="inHumi" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="69" maxlength="4"></td>
            </tr>
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Absolute Pressure </div></td>
                <td bgcolor="#EDEFEF"><input name="AbsPress" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="1017.40" maxlength="6"></td>
            </tr>	
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Relative Pressure </div></td>
                <td bgcolor="#EDEFEF"><input name="RelPress" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="1013.70" maxlength="6"></td>
            </tr>	
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Outdoor Temperature</div></td>
                <td bgcolor="#EDEFEF"><input name="outTemp" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="12.6" maxlength="8"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Outdoor Humidity </div></td>
                <td bgcolor="#EDEFEF"><input name="outHumi" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="84" maxlength="4"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Wind Direction </div></td>
                <td bgcolor="#EDEFEF"><input name="windir" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="304" maxlength="5"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Wind Speed </div></td>
                <td bgcolor="#EDEFEF"><input name="avgwind" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0.0" maxlength="6"></td>
            </tr>

            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Wind Gust </div></td>
                <td bgcolor="#EDEFEF"><input name="gustspeed" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0.0" maxlength="6"></td>
            </tr>    
                 
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Solar Radiation </div></td>
                <td bgcolor="#EDEFEF"><input name="solarrad" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="12"></td>
            </tr>
            
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">UV </div></td>
                <td bgcolor="#EDEFEF"><input name="uv" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="1" maxlength="12"></td>
            </tr>
            
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">UVI </div></td>
                <td bgcolor="#EDEFEF"><input name="uvi" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0" maxlength="4"></td>
            </tr>
            
            <tr>
                <td bgcolor="#EDEFEF"><div class="item_1">Hourly Rain Rate</div></td>
                <td bgcolor="#EDEFEF"><input name="rainofhourly" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="8"></td>
            </tr>

			<form name="Rain_1" method="POST" onsubmit="return chkForm(0);">  
                <tr>
                    <td bgcolor="#EDEFEF"><div class="item_1">Daily Rain</div></td>
                    <td bgcolor="#EDEFEF"><input name="rainofdaily"  type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="8">
                    <span id="rainofdaily_msg" class="errMsg0"></span></td>
                </tr>

                <tr>
                    <td bgcolor="#EDEFEF"><div class="item_1">Weekly Rain</div></td>
                    <td bgcolor="#EDEFEF"><input name="rainofweekly" type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="8">
                     <span id="rainofweekly_msg" class="errMsg0"></span></td>
                </tr>

                <tr>
                    <td bgcolor="#EDEFEF"><div class="item_1">Monthly Rain</div></td>
                    <td bgcolor="#EDEFEF"><input name="rainofmonthly" type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="8">
                     <span id="rainofmonthly_msg" class="errMsg0"></span></td>
                </tr>

                <tr>
                    <td bgcolor="#EDEFEF"><div class="item_1">Yearly Rain</div></td>
                    <td bgcolor="#EDEFEF"><input name="rainofyearly" type="text" class="item_2" style="WIDTH: 80px" value="0.00" maxlength="8">
                     <span id="rainofyearly_msg" class="errMsg0"></span></td>
                </tr>
            
                <tr>
                    <td colspan="2" bgcolor="#EDEFEF">&nbsp;</td>
                </tr>
                <tr align="center">
                    <td colspan="2" bgcolor="#EDEFEF"><input name="Apply" type="submit" class="item_2" style="WIDTH: 60px; HEIGHT: 24px;" onclick="setSubmitType(1)" value="Apply" />
                        <input name="Cancel" type="reset" class="item_2" style="WIDTH: 60px; HEIGHT: 24px;" value="Cancel" /></td>
                </tr>
        	</form>

            <tr>
                <td colspan="2" bgcolor="#EDEFEF">&nbsp;</td>  
            </tr>

            <tr>
                <td colspan="2" align="center" bgcolor="#EDEFEF"> 
                 	<input name="rain_Default" type="button" class="item_2" style="WIDTH: 110px; HEIGHT: 24px;" onclick="raindef()" value="Rain Reset">
                    <input id="refresh_st" type="button" class="item_4" style="WIDTH: 110px; HEIGHT: 24px;"  onclick="uiCtrl(this.value);" value="Refresh">
                    <input id="refresh_sp" type="button" class="item_2" style="WIDTH: 110px; HEIGHT: 24px;"  onclick="uiCtrl(this.value);" value="Stop Refresh">
                </td>
            </tr>
        </form>
        <tr>
            <td colspan="2" bgcolor="#EDEFEF">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" bgcolor="#C0C0C0">&nbsp;</td>
        </tr>
    </table>

	<script src="axjs0.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
        <!--
        var rfTaskRuningFlag = 0, rfTimeId;
        uiCtrl('Refresh');

		function uiCtrl(uiCmd)
		{
		    if (uiCmd=='Refresh'){
		        document.getElementById('refresh_st').disabled = true;
		        document.getElementById('refresh_sp').disabled = false;
		        rfTaskRuningFlag = 1;
		        rfTaskState = 0;
		        rfTimeId = setInterval("ss()",16000);
		    }else if (uiCmd=='Stop Refresh'){
		        document.getElementById('refresh_st').disabled = false;
		        document.getElementById('refresh_sp').disabled = true;
		        rfTaskRuningFlag = 0;
		        clearInterval(rfTimeId);
		    }
		}

		function ss()
		{
		    if (rfTaskRuningFlag)
		    {
		        window.top.location.reload();
		    }
		}
		//-->
	</script>
</body>

Michael

 
      Weather Logger 2.1
Version:2.1.9

this is good
this is what I hoped would get returned
I just need to parse out the data from that returned html /xml code (and yes update every 16 seconds) :wink:

Hello Brian,

Many thanks, wind updates appear to be as fast as 5 seconds, ive just been refreshing the live data page.

Michael

OK, making good progress
will let you know when you can download a new .zip update of WD, and set this up in WD, to get the data from e.g http://1.92.168.2.1/livedata.htm

OK, try a new .zip update
and set the IP as needed and tick to use that
in the weather station type setup, stationless setup, Ambient WIFI Pro setup (tick that, then set the IP address correct, then tick use direct from this IP address

Thank you so much Brian :smiley:

It works, aprox every 10-16 seconds. Its also reading the indoor temp and humidity which is great news as im mounting it outside at ground level
for ground level temp, especially in winter.

Only the solar needs tweaking / offset. Im not sure about the uvi, but that’s no biggy.

Now you can list the Aercus Weathersleuth pro as supported station, and maybe others based on same outdoor iss ? If you want I can email the retailer who sold me the station to say wd now supports it.

I can now build my home page with steel gauges and there will be a credit and link to weather display.

Thanks again, I’ve got everything I wanted and more from my pws now.

Michael

thats good
what is the difference between UV and UVI in the data?
I have used the UVI as the UV

Hi mickeyb and Brian,
I am in the process of setting up the Aercus ws-1001 clone.
What files do I need to put in the unit to access the livedata.php file.
And great work as usual, Brian.
Cheers
Philip

I think it works out of the box?
you just need to know what the IP address is
(first get the livedata.htm web page working in your browser)

hmmmmm!

There are two directories in the unit but nothing like a livedata.htm file anywhere.
Head scratch time.
Cheers

It’s probably dynamically created when you call the IP address

All I get is access denied when I go to
http://192.168.1.111.
With or without the http.
I wonder if things are different with my version. I have the WeatherRanger ver 2.3.1.