
I also uploaded PM2.5 and PM10 values, and that doesn't seem to work anymore, removed those (WU doens't do anything with it) and now it works again!
Moderator: leecollings
Code: Select all
SAMPLE STRING TO UPDATE DATA ON PWSWEATHER.com
https://pwsupdate.pwsweather.com/api/v1/submitwx?ID=STATIONID&PASSWORD=password&dateutc=2000-12-01+15:20:01&winddir=225&windspeedmph=0.0&windgustmph=0.0&tempf=34.88&rainin=0.06&dailyrainin=0.06&monthrainin=1.02&yearrainin=18.26&baromin=29.49&dewptf=30.16&humidity=83&weather=OVC&solarradiation=183&UV=5.28&softwaretype=Examplever1.1&action=updateraw
All parameters are optional except for the ones marked with *.
If your software or hardware doesn't support a parameter it can be omitted from the string.
ID * Station ID as registered
PASSWORD * Station specific API Key from Admin page
dateutc * Date and time in the format of year-mo-da+hour:min:sec
winddir Wind direction in degrees
windspeedmph Wind speed in miles per hour
windgustmph Wind gust in miles per hour
tempf Temperature in degrees fahrenheit
rainin Hourly rain in inches
dailyrainin Daily rain in inches
monthrainin Monthly rain in inches
yearrainin Seasonal rain in inches (usually local meteorological year)
baromin Barometric pressure in inches
dewptf Dew point in degrees fahrenheit
humidity Humidity in percent
weather Current weather or sky conditions using standard METAR abbreviations and intensity (e.g. -RA, +SN, SKC, etc.)
solarradiation Solar radiation in W/m^2
UV UV, expressed as UVI
softwaretype * Software type
The string always concludes with action=updateraw to indicate the end of the readings
For more information contact AerisWeather Support: https://www.aerisweather.com/support/
Code: Select all
local function luxtoWattsm2(mm)
if mm == nil then return 0 end
return mm * 0.0079
end
It is a netatmo, the data is appearing on the device panel, but then it does not appear on the WU, today I have 1.3mm, now it appears on the 0.1mm panel of a downpour, but the rest does not appear.Toulon7559 wrote:Stepwise check (or in reverse order):
1) Which type of PWS and which interface in use to feed Domoticz?
2) Is the PWS reporting rain at it's own display?
3) In Domoticz, is the rain-device visible in Setup/Devices, and under Setup/Options/Events?
4) Script in Domoticz without errors?
5) What rain-display at WU? Any error report at side of WU?
Sorry for the imagesremember wrote:It is a netatmo, the data is appearing on the device panel, but then it does not appear on the WU, today I have 1.3mm, now it appears on the 0.1mm panel of a downpour, but the rest does not appear.Toulon7559 wrote:Stepwise check (or in reverse order):
1) Which type of PWS and which interface in use to feed Domoticz?
2) Is the PWS reporting rain at it's own display?
3) In Domoticz, is the rain-device visible in Setup/Devices, and under Setup/Options/Events?
4) Script in Domoticz without errors?
5) What rain-display at WU? Any error report at side of WU?
Enviado do meu POT-LX1 através do Tapatalk
Good night, it's back to the same ... I have two sensors inside the house, one in the office and one in the bedroom, then the outside is all 3 temperatures and humidity, the other rain and temperature sensor are ones that are no longer used, but as much as I try I can't remove them from the panel. The script I'm using is this, but the rain is still not transmitting ...Toulon7559 wrote:Puzzled related to the pictures for the Device List, because only 3 columns (out of 8) with 2* Rain and 2* Temp&Humid.
What IDX and which Name is valid for each of them (in the columns left of these 3)?
.
Another approach:
what is shown for these devices under Setup/Options/Events?
Good Morning, On the devices it takes the rain, but on the meteorological panel it does not. Line 7 appears Rain GaugeToulon7559 wrote:File in github looks very familiar ...
In your application-version, what is inserted as name in scriptline 07 for Rainmeter?
Is that rainmeter showing good values in Domoticz?
Code: Select all
-- Weatherunderground PWS upload script
-- (C)2018 Earthweb EWS, Based on GizMoCuz
-- Sensor Settings
Outside_Temp_Hum = 'TrlfK'
Barometer = 'TrlfK'
RainMeter = 'RegenTotalK'
--WU Settings
baseurl = "http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?"
ID = "xxxx"
PASSWORD = "xxxx"
local function CelciusToFarenheit(C)
return (C * (9/5)) + 32
end
local function hPatoInches(hPa)
return hPa * 0.0295301
end
local function mmtoInches(mm)
return mm * 0.039370
end
utc_dtime = os.date("!%m-%d-%y %H:%M:%S",os.time())
month = string.sub(utc_dtime, 1, 2)
day = string.sub(utc_dtime, 4, 5)
year = "20" .. string.sub(utc_dtime, 7, 8)
hour = string.sub(utc_dtime, 10, 11)
minutes = string.sub(utc_dtime, 13, 14)
seconds = string.sub(utc_dtime, 16, 17)
timestring = year .. "-" .. month .. "-" .. day .. "+" .. hour .. "%3A" .. minutes .. "%3A" .. seconds
SoftwareType="Domoticz"
WU_URL= baseurl .. "ID=" .. ID .. "&PASSWORD=" .. PASSWORD .. "&dateutc=" .. timestring
--&winddir=230
--&windspeedmph=12
--&windgustmph=12
-- Line 53, Extraction of data from BMP180
sBMP280T, sBMP280H, sBMP280D, sBMP280P = otherdevices_svalues[Barometer]:match("([^;]+);([^;]+);([^;]+);([^;]+)")
sBMP280T = tonumber(sBMP280T);
print ('BMP280_temp = '.. sBMP280T)
sBMP280H = tonumber(sBMP280H);
print ('BMP280_hum = '.. sBMP280H)
sBMP280D = tonumber(sBMP280D);
print ('BMP280_dew = '.. sBMP280D)
sBMP280P = tonumber(sBMP280P);
print ('BMP280_druk = '.. sBMP280P)
if Outside_Temp_Hum ~= '' then
WU_URL = WU_URL .. "&tempf=" .. string.format("%3.1f", CelciusToFarenheit(sBMP280T))
WU_URL = WU_URL .. "&humidity=" .. sBMP280H
WU_URL = WU_URL .. "&dewptf=" .. string.format("%3.1f", CelciusToFarenheit(sBMP280D))
Sensor = Outside_Temp_Hum
end
if Barometer ~= '' then
WU_URL = WU_URL .. "&baromin=" .. string.format("%2.2f", hPatoInches(sBMP280P))
Sensor = Barometer
end
if RainMeter ~= '' then
WU_URL = WU_URL .. "&dailyrainin=" .. string.format("%2.2f", mmtoInches(otherdevices_rain[RainMeter]))
WU_URL = WU_URL .. "&rainin=" .. string.format("%2.2f", mmtoInches(otherdevices_rain_lasthour[RainMeter]))
Sensor = RainMeter
end
--&weather=
--&clouds=
-- Current date as date.year, date.month, date.day, date.hour, date.min, date.sec
date = os.date("*t")
if (date.min % 5 == 0) then
WU_URL = WU_URL .. "&softwaretype=" .. SoftwareType .. "&action=updateraw"
print ('Uploading data to Weather Underground')
--print (WU_URL)
print ('ID=' .. ID)
print ('Sensor=' .. Sensor)
commandArray = {}
--remove the line below to actualy upload it
commandArray['OpenURL']=WU_URL
print ('Uploading data to Weather Underground completed')
else
commandArray = {}
end
Code: Select all
WU_URL = WU_URL .. "&dewptf=" .. string.format("%3.1f", CelciusToFarenheit(otherdevices_dewpoint[xxx..pa:Outside_hum-Temp]))
Users browsing this forum: Google [Bot] and 1 guest