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

Reply To: Library alternatives to achieve same goal as dataLogger in Modular Sensors

Home Forums Mayfly Data Logger Library alternatives to achieve same goal as dataLogger in Modular Sensors Reply To: Library alternatives to achieve same goal as dataLogger in Modular Sensors

#19446
neilh20
Participant

    @cameronlight,    I had a suggestion to try replit.com – enabled an account and it allows 10apps to be built free.

     

    I tried “Create a curl script with Oauth2 access to post 3 values to google sheets”

    I was logged into my google account, for latter testing. When asked to allow replit permissions pretty have to allow it all it seems, particularly read/write spreadsheets.

    This was the script it created. I ended up being able to add 3 values to a spreadsheet in my account.

     

    This is a script worked in the replit sandbox.

    ./post_to_sheets.sh <spreadsheet_id> [range] [value1] [value2] [value3]

    or per the example

    ./post_to_sheets.sh 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms Sheet1!A1:C1 Apple Banana Cherry

    There maybe some REPLIT secret sauce, as its in a bash file, it does identify program flow.

    The next step would be to see if it can be made to work on local PC. !!