rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Weather Underground for Canadian cities #20

Closed durn2000 closed 5 years ago

durn2000 commented 10 years ago

I have modified your code so that it works with either zip codes or postal codes. Basically, I had to change the storing of the zip to a character array so that it would work for postal codes or zip codes and alter the GetZip and SetZip functions. If you are interested, I can send it to you and you can merge it into your codebase. Great program by the way.

Jack Collier (Alberta, Canada)

LyonL-fr commented 10 years ago

On my side, in France, I had to modify weather.cpp to feat with wunderground.

http://38.102.136.138/api/3xxxxxx/yesterday/conditions/q/zmw:00000.69.07480.json

I edited directly the source code and replaced the string directly. Zip mode request an integer.

Lionel (France)