Displays the currently playing song from pianobar, a CLI client for pandora.com
Your system ruby
must have the following gems installed: net/http
, json
and uri
.
#!/usr/bin/python3 | |
import requests | |
import json | |
import re | |
import paho.mqtt.client as mqtt | |
import paho.mqtt.publish as publish | |
# Regex to match the hidden input on the initial log in page |
#include <SparkFun_Bio_Sensor_Hub_Library.h> | |
#include <Wire.h> | |
#include <SPI.h> | |
#if defined(ESP32) | |
#include <WiFi.h> | |
#elif defined(ESP8266) | |
#include <ESP8266WiFi.h> | |
#else | |
#error "Only ESP32 and ESP8266 are supported!" | |
#endif |
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
const char ssid[] = "fubaz"; | |
const char pass[] = "fubar"; | |
WiFiUDP udp; | |
void setup(){ | |
Serial.begin(115200); | |
WiFi.begin(ssid, pass); |
server { | |
listen 80 default_server; | |
server_name _; | |
location = /health-check { | |
return 200; | |
access_log off; | |
} | |
location / { |
#include <WiFi.h> | |
#include <ESPmDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include "DHT.h" | |
#include <PubSubClient.h> | |
#include <SimpleTimer.h> //https://github.com/jfturcot/SimpleTimer | |
//USER CONFIGURED SECTION START// | |
const char* ssid = "skynet_iot"; |
#!/usr/bin/env ruby | |
require 'bwa/client' | |
require 'bwa/discovery' | |
require 'influxdb' | |
database = "udp" | |
name = 'environment' | |
time = (Time.now.to_r * 1000).to_i | |
time_precision = 'ms' |
server { | |
listen 80 default_server; | |
server_name _; | |
root /var/www/zm; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} |
dmesg | tail -n6 | |
[72625.588687] Fusion MPT base driver 3.04.20 | |
[72625.588689] Copyright (c) 1999-2008 LSI Corporation | |
[72625.590276] Fusion MPT misc device (ioctl) driver 3.04.20 | |
[72625.590319] mptctl: Registered with Fusion MPT base driver | |
[72625.590320] mptctl: /dev/mptctl @ (major,minor=10,220) | |
[72782.663520] Fusion MPT SAS Host driver 3.04.20 | |
lspci -nn|grep -i scsi | |
1b:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] [1000:0072] (rev 02) | |
dmesg|grep -i lsi |
cloned_interfaces="bridge0 tap0 tap1 tap2 lagg0"
ifconfig_bridge0="addm lagg0 addm tap0 addm tap1 addm tap2"
vm_list="unifi zm1 grafana"
ifconfig tap2 create