[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ENVIRONMENT CANADA MODULE  XML
Forum Index » How-To
Author Message
JNIEMI

Initiate

Joined: 27/04/2012 17:08:53
Messages: 18
Offline

Hello all,

Im fairly new to this mango thing and were situated in Southern Ontario.

Our objective is to use the envcands module to monitor and log barometric pressure for our locale.

Ive got the module installed...thats the easy part. The hard part is knowing what our "station ID" is. Were in Cambridge ON, which is close to Waterloo International Airport. I used their Climate ID (its a 7 digit number, the airport code and transport canada ID dont work because theyre not all numbers and have other characters like letters and hyphens in them) and it gives me the following errors:

13:05:20: 'EcoLab Env Data': org.xml.sax.SAXParseException: Premature end of file.

and when I click on the help, it says: "Document id not found: envcanDS" and "Document id not found: envcanPP"

Heres a screenshot:

Does anyone have any ideas on what to do about this? Has anyone come across this before?

Would anyone be willing to help me out? Please?
[Thumb - Error for envcands.png]
 Filename Error for envcands.png [Disk] Download
 Description error for envcands
 Filesize 59 Kbytes
 Downloaded:  61 time(s)

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Hi Jonathan,

The station id can be found in the url when you choose a station from the Env Can web site. There is no documentation for this, so your confusion is justified.

If you go here: http://climate.weatheroffice.gc.ca/climateData/menu_e.html?Prov=ON, you can choose your city. On the resulting page you'll find the StationID parameter in the url. For example, the id for North Bay is 4201.

The error that you are receiving is likely due to the code trying to parse as XML content that is not XML.

Best regards,
Matthew Lohbihler
JNIEMI

Initiate

Joined: 27/04/2012 17:08:53
Messages: 18
Offline

That sounds great,

It worked partially too.

Does that "Document id not found: envcanDS" and "Document id not found: envcanPP" affect anything?

Im still not getting a reading...but that error stopped happening once I put in a valid station ID.

Thanks
JNIEMI

Initiate

Joined: 27/04/2012 17:08:53
Messages: 18
Offline

NVM. it works. I jumped the gun.
JNIEMI

Initiate

Joined: 27/04/2012 17:08:53
Messages: 18
Offline

What are the default units of Station Pressure?

Im getting 12.2...12.2 whats? kPa? millibar? what?

Thanks
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Appears to be kPa. See e.g.: http://climate.weatheroffice.gc.ca/climateData/hourlydata_e.html?timeframe=1&Prov=ONT&StationID=49908&hlyRange=2011-12-14|2012-03-26&Year=2012&Month=3&Day=25

Best regards,
Matthew Lohbihler
 
Forum Index » How-To
Go to:   
Powered by JForum 2.1.9 © JForum Team