Skip to content

Instantly share code, notes, and snippets.

@aznoohwee
aznoohwee / node red roku autoplay
Created Oct 4, 2020
Node red home assistant script to keep roku playing
View node red roku autoplay
[{"id":"702ec556.56c62c","type":"tab","label":"HA_S00_Roku","disabled":false,"info":""},{"id":"66a4867d.a17bc8","type":"debug","z":"702ec556.56c62c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":600,"wires":[]},{"id":"c35e6efa.0cc1c","type":"server-state-changed","z":"702ec556.56c62c","name":"","server":"f1283dff.e8922","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"media_player.roku_master","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":220,"y":360,"wires":[["8ffec5bd.951c5","c66cf0f4.023b58"]]},{"id":"8ffec5bd.951c5","type":"switch","z":"702ec556.56c62c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"paused","vt":"str"},{"t":"eq","v":"
View Configuration_adv.h
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@aznoohwee
aznoohwee / esp8266_dht22.ino
Last active Jan 29, 2018
NodeMCU Publish DHT22 Temperature and Humidity to MQTT
View esp8266_dht22.ino
#include <DHT.h>
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <math.h>
const char* essid = "my_wifi_ssid";
const char* password = "my_wifi_password";
const char* topic = "esp8266";
You can’t perform that action at this time.