Skip to content

Instantly share code, notes, and snippets.

View azhaganandhan's full-sized avatar

Azhaganandhan azhaganandhan

  • Talam Auroville
  • Auroville
View GitHub Profile
import Adafruit_DHT
import requests
import time
# ThingSpeak settings
channel_id = '<your_channel_id>'
write_key = '<your_write_key>'
write_url = f'https://api.thingspeak.com/update?api_key={write_key}'
# DHT sensor settings
import requests
# ThingSpeak settings
channel_id = '<your_channel_id>'
write_key = '<your_write_key>'
write_url = f'https://api.thingspeak.com/update?api_key={write_key}'
# ... (previous code)
while True:
import Adafruit_DHT
import Adafruit_BMP.BMP085 as BMP085
import time
# Initialize DHT sensor
dht_sensor = Adafruit_DHT.DHT11
dht_pin = 4 # GPIO4
# Initialize BMP sensor
bmp_sensor = BMP085.BMP085()
FROM bitwalker/alpine-elixir:1.9.0 AS phx-builder
MAINTAINER Shankar Dhanasekaran <shankardevy@gmail.com>
# Important! Update this no-op ENV variable when this Dockerfile
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT=2019-07-31
FROM mikaak/elixir-node:1.10-alpine
warning: :simple_one_for_one strategy is deprecated, please use DynamicSupervisor instead
(elixir 1.12.3) lib/supervisor.ex:604: Supervisor.init/2
(stdlib 3.16.1) supervisor.erl:330: :supervisor.init/1
(stdlib 3.16.1) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.16.1) gen_server.erl:390: :gen_server.init_it/6
(stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
warning: :simple_one_for_one strategy is deprecated, please use DynamicSupervisor instead
(elixir 1.12.3) lib/supervisor.ex:604: Supervisor.init/2
(elixir 1.12.3) lib/supervisor.ex:556: Supervisor.start_link/2
#include "SPI.h"
#include "SD.h"
#include "DHT.h"
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// For post request
#include <ESP8266HTTPClient.h>
//Program by Jeremy Blum
//www.jeremyblum.com
//Reads Temp in Celcius and Shows it on Computer
//Include Wire I2C Library
#include <Wire.h>
int temp_address = 0;
void setup()
{
#include "Arduino.h"
#include "config.h"
#include "uTimerLib.h"
#include <stdint.h>
#include <ctype.h>
#include <watchdog.h>
#include <SPI.h>
#include <SD.h>
#include <DS3231.h>
#include <RH_RF95.h>
/* catena4450m102_waterlevel.ino Fri Apr 12 2019 13:25:48 dhineshkumar */
/*
Module: catena4450m102_waterlevel.ino
Function:
Code for the Water pressure transducer with Catena 4450-M102.
Version:
V0.2.1 Fri Apr 12 2019 13:25:48 dhineshkumar Edit level 5
Copyright notice:
This file copyright (C) 2017-19 by
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
bash-5.0# pg_restore -d av_account /tmp/av_account.dump -c -U av_account
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2880; 2606 28952 FK CONSTRAINT active_storage_attachments fk_rails_c3b3935057 av_account
pg_restore: [archiver (db)] could not execute query: ERROR: constraint "fk_rails_c3b3935057" of relation "active_storage_attachments" does not exist
Command was: ALTER TABLE ONLY public.active_storage_attachments DROP CONSTRAINT fk_rails_c3b3935057;
pg_restore: [archiver (db)] Error from TOC entry 2882; 2606 29042 FK CONSTRAINT oauth_access_grants fk_rails_b4b53e07b8 av_account
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.oauth_access_grants" does not exist
Command was: ALTER TABLE ONLY public.oauth_access_grants DROP CONSTRAINT fk_rails_b4b53e07b8;