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

Sara Damiano

Forum Replies Created

Viewing 10 posts - 191 through 200 (of 465 total)
  • Author
    Posts
  • in reply to: PlatormIO: ..Python 2.7 interpreter error #13973
    Sara Damiano
    Moderator

      That’s the folder for the library itself.  You want to create your own separate folder for your logger deployment and its code.  Follow the steps from the tutorial, episode 9, in the section “Managing your sketches in your own deployments repo.”  In that, you’re copying the folder for a single example (simple_logging) into your own deployment project.  Within that folder is the platformio.ini needed for that example.

      in reply to: Managing EnviroDIY libraries and dependencies #13972
      Sara Damiano
      Moderator

        That automatic library population used to happen in PIO version 3ish, but it got lost somewhere in the updates.  It’s good to hear it’s back again.

        I don’t usually specify the version of ModularSensors in my ini file, but it’s not a bad idea to do so.  If you want to later recreate the set-up exactly, then it’s definitely easier if the version number is in the set-up.  Most of the time for us, though, when something goes wrong in the field, we reprogram it with the newest version of the library rather than reprogram with the version it had had previously.

        in reply to: SDI-12 Library #13967
        Sara Damiano
        Moderator

          My intent was to help you by giving you an example of something you could modify to your needs, not to give you a final working program.

          This version will compile.  I don’t know if it will actually work for your sensors or log data as expected.  You will need to test that.

           

          in reply to: PlatormIO: ..Python 2.7 interpreter error #13964
          Sara Damiano
          Moderator

            Ctrl+S will save the file.  That keyboard shortcut works on almost all Windows programs, including VS Code, Atom, MS Word, Excel, etc.

            You can make the normal “file” menu visible in Atom in the settings.  I’ve attached a screenshot.  PlatformIO is just a command line tool and an extension for an editor.  The editing program is either VS Code or Atom and basic functions like saving are part of the editor and not of PlatformIO.  Have you decided to stick with Atom?  I’m only asking so I can give you screenshots of the right editor.

            in reply to: PlatormIO: ..Python 2.7 interpreter error #13961
            Sara Damiano
            Moderator

              Could it be DropBox syncing?  If you have that folder set to automatically synchronize with anything, make sure you exclude the entire .pio folder and all of its subfolders from your synchronization.  PlatformIO expects to have full control of that folder and will be very, very unhappy if other processes try to lock onto those files.  Every time you build/compile your program there are a bunch of new files created and others modified or deleted in sub-directories of that .pio file.  Those files are not useful to archive, but are needed to successfully convert your code from what you see into assembly that your board can use.

              You have git installed, right?  I don’t think you’d even get this far without it.  I think either VSCode or Atom (both) include it.

              Otherwise, try running the same install command a few times.  As long as it gets a little farther each time, it’s fine.  I think this crashing happens when the background processes for the linter and compiler are trying to read your libraries while you’re installing them in the foreground.

              in reply to: PlatormIO: ..Python 2.7 interpreter error #13958
              Sara Damiano
              Moderator

                Did you try just running the same command a second time like I’d suggested?  Did it install any libraries?

                in reply to: PlatormIO: ..Python 2.7 interpreter error #13955
                Sara Damiano
                Moderator

                  The platformio.ini file is just a text file.  If you can open it and view it, it’s not corrupted.

                  The commands I gave you should accomplish getting the libraries installed.  Sometimes when installing a lot of libraries the installer gets ahead of itself and trips and crashes.  Most of the time, running the command a second time will be successful.  Make sure that all installs are completely finished before you attempt to build anything.

                  Since you’ve mentioned moving things around in the lib and other folders from what you downloaded, I don’t think it would be a bad idea to delete it and start again if the library install doesn’t fix your issues.

                  in reply to: Editing Variable UUIDs #13953
                  Sara Damiano
                  Moderator

                    Here’s your program that compiled correctly for me.

                    Attachments:
                    in reply to: Editing Variable UUIDs #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 example from GitHub into your new project, select precisely each UUID and delete the example junk text, select and copy the real UUID from the MonitorMW webpage and paste it in exactly the place you removed the example from, repeat that 7+ times, install all the libraries correctly, and compile and flash your Mayfly.  That’s it.

                      It just that it’s actually kind-of tricky to make sure you’ve selected exactly the right text when you’re doing all the copy-pasting and if you didn’t remember to start with something blank at the beginning things get mixed up and then you have to start deleting and fixing and then you end up in this mess.

                      Looking back at the old threads.. I told you to delete the loop because you had other junk after the end of the loop and I went back too many line.  Doh.  Totally my fault.

                      After adding the opening brace I mentioned in line 239 and adding the loop at the very end, after everything else, your program compiles fine for me.  Did you by chance accidentally add both an opening and closing brace instead of just the opening one?  The editor helpfully adds the closing brace for you when you type the opening one.

                       

                      in reply to: Connecting to Verizon #13951
                      Sara Damiano
                      Moderator

                        Let us know how the Verizon SIMs work for you!

                      Viewing 10 posts - 191 through 200 (of 465 total)