Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Fetching MMW data from one sensor?

Home Forums Monitor My Watershed Fetching MMW data from one sensor?

Viewing 1 reply thread
  • Author
    Posts
    • #17736
      Sedhead
      Participant

        Greetings, I am wondering if anyone is willing to share code with me that demonstrates how you might access MMW data from a single sensor and use it in other applications in quasi-realtime? More specifically, I have a student that would like to activate a strand of LEDs based on the water level of a gage that is a site on MMW. We would prefer to use Arduino or Mayfly technology, but we might be able to do something using Python.

        Thanks!

      • #18552
        Scott Ensign
        Participant

          @tahicksonstthomas-edu: @srgdamiano developed a way to query the Monitor My Watershed database for a specific parameter and specific time/date range. This is a huge improvement over using the Download button to retrieve your data, because you can limit the timeframe of data being retrieved and thus speed up the response. See Sara’s code here for R and python:

          https://gist.github.com/SRGDamia1

          As an example of implementation, the Spokane Riverkeeper is using this code to populate real-time data on their own website:

          Water Temperature — Spokane Riverkeeper

           

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.