This file contains 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
import requests | |
baseurl='http://157.230.188.100:3000/api/drives/' | |
public_key='c5d1df56d250615bfd3cc547d3bb7313ea1304d280efdefb9f26b268414d141c' | |
private_key='e18cdb6163d36b3195d17eace02932eba57314809149975fd028053feca86c02' | |
url = baseurl+public_key | |
temp = 23 | |
humid = 31 |
This file contains 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 | |
curl --location --request PUT 'http://127.0.0.1:3000/api/drives/62cc20d3974887a364a63817ef8a4367c21f5a6b275d1227c6390521e1acc0ca' --header 'Authorization: 15a74c67d6134a40b5d101b17ec6c5943b9a63a70b233979d94804a2bd776ac5' --header 'Content-Type: application/json' --data-raw '{"deviceId":"sensor1","fields":{"temp":28, "humid":18}}' |
This file contains 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
/* | |
Basic Arduino example for K-Series sensor | |
Created by Jason Berger | |
Co2meter.com | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> |
This file contains 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
#include <SPI.h> | |
#include <RH_RF95.h> | |
#define uS_TO_S_FACTOR 1000000 //Conversion factor for micro seconds to seconds | |
#define TIME_TO_SLEEP 5 //Time ESP32 will go to sleep (in seconds) | |
RTC_DATA_ATTR int bootCount = 0; | |
#define RFM95_CS 18 | |
#define RFM95_RST 14 |
This file contains 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
#include <WiFi.h> | |
#include <HTTPClient.h> | |
#include <ArduinoJson.h> | |
#include <SPI.h> | |
#include <RH_RF95.h> | |
#define RFM95_CS 18 | |
#define RFM95_RST 14 | |
#define RFM95_INT 26 |
This file contains 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
#include <WiFi.h> | |
#include <HTTPClient.h> | |
const char* ssid = "Temagami-EXT_EXT"; | |
const char* password = "888888pab70"; | |
//Your Domain name with URL path or IP address with path | |
//const char* serverName = "http://192.168.1.106:1880/update-sensor"; |
This file contains 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
// Feather9x_RX | |
// -*- mode: C++ -*- | |
// Example sketch showing how to create a simple messaging client (receiver) | |
// with the RH_RF95 class. RH_RF95 class does not provide for addressing or | |
// reliability, so you should only use RH_RF95 if you do not need the higher | |
// level messaging abilities. | |
// It is designed to work with the other example Feather9x_TX | |
#include <SPI.h> | |
#include <RH_RF95.h> |
This file contains 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
#include <SPI.h> | |
#include <LoRa.h> | |
// WIFI_LoRa_32 ports | |
// GPIO5 -- SX1278's SCK | |
// GPIO19 -- SX1278's MISO | |
// GPIO27 -- SX1278's MOSI | |
// GPIO18 -- SX1278's CS | |
// GPIO14 -- SX1278's RESET | |
// GPIO26 -- SX1278's IRQ(Interrupt Request) |
This file contains 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 | |
# command line argument is the URL of the youtube vid | |
youtube-dl -x --audio-format mp3 $1 |
This file contains 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
#include <TinyGPS++.h> | |
//#include <SoftwareSerial.h> | |
/* | |
This sample code demonstrates how to use an array of TinyGPSCustom objects | |
to monitor all the visible satellites. | |
Satellite numbers, elevation, azimuth, and signal-to-noise ratio are not | |
normally tracked by TinyGPS++, but by using TinyGPSCustom we get around this. | |
The simple code also demonstrates how to use arrays of TinyGPSCustom objects, |