Skip to content

Instantly share code, notes, and snippets.


Vimarsh vimarsh244

View GitHub Profile
vimarsh244 /
Created Jul 28, 2021
Caprover ARM Apps Configurations

In this Gist I will be having list of some popular self hosted apps and their configuration files for Caprover to run on ARM Systems.

Caprover ( in my opinion is the easiest and best way to manage and self-host apps like Nextcloud, Wordpress, etc.

View recieving_data_using_ultrasound_sending_toBlynk.ino
Developed by: Eduardo Zola - Zola Lab 2018 - -
Ultrasonic Data Communication
Modified by Vimarsh -
To send recieved weather data to IOT app sevice Bly
int pos = 0;
View sending_bme280Data_using_ultrasound.ino
Developed by: Eduardo Zola - Zola Lab 2018 - -
Ultrasonic Data Communication
Edited by Vimarsh -
To send weather data using BME 280 sensor
#include <Wire.h>
View old_notWorking_test_recieve_using_ultrasonic_sensor.ino
#define pIn 8
int cumulative_time = 0;
int MAX_DURATION = 500 * 1000;
byte timeD[5000];
String signalR = "";
void setup() {
pinMode(pIn, INPUT);
View old_notWorking_test_send_using_ultrasonic_sensor.ino
String data = "11011010";
#define oPin D3
void setup() {
pinMode(oPin, OUTPUT);
void loop() {
for (int x = 1; x < 500; x++) {
for (int i = 0; i < data.length(); i++) {
int n = data[i];
from picamera.array import PiRGBArray
import RPi.GPIO as GPIO
from picamera import PiCamera
import time
import cv2
import numpy as np
import math
GPIO.setup(13, GPIO.OUT)
View Libraries for Computer Vision
# install all dependent libraries of OpenCV (yes, this is one long command)
pi@raspberrypi:~ $ sudo apt-get install libhdf5-dev -y && sudo apt-get install libhdf5-serial-dev -y && sudo apt-get install libatlas-base-dev -y && sudo apt-get install libjasper-dev -y && sudo apt-get install libqtgui4 -y && sudo apt-get install libqt4-test -y# install OpenCV and other libraries
pi@raspberrypi:~ $ pip3 install opencv-python
Collecting opencv-python
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.16.2 opencv-python- $ pip3 install matplotlib
vimarsh244 / Low_power_Weather_Station.ino
Last active Oct 12, 2019
A low power Weather Station that doesn't need to be charged for months
View Low_power_Weather_Station.ino
#include <Wire.h>
#include <ESP8266WiFi.h>
String apiKey = "<API_KEY>"; // Enter your Write API key from ThingSpeak
const char *ssid = "ssid"; // replace with your wifi ssid and wpa2 key
const char *pass = "pass";
const char* server = "";
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>