Skip to content

Shell script that replicates Weather Underground PWS to pwsweather.com

License

Notifications You must be signed in to change notification settings

johnny2678/wupws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

wupws

simple shell script that parses current observations from a weather underground station and posts to pwsweather.com. Needed so Rachio smart irrigation controller can use nearby weather underground data to adjust watering schedule.

Mandatory Linux Tools Required:

  • jq
  • wget

Mandatory variables to set in the script (more info in the .sh):

  • WORKINGDIR=/home/ABC123
  • WUAPI={your weather underground API key - no braces}
  • WUPWS={"your weather underground station identifier - no braces - yes quotes"}
  • PWSID={your pwsweather.com station ID}
  • PWSPASS={your pwsweather.com password}

Workflow:

  • Sign up for a Weather Underground free (Stratus) API key
  • Sign up for a pwsweather.com account
  • Create a new weather station under your pwsweather.com account using the (lat/long/elevation/etc) from the Weather Underground station you wish to track
  • edit the script with all of your personal variables
  • set a cronjob to run the script with your desired frequency - keep it at every 3 minutes or more to stay under the WU 500 API calls/day limit
    • */3 * * * * {script location - no spaces}
  • profit

About

Shell script that replicates Weather Underground PWS to pwsweather.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages