Hi all
Began this morning to think about if it could be possible to use my weatherstation, and use the values from it and read out in Homey to show it on my dedicated iPad.
My weatherstation is a Davis Vantage Pro2 and at the moment it produces a .txt file every 2 sec. I use to show graphicly on my webpage
Anyone with a great idea?
Is there some sort of HTTP request possible?
Yes there are, uploading the .txt file every minut with every data
You’d could and try the http request app.
I’ll try take a look, thanks, i might come back
the question here is what sort of data are we talking about. Maybe someone could create an app for it that reads the text files to a device on homey.
Just want to say that that is a very nice dashboard
If i just could get the temperature first, that would be great, then i could try working on it and see how it would go
From examining the output of that url I can see lots of data but also some strange values like HoerningByVejr-12:02:40. Do you know by any change what is what in the output?
It is the name of the weather station, it stands for the city i live in = Hørning and the other means City Weather
HoerningByVejr = Hørning City Weather
The last one is the last data output time
Every single number i know which data it is and data is being read every 2 sec. by the weatherstation and written to a .txt file on my website.
So if we use this set of data:
[19] => 1.6
[20] => -1.0
[21] => 255.0
[22] => -1.0
[23] => -1.0
[24] => -100.0
[25] => -100.0
[26] => -100
[27] => -100
[28] => -100
what does that mean? That your temperature goes below 100? fahrenheit? Celcius?
When i am at home and at my computer, i will send you how it specific files look like and i will explain much better
1 Like
Finaly got home
This is how the tags list look like, it is the column 2 that is the weatherstation tags, first column is my own I use in my website.
<?php
// Pull out hour, minute, second, month, day, year
$recordDate = mktime($clientraw[29], $clientraw[30], $clientraw[31], $clientraw[36], $clientraw[35], $clientraw[141]);
// Clientraw values
$ws_data[" "] = $clientraw[1];
$ws_data["wind_gust_speed"] = $clientraw[2];
$ws_data["wind_direction"] = $clientraw[3];
$ws_data["temp"] = $clientraw[4];
$ws_data["humidity"] = $clientraw[5];
$ws_data["barometer"] = $clientraw[6];
$ws_data["rain_today"] = $clientraw[7];
$ws_data["rain_month"] = $clientraw[8];
$ws_data["rain_year"] = $clientraw[9];
$ws_data["rain_rate"] = $clientraw[10];
$ws_data["rain_rate_max"] = $clientraw[11];
$ws_data["temp_indoor"] = $clientraw[12];
$ws_data["humidity_indoor"] = $clientraw[13];
$ws_data["soil_temp"] = $clientraw[14];
$ws_data["forecast_icon"] = $clientraw[15];
//$ws_data[" "] = $clientraw[16]; // WMR968 Extra Temp
//$ws_data[" "] = $clientraw[17]; // WMR968 Extra Hum
//$ws_data[" "] = $clientraw[18]; // WMR968 Extra Sensor
$ws_data["rain_yesterday"] = $clientraw[19];
//$ws_data[" "] = $clientraw[20]; // Extra Temp Sensor 1
//$ws_data[" "] = $clientraw[21]; // Extra Temp Sensor 2
//$ws_data[" "] = $clientraw[22]; // Extra Temp Sensor 3
//$ws_data[" "] = $clientraw[23]; // Extra Temp Sensor 4
//$ws_data[" "] = $clientraw[24]; // Extra Temp Sensor 5
//$ws_data[" "] = $clientraw[25]; // Extra Temp Sensor 6
//$ws_data[" "] = $clientraw[26]; // Extra Hum Sensor 1
//$ws_data[" "] = $clientraw[27]; // Extra Hum Sensor 2
//$ws_data[" "] = $clientraw[28]; // Extra Hum Sensor 3
$ws_data["hour"] = $clientraw[29];
$ws_data["minute"] = $clientraw[30];
$ws_data["seconds"] = $clientraw[31];
$ws_data["station_name"] = $clientraw[32];
//$ws_data[" "] = $clientraw[33]; // Dallas Lightning Count
$ws_data["solar_reading"] = $clientraw[34];
$ws_data["day"] = $clientraw[35];
$ws_data["month"] = $clientraw[36];
//$ws_data[" "] = $clientraw[37]; // WMR968 batt1
//$ws_data[" "] = $clientraw[38]; // WMR968 batt2
//$ws_data[" "] = $clientraw[39]; // WMR968 batt3
//$ws_data[" "] = $clientraw[40]; // WMR968 batt4
//$ws_data[" "] = $clientraw[41]; // WMR968 batt5
//$ws_data[" "] = $clientraw[42]; // WMR968 batt6
//$ws_data[" "] = $clientraw[43]; // WMR968 batt7
$ws_data["windchill"] = $clientraw[44];
$ws_data["humidex"] = $clientraw[45];
$ws_data["temp_today_high"] = $clientraw[46];
$ws_data["temp_today_low"] = $clientraw[47];
$ws_data["icon_type"] = $clientraw[48];
$ws_data["weather_desciption"] = $clientraw[49];
$ws_data["barometer_trend"] = $clientraw[50];
//$ws_data[" "] = $clientraw[51]; // Windspeed Hour 01
//$ws_data[" "] = $clientraw[52]; // Windspeed Hour 02
//$ws_data[" "] = $clientraw[53]; // Windspeed Hour 03
//$ws_data[" "] = $clientraw[54]; // Windspeed Hour 04
//$ws_data[" "] = $clientraw[55]; // Windspeed Hour 05
//$ws_data[" "] = $clientraw[56]; // Windspeed Hour 06
//$ws_data[" "] = $clientraw[57]; // Windspeed Hour 07
//$ws_data[" "] = $clientraw[58]; // Windspeed Hour 08
//$ws_data[" "] = $clientraw[59]; // Windspeed Hour 09
//$ws_data[" "] = $clientraw[60]; // Windspeed Hour 10
//$ws_data[" "] = $clientraw[61]; // Windspeed Hour 11
//$ws_data[" "] = $clientraw[62]; // Windspeed Hour 12
//$ws_data[" "] = $clientraw[63]; // Windspeed Hour 13
//$ws_data[" "] = $clientraw[64]; // Windspeed Hour 14
//$ws_data[" "] = $clientraw[65]; // Windspeed Hour 15
//$ws_data[" "] = $clientraw[66]; // Windspeed Hour 16
//$ws_data[" "] = $clientraw[67]; // Windspeed Hour 17
//$ws_data[" "] = $clientraw[68]; // Windspeed Hour 18
//$ws_data[" "] = $clientraw[69]; // Windspeed Hour 19
//$ws_data[" "] = $clientraw[70]; // Windspeed Hour 20
$ws_data["wind_gust_speed_max"] = $clientraw[71];
$ws_data["dewpoint"] = $clientraw[72];
$ws_data["cloud_height"] = $clientraw[73];
$ws_data["date"] = $clientraw[74];
$ws_data["max_humidex"] = $clientraw[75];
$ws_data["min_humidex"] = $clientraw[76];
$ws_data["max_windchill"] = $clientraw[77];
$ws_data["min_windchill"] = $clientraw[78];
$ws_data["uv"] = $clientraw[79];
$ws_data["01_hour_windspeed"] = $clientraw[80];
$ws_data["02_hour_windspeed"] = $clientraw[81];
$ws_data["03_hour_windspeed"] = $clientraw[82];
$ws_data["04_hour_windspeed"] = $clientraw[83];
$ws_data["05_hour_windspeed"] = $clientraw[84];
$ws_data["06_hour_windspeed"] = $clientraw[85];
$ws_data["07_hour_windspeed"] = $clientraw[86];
$ws_data["08_hour_windspeed"] = $clientraw[87];
$ws_data["09_hour_windspeed"] = $clientraw[88];
$ws_data["10_hour_windspeed"] = $clientraw[89];
$ws_data["01_hour_temp"] = $clientraw[90];
$ws_data["02_hour_temp"] = $clientraw[91];
$ws_data["03_hour_temp"] = $clientraw[92];
$ws_data["04_hour_temp"] = $clientraw[93];
$ws_data["05_hour_temp"] = $clientraw[94];
$ws_data["06_hour_temp"] = $clientraw[95];
$ws_data["07_hour_temp"] = $clientraw[96];
$ws_data["08_hour_temp"] = $clientraw[97];
$ws_data["09_hour_temp"] = $clientraw[98];
$ws_data["10_hour_temp"] = $clientraw[99];
$ws_data["01_hour_rain"] = $clientraw[100];
$ws_data["02_hour_rain"] = $clientraw[101];
$ws_data["03_hour_rain"] = $clientraw[102];
$ws_data["04_hour_rain"] = $clientraw[103];
$ws_data["05_hour_rain"] = $clientraw[104];
$ws_data["06_hour_rain"] = $clientraw[105];
$ws_data["07_hour_rain"] = $clientraw[106];
$ws_data["08_hour_rain"] = $clientraw[107];
$ws_data["09_hour_rain"] = $clientraw[108];
$ws_data["10_hour_rain"] = $clientraw[109];
$ws_data["max_heat_index"] = $clientraw[110];
$ws_data["min_heat_index"] = $clientraw[111];
$ws_data["heat_index"] = $clientraw[112];
$ws_data["wind_speed_max"] = $clientraw[113];
//$ws_data[" "] = $clientraw[114]; // Lighting Last Min
//$ws_data[" "] = $clientraw[115]; // Lighting Last Time Hour
//$ws_data[" "] = $clientraw[116]; // Lighting Last Time Min
$ws_data["wind_avg_direction"] = $clientraw[117];
//$ws_data[" "] = $clientraw[118]; // Nexstorm Dist
//$ws_data[" "] = $clientraw[119]; // NextStorm Bearing
//$ws_data[" "] = $clientraw[120]; // Extra Temp Sensor 7
//$ws_data[" "] = $clientraw[121]; // Extra Temp Sensor 8
//$ws_data[" "] = $clientraw[122]; // Extra Hum Sensor 4
//$ws_data[" "] = $clientraw[123]; // Extra Hum Sensor 5
//$ws_data[" "] = $clientraw[124]; // Extra Hum Sensor 6
//$ws_data[" "] = $clientraw[125]; // Extra Hum Sensor 7
//$ws_data[" "] = $clientraw[126]; // Extra Hum Sensor 8
$ws_data["solar"] = $clientraw[127];
$ws_data["max_indoor_temp"] = $clientraw[128];
$ws_data["min_indoor_temp"] = $clientraw[129];
$ws_data["apparent_temp"] = $clientraw[130];
$ws_data["barometer_max"] = $clientraw[131];
$ws_data["max_barometer"] = $clientraw[132];
$ws_data["min_barometer"] = $clientraw[133];
$ws_data["max_gust_hour"] = $clientraw[134];
$ws_data["max_gust_today"] = $clientraw[135];
$ws_data["max_apparent_temp"] = $clientraw[136];
$ws_data["min_apparent_temp"] = $clientraw[137];
$ws_data["max_dew_point"] = $clientraw[138];
$ws_data["min_dew_point"] = $clientraw[139];
$ws_data["max_gust_last_minut"] = $clientraw[140];
$ws_data["current_year"] = $clientraw[141];
$ws_data["thsws"] = $clientraw[142];
$ws_data["temp_trend"] = $clientraw[143];
$ws_data["humidity_trend"] = $clientraw[144];
$ws_data["humidex_trend"] = $clientraw[145];
$ws_data["wind_direction_avg"] = $clientraw[146];
$ws_data["01_wind_dir"] = $clientraw[147];
$ws_data["02_wind_dir"] = $clientraw[148];
$ws_data["03_wind_dir"] = $clientraw[149];
$ws_data["04_wind_dir"] = $clientraw[150];
$ws_data["05_wind_dir"] = $clientraw[151];
$ws_data["06_wind_dir"] = $clientraw[152];
$ws_data["07_wind_dir"] = $clientraw[153];
$ws_data["08_wind_dir"] = $clientraw[154];
$ws_data["09_wind_dir"] = $clientraw[155];
$ws_data["10__wind_dir "] = $clientraw[156];
//$ws_data[" "] = $clientraw[157];
$ws_data["wind_speed_avg10"] = $clientraw[158]; // Average 10 min.
//$ws_data[" "] = $clientraw[159]; // Wet bulb temperature
$ws_data["latitude"] = $clientraw[160];
$ws_data["longitude"] = $clientraw[161];
//$ws_data[" "] = $clientraw[162]; // 9am reset rain total (mm)
$ws_data["daily_high_humidity"] = $clientraw[163];
$ws_data["daily_low_humidity"] = $clientraw[164];
$ws_data[" "] = $clientraw[165]; // midnight reset rain total (mm)
$ws_data[" "] = $clientraw[166]; // time of daily low windchill
$ws_data[" "] = $clientraw[167];
$ws_data[" "] = $clientraw[168];
$ws_data[" "] = $clientraw[169];
$ws_data[" "] = $clientraw[170];
$ws_data[" "] = $clientraw[171];
$ws_data[" "] = $clientraw[172];
$ws_data["wind_run"] = $clientraw[173];
$ws_data[" "] = $clientraw[174];
$ws_data[" "] = $clientraw[175];
$ws_data[" "] = $clientraw[176];
$ws_data[" "] = $clientraw[177];
$ws_data[" "] = $clientraw[178];
$ws_data[" "] = $clientraw[179];
$ws_data[" "] = $clientraw[180];
$ws_data[" "] = $clientraw[181];
$ws_data[" "] = $clientraw[182];
$ws_data[" "] = $clientraw[183];
$ws_data[" "] = $clientraw[184];
$ws_data[" "] = $clientraw[185];
$ws_data[" "] = $clientraw[186];
$ws_data[" "] = $clientraw[187];
$ws_data[" "] = $clientraw[188];
$ws_data[" "] = $clientraw[189];
$ws_data[" "] = $clientraw[190];
$ws_data[" "] = $clientraw[191];
$ws_data[" "] = $clientraw[192];
$ws_data[" "] = $clientraw[193];
$ws_data[" "] = $clientraw[194];
$ws_data[" "] = $clientraw[195];
$ws_data[" "] = $clientraw[196];
$ws_data[" "] = $clientraw[197];
$ws_data[" "] = $clientraw[198];
$ws_data[" "] = $clientraw[199];
$ws_data[" "] = $clientraw[200];
?>
May I second the request for an app that reads the values of the Davis Vantage Pro as my wife wants me to create a flow that will shut down the bathroom shutters when the solar power gets over a certain limit.
If you upload the data to WeatherUnderground, you can read your data from their site using their API:
Not a clue what this means, but someone might.
Thanks
I would by very happy as well if someone who can do it would do it.
I have the same setup as you.
I use WeatherDisplays MQTT client and send data to a Mosquitto MQTT server and then let Homey subscribe to these topics.
You can send MQTT direct from WD to Homey.
You need Homeyscript to “find” the values as WD posts data as JSON
I have all that setup and running now… but it has taken many hours to get this working…
But now I know how to do it so I can help you
You are a hero, sounds like the solution
And would you share the solution?
I have MQQT running, both on WD and Homey and see the readings with MQQT Explorer