GithubHelp home page GithubHelp logo

lorol / googlesheet_dht_simple Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 73 KB

Read Write Delete Googlesheet rows with ESP8266 DHT sensor data

JavaScript 17.48% C 1.57% Arduino 20.43% C++ 59.13% Batchfile 1.39%

googlesheet_dht_simple's Introduction

This project is based on https://github.com/electronicsguy/ESP8266

Other information and examples used: https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/ https://gist.github.com/bmcbride/7069aebd643944c9ee8b

"Code.gs" is the server-side script.

  1. Enter sheet name where data is to be written below var SHEET_NAME = "Sheet1";

  2. Run > setup

  3. Publish > Deploy as web app - enter Project Version name and click 'Save New Version' - set security level and enable service (most likely execute as 'me' and access 'anyone, even anonymously)

  4. Copy the 'Current web app URL' and post this in your form/script action

  5. Insert column names on your destination sheet matching the parameter names of the data you are passing in (exactly matching case)

Script limits receiving to 800 rows, then deletes first 700 and keeps last 100 Additionally, you can make another Sheet2 on same workbook for charts of last 20 rows to share it: Put to A1 cell: =SORT(QUERY(Sheet1!A:D,"order by A desc limit 20"),1,0)

  1. Usage:

See Sheet1.png and Code.gs.png for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.