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

Editing Variable UUIDs

Home Forums Monitor My Watershed Editing Variable UUIDs

Viewing 53 reply threads
  • Author
    Posts
    • #13263
      jbiddle
      Participant
        Hi,

        I am currently attempting to edit the variable UUIDs in the DRWI_CitSci sketch with those for the sensors that are part of my system. In the sketch there are default UUIDs provided for each var

      • #13265
        Sara Damiano
        Moderator

          Delete them.

          • #13395
            jbiddle
            Participant
              Thanks for your response.

              I’ve been out of the office and am just now getting back around to trying to set up our data logger. This is my first time trying to set up one of these data loggers,

          • #13399
            Sara Damiano
            Moderator
              It looks like you’re using the Arduino IDE. Managing multiple libraries for the Arduino IDE is NOT easy – it is quite a hassle. Have you installed all the libra
            • #13539
              jbiddle
              Participant
                Hi Sara, thanks for your help.

                I unfortunately had to put this project on hold right after you help me with my last problem, so sorry for the late response.

                I managed to fix the library issue I was

              • #13540
                Sara Damiano
                Moderator
                  The OBS3+ treats the low range and high range turbidity as if they’re two completely different things. So on Monitor My Watershed you actually have to create two different variables, one for ea
                • #13762
                  jbiddle
                  Participant
                    Hi Sarah,

                     

                    Thanks for your response. I once again had to put this on hold for a bit but I am back to trying to get it to work.

                     

                    As I’ve mentioned I am new to this type of thing,

                  • #13769
                    Sara Damiano
                    Moderator

                      Posting here is really the best way.  You can attach the output as a text file.

                    • #13784
                      jbiddle
                      Participant
                        Thanks Sara. I’ve copied the error message and attached it as a text file. As you can see there’s a lot going on and I’m not really even sure where to begin. Any advice you have is a
                        Attachments:
                      • #13787
                        Sara Damiano
                        Moderator
                          That’s a lot of compiler errors!

                          Could you post your program (“sketch_jan07a.ino”)?  I’m guessing based on the errors that there might be a stray quotation mark or a missing

                        • #13800
                          jbiddle
                          Participant
                            You did mention that it isn’t easy! I did download PlatformIO and found it to be just as foreign to me, so instead of confusing myself with two different applications I figured I’d stick w
                            Attachments:
                          • #13802
                            Sara Damiano
                            Moderator
                              It looks like when you created your sketch, instead of starting with a completely empty file you pasted your code into the middle of the Arduino IDE’s placeholder code.  So there are chunks of
                            • #13803
                              Sara Damiano
                              Moderator
                                If you are still getting library compiler errors after fixing your sketch, I would strongly prefer to guide you through using PlatformIO. It really is easier, even though it feels much more “pro
                              • #13804
                                jbiddle
                                Participant
                                  Thanks.

                                   

                                  So, that helped to eliminate most of the compiling error that I was receiving. I’ve attached the error message as I’m getting it right now.

                                  As for the libraries, I’

                                • #13806
                                  Matt Barney
                                  Participant
                                    The path to your Python.exe will likely be:
                                    C:\Users\<your-username>\AppData\Local\Programs\Python\Python38

                                    If you don’t find it there, you could try the method described here:

                                  • #13807
                                    jbiddle
                                    Participant

                                      Hi Matt,

                                      Thanks. I’ve tried that and am met with “Invalid path to python interpreter.”

                                       

                                      The path is C:\Users\Josh Biddle\AppData\Local\Programs\Python\Python38-32

                                    • #13808
                                      Matt Barney
                                      Participant
                                        Hmm, are you able to successfully open the python interpreter at that location? E.g., from Windows command line, enter

                                      • #13809
                                        jbiddle
                                        Participant

                                          Yes, I can open python by entering the location from CMD and Run.

                                        • #13810
                                          Evan
                                          Participant
                                            I had some issues with Python when switching to PlatformIO from the Arduino IDE.

                                            I had an older version of python installed, so I thought I would be slick and update before installing Visual Code and

                                          • #13811
                                            jbiddle
                                            Participant
                                              Hi Sara,

                                              Not sure what I was doing wrong initially but I’ve managed to get platformIO installed correctly on VSCode and I’m ready to proceed.

                                              For step two of your instructions above R

                                            • #13812
                                              jbiddle
                                              Participant

                                                Thanks Evan. I managed to enter the correct path and I’ve satisfied VScode for the time being. Not sure what I was doing wrong originally, but I try to not ask too many questions. Thanks!

                                              • #13813
                                                Sara Damiano
                                                Moderator

                                                  The DRWI_CitSci.ino, once corrected, is what will go in the src/main.cpp location correct?

                                                  Correct.  🙂

                                                  The platformio.ini you need is here:  https://github.com/EnviroDIY/

                                                • #13814
                                                  jbiddle
                                                  Participant
                                                    Great, thank you! So far so good. The other step I’m hung up on now is installing the libraries through platformio. I’ve entered the command

                                                    pio lib -g install https://github.com/EnviroDI

                                                  • #13815
                                                    Sara Damiano
                                                    Moderator
                                                      The git problem is probably another “path” issue.  Did you add git to your “path” when you installed it?  I don’t remember if the installer gives you the option.

                                                      Try c

                                                    • #13816
                                                      jbiddle
                                                      Participant
                                                        I did not add git to your path when I installed it, but I followed the instructions on the page you provided and added the location, which was C:\Program Files\Git\bin and I am still getting the same
                                                      • #13817
                                                        Sara Damiano
                                                        Moderator
                                                          Hm.  Did you restart VSCode after changing the path?  Can you open up a new terminal and successfully run git?

                                                          I’m sorry; I know dealing with these setup things can be really frustrating.  I

                                                        • #13824
                                                          jbiddle
                                                          Participant
                                                            That worked! I restarded VSCode and entered the command again and successfully installed the libraries.

                                                            I then went back and tried to “build” the program and ended up with a few errors. I

                                                          • #13827
                                                            Sara Damiano
                                                            Moderator

                                                              I’m sorry!  It looks like it somehow missed the dependencies in the install.  Try running the command pio lib install EnviroDIY_ModularSensors

                                                            • #13892
                                                              jbiddle
                                                              Participant
                                                                Thanks Sara.

                                                                 

                                                                I ran that command in the PlatformIO terminal and was met with another error which I’ve attached here. Once again thanks for taking the time to walk me through this. Hopefu

                                                                Attachments:
                                                              • #13902
                                                                Sara Damiano
                                                                Moderator
                                                                  Huh.  It’s an “access is denied” error.  I’m guessing two processes tried to write to the same temporary folder – the automatic “check for new libraries in the li
                                                                • #13905
                                                                  jbiddle
                                                                  Participant
                                                                    For some reason I haven’t gotten it into my head yet to just close the program and try again.

                                                                    I did that, twice. The second time it seemed like it made some more progress before another error.

                                                                  • #13906
                                                                    jbiddle
                                                                    Participant

                                                                      Here are the attachments.

                                                                    • #13907
                                                                      jbiddle
                                                                      Participant

                                                                        For some reason I can’t leave a comment with more than one attachment.

                                                                      • #13910
                                                                        Sara Damiano
                                                                        Moderator
                                                                          There’s probably a missing semi-colon or brace in your program code somewhere right above line 215.

                                                                          Check first where you pasted in the UUID’s.  Each UUID should be enclosed with quotati

                                                                        • #13941
                                                                          jbiddle
                                                                          Participant
                                                                            Thank you Sarah, I managed to fix those issues.

                                                                            I’ve attached the most recent error message and the code as it exists right now. The first “serial” that it mentions in the error on

                                                                          • #13945
                                                                            Sara Damiano
                                                                            Moderator
                                                                              In line 239/240 you’re missing the opening brace of the setup function.  It should be void setup() { with that opening curly brace.  You can put the curl
                                                                            • #13948
                                                                              jbiddle
                                                                              Participant
                                                                                I’m catching on to that! I’m now faced with a new series of errors – “expected constructor, destructor, or type conversion before ‘(‘ token” is coming up on s
                                                                                Attachments:
                                                                              • #13952
                                                                                Sara Damiano
                                                                                Moderator
                                                                                  Well, it really is that “easy.”  “All” you do have to do is create a new project/program, make sure it’s completely blank, copy and paste the e
                                                                                • #13953
                                                                                  Sara Damiano
                                                                                  Moderator

                                                                                    Here’s your program that compiled correctly for me.

                                                                                    Attachments:
                                                                                  • #14072
                                                                                    jbiddle
                                                                                    Participant
                                                                                      Hi Sara,

                                                                                      Thanks so much for your help. Making those changes to the code you last mentioned worked and it compiled successfully! I was able to upload to the board and that feels like a huge step. Than

                                                                                      Attachments:
                                                                                    • #14074
                                                                                      Sara Damiano
                                                                                      Moderator
                                                                                        You didn’t manage to connect to the internet for the clock sync.  I’m not sure why that happened.

                                                                                        The modem values won’t update in sensor testing mode and they’re always upda

                                                                                      • #14075
                                                                                        jbiddle
                                                                                        Participant

                                                                                          I think I’m following. So how do I go about fixing that?

                                                                                        • #14076
                                                                                          Sara Damiano
                                                                                          Moderator

                                                                                            Working on it right now for you.  It will be a library update.  The lack of modem update in sensor testing mode was an oversight; I want it to be there automatically.

                                                                                          • #14077
                                                                                            Sara Damiano
                                                                                            Moderator
                                                                                              I’ve pushed what I think should fix the testing mode to the develop branch of the ModularSensors library, but I haven’t actually tested it myself yet.

                                                                                              I’ll see if I can get it teste

                                                                                            • #14079
                                                                                              jbiddle
                                                                                              Participant

                                                                                                Great! Thank you for taking the time to help me with this and trying to update the library.

                                                                                              • #14089
                                                                                                jbiddle
                                                                                                Participant

                                                                                                  Hello Sara,

                                                                                                   

                                                                                                  I just wanted to check in to see if you have had any luck with updating the libraries for this. Thanks.

                                                                                                • #14104
                                                                                                  jbiddle
                                                                                                  Participant
                                                                                                    Hi again, Sara. Just wanted to check in and see if you had any success with this. I would like to be able to finish up the programming of the board so I can finally get it in the field to start collec
                                                                                                  • #14105
                                                                                                    Sara Damiano
                                                                                                    Moderator

                                                                                                      I’m so sorry.  I haven’t tested it yet.

                                                                                                    • #14106
                                                                                                      jbiddle
                                                                                                      Participant

                                                                                                        No apology necessary, it had been a little while so I just wanted to check in and see if there had been any progress. Thank you for the update.

                                                                                                      • #14116
                                                                                                        jbiddle
                                                                                                        Participant
                                                                                                          Hello Sara, sorry to bother you but I wanted to check in again about this.

                                                                                                          Is there something I could do in the meantime while you work on the testing mode update?  Is there a way I can try to fix t

                                                                                                        • #14117
                                                                                                          Sara Damiano
                                                                                                          Moderator
                                                                                                            I’m sorry.  I finally fixed pushed what I think should be the changes needed to the develop branch, but I still haven’t programmed an actual board to test it.  You should be able to test
                                                                                                          • #14118
                                                                                                            jbiddle
                                                                                                            Participant
                                                                                                              I totally understand. I’m thankful that I’m still able to work full time from home it has been incredibly challenging. But I totally get it and it it’s totally understandable. Thanks
                                                                                                            • #14163
                                                                                                              Sara Damiano
                                                                                                              Moderator

                                                                                                                I just added another fix for the XBee wifi and the modem-measured battery voltage.  Have you been able to get it to work for you?

                                                                                                              • #14173
                                                                                                                jbiddle
                                                                                                                Participant
                                                                                                                  I have not, I’m still getting this when I monitor the output:

                                                                                                                  “Attempting to connect to the internet and synchronize RTC with NIST
                                                                                                                  Could not connect to internet for clock sync.”

                                                                                                                  Th

                                                                                                                • #14175
                                                                                                                  jbiddle
                                                                                                                  Participant

                                                                                                                    Hi Sara, any other thoughts on what I can do to troubleshoot this issue?

                                                                                                                Viewing 53 reply threads
                                                                                                                • You must be logged in to reply to this topic.