WS-1001 data direct to WD?

Sent to your gmail…

Hi
I have your settings
as I suspected
at some stage you have set a 400hpa barometer offset
see the attached screen shot

go to control panel,offsets and initial rain
set the offset as 0 (enter that in the box), click on set, then click on OK


I can presume that was the problem and you have fixed it , going by your web site data
http://wsx.centratus.com/wsx
which has the barometer changing

Hi Brian,

Yeah - I pushed 10.37Sb09 and the zip update it to my prod WD late last night.

As you can see from the smoother graphs , the data is much more granular. I now have indoor temp and humidity data which I could not get from WU previously. Not sure where the web table is picking up the “(QNH 0.0 hPa” on the end of the “Barometer (corrected to MSL)” field - but not too worried about that. Also haven’t had any rain in days, so I cannot see how that is working yet but confident that should be OK.

Its great not having to rely on WU and my internet connection. If anyone is interested in using this import feature, I can point to where I got the information on how the WS1001 can be set to save data files it sends to WU. A web server is required to intercept the data however, and this has to be on your local network for WD to access the file.

Many thanks again for putting that import feature in :slight_smile:

Regards,

Ian.

would be good if you could post a link to the info about it all (ie how to change settings in the firmware on the weather station to send to a different IP address the WU data etc)
I wonder if there is a way I could get WD to hook into that HTTP GET data to the local IP address directly to pick up the data

re rain, we should get some showers in the area wednesday onwards…a more typical weather pattern for the time of year is coming

This link as been my primary source of information - http://www.wxforum.net/index.php?topic=28709.0

I have used the WU redirection methods weatherist34 has published above for the WS1001 to leverage the same file for import - all of the information can be found on the forum entry above. Many Thanks to the work DrSprite (initially) and ultimately weatherist34 have done on this! (Also luckily for me the WS1001 console is essentially a Windows CE PC, so working in IT for over 20 years this is something I am familiar with) :slight_smile:

On the subject of using HTTP GET commands I also see that there is a beta version of Easy WeatherIP :- https://ambientweather.wikispaces.com/ws1001-wifi which connects to the WS1001 via WiFi IP address and can get the data - I have tested this with the WS1001 (firmware ver 2.29)and can confirm this does indeed work so getting data out of this device directly is indeed possible, but details of if they use HTTP and/or how they do this is not published.

it must be that the data is sent back , when you do a http get request?

Some info here too.

this bit of info
final part for WS1001 unit only: Now update the files on the WS1001 clones either by using the SDcard method or if you have a windows based machine the unit can be connected via USB and you can use file explorer to simply drag the files to the unit which is the best and quickest method .
Now unplug the unit after updating the files and it will reboot wait around 60-120 seconds and if you did all correct above you are now generating a live data you can check it by typing in your browser http://yourserver.com/weatherstation/ws1001.json it will be generating this

{“updated”:“12:19:54”,“outsideTemp”:“66.6”,“outsideHumidity”:“50”,“humiditytrend”:“50”,
“dewpoint”:“47.5”,“dewpointtrend”:“47.5”,“windchill”:“66.6”,“heatindex”:null,“feels”:“66.6”,
“windDir”:“282”,“windSpeed”:“2.9”,“windGust”:“4.9”,“rainrate”:“0.00”,“raintoday”:“0.00”,
“rainweek”:“0.00”,“rainmonth”:“0.00”,“rainyear”:“15.17”,“radiation”:“695.08”,“UV”:“5”,
“indoorTemp”:“73.6”,“indoorHumidity”:“43”,“barometer”:“29.96”,“absbarometer”:“29.71”,
“indoortrendTemp”:“73.6”,“trendTemp”:“66.6”,“windtrend”:“2.9”,“windgusttrend”:“4.9”,
“trendbarometer”:“29.96”,“solartrend”:“695.08”,“softwaretype”:“ISTANBUL161 V2.2.5”,“month”:“April”,“year”:“2016”,“day”:“Thursday”,“realtime”:“1”,“rtfreq”:“5”,
“status”:“updateraw”,“timestamp”:1460020794,“timeutc”:“2016-4-7 9:19:54”,“power”:true}

means that if WD were to access that IP address via HTTP request , that data would returned…yes?

Yes, that’s how I read it. If it’s sending that .json to a webserver, you should be able to GET it. I think the assumption is that the server is on the local network, or even on the same PC. If it’s on the same PC then I guess you could just open it as a local file.

My basic interpretation if it helps any :slight_smile:

The WS1001 console is just a Windows CE PC - it seems to be running a customised version of Easyweather software for that OS type. (If you connect the console via a USB cable it is possible to browse the file structure). It has a file called server.ini which is where it stores the connection info for WU. the default file is shown below:

[Menu]
default=www.wunderground.com
web=2
web1=www.wunderground.com
web2=www.***.com

[www.wunderground.com]
Server=rtupdate.wunderground.com
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

[www.***.com]
Server=
ServerType=jsp
ServerPort=80
UploadType=Default
ReadOnly=false

by changing this file and replacing the WU server entry and pointing to a local web server it then seems to run (?) the updateweatherstation.php in the root of the web server folder which contains the code to fire off the data to WU, but also capture the data in an array and save it to a file. - This bit I don’t understand, I am not a web developer and not conversant in.php

yes, that is one way…by changing where it sends the WU data
but there could be another way…where the actual station responds with data a to a http request to

http://yourserver.com/weatherstation/ws1001.json

see if that works for you (replace yourserver.com with the IP address of the weather station)

Did try that… got a “refused to connect message”

The station does not have the weatherstation folder or ws1001.json file though - that is the file created on my web server by the updateweatherstation.php script. I am at a loss as to how the script gets the data from the WS1001

Hi all,

very interested in this too as I just bought one of these stations on Monday,
just found the Ambient Wiki page for WS-1001 and this was on it :

"Cumulus Integration
dontheman Dec 27, 2015
I would love the ability to integrate this station with Cumulus. I suspect that feature will be available at some point.

ambientweather Feb 19, 2016
Yes, we just finished the software connectivity beta testing. We will publish the protocol shortly."

if they’re saying protocol will work on Cumulus (whenever they release it) good news for WD users in the future.
The ambient page is at https://ambientweather.wikispaces.com/ws1001-wifi
hope this may be of some use.

Stephen.

Just a quick update - the rain is recording perfectly (shows rain to .01 - with the WU api only showed to 1 place), had it running for a few days now - really is a great improvement, its like having a new weather station :slight_smile:

that’s good :wink:
would be good if a write up could be made detailing the steps needed so that others could do this maybe? :slight_smile:

I have tried to view this link on wxforum but it seems to be gone. :confused:
Ah well.

I suspect a http get to the ip address and port number of the station should
Return the data.It’s something I want to get working

hi

here is the current WS1001( Clones) output dumped when using the updateweatherstation.php to a file called ws1001.json on your server

{ “timestamp”:1467623507,“updated”:“12:11:47”,“outsideTemp”:“83.8”,“outsideHumidity”:“53”,“humiditytrend”:“53”,“dewpoint”:“64.9”, “dewpointtrend”:“64.9”,“windchill”:“83.8”,“heatindex”:85.5,“realfeel”:84.4,“windDir”:“240”,“windSpeed”:“5.8”,“windGust”:“12.3”, “rainrate”:“0.00”,“raintoday”:“0.00”,“rainweek”:“0.00”,“rainmonth”:“0.00”,“rainyear”:“17.63”,“radiation”:“623.82”,“UV”:“7”, “UVtrend”:“7”,“indoorTemp”:“83.7”,“indoorfeel”:84.5,“indoorHumidity”:“58”,“barometer”:“29.94”,“absbarometer”:“29.68”, “indoortrendTemp”:“83.7”,“indoortrendHumidity”:“58”,“trendTemp”:“83.8”,“windtrend”:“5.8”,“windgusttrend”:“12.3”, “trendbarometer”:“29.94”,“solartrend”:“623.82”,“softwaretype”:“ISTANBUL161 V2.2.5”,“month”:“July”,“year”:“2016”, “day”:“Monday”,“realtime”:“1”,“rtfreq”:“5”,“status”:“updateraw”,“timeutc”:“2016-7-4 9:11:46”,“power”:true }

the ws1001 (clones) only require a simple console file edit called server.ini it basically takes the weather underground upload protocol , using the updateweatherstation.php it also forwards the data directly to weather underground and simultaneously dumps the data to a file called ws1001.json .
the console does not have to be permanently connected to pc/mac it simply does everything for you .

it would a real bonus and benefit if weather display was able to read the file ws1001.json from a server or locally .

the updateweatherstation.php can be adapted to weather display tags (if thats correct phrase)

server.ini file
[Menu]
default=www.wunderground.com
web=1
web1=www.yourserver.com
web2=www.yourserver.com
[www.wunderground.com]
Server=yourserver.com
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true
[www.yourserver.com]
Server=yourserver.com
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

updateweatherstation.php sample code

“updated” => date(“G:i:s”),
“outsideTemp” => $_GET[‘tempf’],
“outsideHumidity” => $_GET[‘humidity’],
“humiditytrend” => $_GET[‘humidity’],
“dewpoint” => $_GET[‘dewptf’],
“dewpointtrend” => $_GET[‘dewptf’],
“windchill” => $_GET[‘windchillf’],
“heatindex” => $_GET[‘heatindex’],
“realfeel” => $_GET[‘realfeel’],
“windDir” => $_GET[‘winddir’],
“windSpeed” => $_GET[‘windspeedmph’],
“windGust” => $_GET[‘windgustmph’],
“rainrate” => $_GET[‘rainin’],
“raintoday” => $_GET[‘dailyrainin’],
“rainweek” => $_GET[‘weeklyrainin’],
“rainmonth” => $_GET[‘monthlyrainin’],
“rainyear” => $_GET[‘yearlyrainin’],
“radiation” => $_GET[‘solarradiation’],
“UV” => $_GET[‘UV’],
“UVtrend” => $_GET[‘UV’],
“indoorTemp” => $_GET[‘indoortempf’],
“indoorfeel” => $_GET[‘indoorfeel’],
“indoorHumidity” => $_GET[‘indoorhumidity’],
“barometer” => $_GET[‘baromin’],
“absbarometer” => $_GET[‘absbaromin’],
“indoortrendTemp” => $_GET[‘indoortempf’],
“indoortrendHumidity” => $_GET[‘indoorhumidity’],
“trendTemp” => $_GET[‘tempf’],
“windtrend” => $_GET[‘windspeedmph’],
“windgusttrend” => $_GET[‘windgustmph’],
“trendbarometer” => $_GET[‘baromin’],
“solartrend” => $_GET[‘solarradiation’],
“softwaretype” => $_GET[‘softwaretype’],
“month”=> date(“F”),
“year”=> date(“Y”),
“day”=> date(“l”),
“realtime” => $_GET[‘realtime’],
“rtfreq” => $_GET[‘rtfreq’],
“status” => $_GET[‘action’],
“timeutc”=> $_GET[‘dateutc’],
“power” => $_GET[‘action’]== “updateraw”,
);

if you would like further info or a ws1001.json to work with realtime drop us a line i can provide a realtime working file updated every 16 seconds.

brian

Hi
I actually already do have this ability available in WD. recent version
see the Ambient WS1001 wifi raw data from script
and their you select the raw data file

try that
(in the weather station type setup)