Well, I think there were just two parts to getting my pywws system to work with the PWS service (which I had already been using with my previous station/software). This really isn't a 'tutorial', since I am assuming that you already have pywws up-and-running and just want to add the 'PWS' service to the other services you already use.
1) Make an 'ini' file for PWS service (i.e. 'pwsweather.ini'), modelled after 'underground.ini':
[config]
url =
http://www.pwsweather.com/pwsupdate/pwsupdate.php#url-rf =
http://rtupdate.wunderground.com/weatherstation/updateweatherstation.phpcatchup = 0
rapidfire = False
use get = True
result = ['success$']
[fixed]
action = updateraw
softwaretype = pywws
ID = mystationid
PASSWORD = mypassword
[fixed-rf]
realtime = 1
rtfreq = 48
2) Create a 'template' file for PWS service (i.e. 'pwsweather_template_1080.txt'), modelled after 'underground_template_1080.txt':
#live#
{
#idx "'dateutc' : '%Y-%m-%d %H:%M:%S',"#
#wind_dir "'winddir' : '%.0f'," "" "winddir_degrees(x)"#
#wind_ave "'windspeedmph' : '%.2f'," "" "wind_mph(x)"#
#wind_gust "'windgustmph' : '%.2f'," "" "wind_mph(x)"#
#hum_out "'humidity' : '%.d',"#
#temp_out "'tempf' : '%.1f'," "" "temp_f(x)"#
#rel_pressure "'baromin' : '%.4f'," "" "pressure_inhg(x)"#
#calc "temp_f(dew_point(data['temp_out'], data['hum_out']))" "'dewptf' : '%.1f',"#
#calc "rain_inch(rain_hour(data))" "'rainin' : '%g',"#
#calc "rain_inch(rain_day(data))" "'dailyrainin' : '%g',"#
}
3) Add an entry to the 'weather.ini' file:
[live]
services = [...', 'pwsweather', ...']
...
Let us know if it works out for you too :)
On Tuesday, 4 December 2012 21:06:10 UTC-6, Karl Hircock wrote:
I would like a copy or tutorial on how you did this, i run PWS weather too. If thats ok :)