• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Enviro Canada data source not working

    User help
    2
    8
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jeremyhJ
      jeremyh
      last edited by

      Hi,

      Is the Enviro Canada data source still working? I am using the Envcands 3.0.1 module on a 3.0.2 system but am receiving no values for most of my datapoints, and a single value of 3.0 for the temperature data point (It's cold here, but not that cold).

      I am using Station id 51442 which appears to have current data (link).

      When I toggle the data source on and off, the log only shows the module stopping and starting, and doesn't show any errors.

      Any ideas? Thanks!

      Jeremy

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi Jeremy,

        I touched this up about four months ago. The Canadian weather service's API had some cursory changes, but the data source should be working now.

        It seems like the Canadian weather service website, http://climate.weather.gc.ca is down right now, so I cannot test at this moment.

        1 Reply Last reply Reply Quote 0
        • phildunlapP
          phildunlap
          last edited by phildunlap

          Okay, looks like their website was just crunched by traffic for a second.

          I experimented, I resolved,

          1. The data source works - almost! I can confirm that it's querying the API and parsing it for values, but...
          2. There's a bad behavior lurking in the module. The reason you're not getting data is probably because of how this data source's polling works. It was written to begin all data sets in 2008 and to fill in the time to now. Because it could deal with forecasts, it doesn't consider a time as having been read if there wasn't temperature data at that time (somewhat suspicious). In your case, Station 51442 doesn't have any temperature data in the initial request and it never advanced the time! Here's the URL for the request for the initial XML data for station 51442: http://climate.weather.gc.ca/climate_data/bulk_data_e.html?stationID=51442&Year=2008&Month=2&format=xml&timeframe=1 (note all the <temp description="Temperature" units="°C"></temp> means no data there)

          This probably could use us reworking. However, it does look like a work around could exist. Currently, the EnvCan data source determines what date to poll for by the earliest point value on its data points, or 2008 if there are not data points with values. So, if you can give your data point temperature a value just before the period you're interested in getting data from, then it should work. But it's the earlier value for any active point on the source, so be sure they've all got values that are recent enough.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            I put a date picker on the data source to choose the start date. I'll circle back and post here when it gets released.

            1 Reply Last reply Reply Quote 0
            • jeremyhJ
              jeremyh
              last edited by jeremyh

              Hey, nice one. Thanks Phil. I'll investigate your work-around!

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                This modification was released with Mango 3.1

                Out of curiosity, did the workaround work for you?

                1 Reply Last reply Reply Quote 0
                • jeremyhJ
                  jeremyh
                  last edited by

                  Hey Phil, the workaround didn't seem to work, but I got sidetracked with some other stuff and didn't try again.

                  I'm now running envcands 3.1.0 but don't see the date picker on the datasource page. Should it be there/is there anything special I need to do to see it?

                  1 Reply Last reply Reply Quote 0
                  • phildunlapP
                    phildunlap
                    last edited by

                    Oi. We recently changed our branching and it looks like my fix didn't get pulled into the main branch. My mistake. I have just put 3.1.1 in the store and it definitely has it. Sorry about that.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post