Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # ---------------------------------------------------------------------------------------- | |
| # MOTIVATION | |
| # ---------------------------------------------------------------------------------------- | |
| # The current MX camera software (4.4.2.x) is not able to send POST notifications. In | |
| # order to overcome this limitation it's possible to send Raw TCP/IP messages to a gateway | |
| # which converts them into POST HTTP messages and sends them to the Web server | |
| # | |
| # This script listens to incoming TCP/IP messages and converts them into POST HTTP ones | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function runBigQuery(projectId, sql, sheetName) { | |
| var ss = SpreadsheetApp.getActive(); | |
| var sheetData = ss.getSheetByName(sheetName); | |
| sheetData.clearContents(); | |
| // Run the query | |
| try { | |
| queryResults = BigQuery.Jobs.query(projectId, sql); | |
| } | |
| catch (err) { |