-
Sara Damiano replied to the topic Double_logger example modification in the forum Mayfly Data Logger 6 years ago
Also, just so you understand, ModularSensors isn’t powerful enough to “stash” recent data and save it for later. So when you’re in production and only connecting once an hour, the data being sent on the hour will only be for that one point. If for some reason there’s something wrong with the cellular connection in that moment it is supposed to s…[Read more]
-
Sara Damiano replied to the topic Double_logger example modification in the forum Mayfly Data Logger 6 years ago
@w3asa – I don’t have formal training in computer science or even in electrical engineering. I have one bachelor’s level degree – in chemistry.
@stoltzfus-12osu-edu – two things with your code – and I completely understand why you did it the way you did – because the example did. Blame the chemist.
1 – you’re creating each variable 3 times in…[Read more]
-
Sara Damiano replied to the topic Manual upload of CSV files on MonitorMyWatershed in the forum Mayfly Data Logger 6 years ago
The csv uploading tools are very sensitive to an irregularities in the files. We would very much like to improve them, but right now that’s pending time and, mostly, budget.
-
Sara Damiano replied to the topic MaximDS18 on I2C Hub in the forum Mayfly Data Logger 6 years ago
If your goal is to have everything on that one 4-port splitter – it won’t work.
The DS18 isn’t I2C – it’s OneWire. If you really want to use it on that Grove port, you should be able to use it as either D16(SCL) or D17(SDA), but I strongly suspect that attempting to dual-use one of the I2C pins for OneWire would screw up communication with…[Read more]
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
If you need the SD library in your program, you need to include it in your platformio.ini file in the lib_dep section. Add RTCTimer and Sodaq_DS3231 there while you’re at it since it looks like you use them.
Other answers:
- ModularSensors uses I2C, not Serial, for Atlas sensors. Please read the documentation I linked earlier. It has links to…
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
You need to include the Arduino library – add
#include <Arduino.h>to the top of your program. The Arduino IDE adds that automatically and does some other “massaging” of files when it converts an ino to a real cpp file that gcc then compiles; PlatformIO doesn’t. Depending on how you’ve structured your program, that may cause a few more s…[Read more] -
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
In episode 9, copy and paste from the folder that you already saved on your computer from when you cloned the whole library not from GitHub.
You should generally create a whole new project for each logger/program – just like in the Arduino IDE. The platformio.ini file must be in the top level directory for the project – not in a…[Read more]
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
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 (<code cl…[Read more]
-
Sara Damiano replied to the topic Managing EnviroDIY libraries and dependencies in the forum Mayfly Data Logger 6 years ago
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 n…[Read more]
-
Sara Damiano replied to the topic SDI-12 Library in the forum Other Data Loggers 6 years ago
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.
#include <SDI12.h> #include <SD.h> #include <Wire.h> #include &…
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
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…[Read more]
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
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 ti…[Read more]
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
Did you try just running the same command a second time like I’d suggested? Did it install any libraries?
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
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 su…[Read more]
-
Sara Damiano replied to the topic Editing Variable UUIDs in the forum Monitor My Watershed 6 years ago
Here’s your program that compiled correctly for me.
-
Sara Damiano replied to the topic Editing Variable UUIDs in the forum Monitor My Watershed 6 years ago
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…[Read more]
-
Sara Damiano replied to the topic Connecting to Verizon in the forum Mayfly Data Logger 6 years ago
Let us know how the Verizon SIMs work for you!
-
Sara Damiano replied to the topic Editing Variable UUIDs in the forum Monitor My Watershed 6 years ago
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 curly brace right after the parenthesis on line 239 or by itself on line 240.Also, your code is missing the “loop()” function – it will set everything up and then do nothing. You probably want to…[Read more]
-
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
You didn’t post the screenshot of the
pio lib installso I’m not sure what’s happening there.Try installing the libraries one after the other using these commands:
pio lib install EnviroDIY_ModularSensorspio lib install https://github.com/PaulStroffregen/AltSoftSerial.gitpio lib install https://github.com/SRGDamia1/NeoSWSerial.gitpio lib…[Read more] -
Sara Damiano replied to the topic PlatormIO: ..Python 2.7 interpreter error in the forum Mayfly Data Logger 6 years ago
As a beginner, I would suggest you pick either Atom OR VS Code – whichever one feels most intuitive to you – and use that one exclusively rather than attempting to flip back and forth between them. Both editors will give you exactly the same tools for PlatformIO, but the menus and drop-downs and styling are different. Rather than try to to r…[Read more]
- Load More
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of