This file contains hidden or 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
--- | |
version: "3.7" | |
services: | |
nginx: | |
image: nginx | |
volumes: | |
- nginx-etc:/etc/nginx:ro | |
- nginx-www:/var/www:ro | |
- certbot-etc:/etc/letsencrypt:ro |
This file contains hidden or 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
--- | |
version: "3.7" | |
services: | |
znc: | |
image: znc | |
user: "1100001:1100001" | |
volumes: | |
- znc-data:/znc-data | |
networks: |
This file contains hidden or 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 "registry.h" | |
template<typename Type> | |
void Registry::registerType(){ | |
registry[Type::name] = [](){return std::unique_ptr<RegistryType>(new Type);}; | |
}; | |
std::unique_ptr<RegistryType> Registry::create(const std::string &name){ |
This file contains hidden or 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 "rgb_controller_mode.h" | |
#include "rgb_controller_mode_straight.h" | |
#include "FastLED.h" | |
RGBControllerModeStraight::RGBControllerModeStraight(RGBController* controller, uint8_t r, uint8_t g, uint8_t b) { | |
RGBControllerMode::RGBControllerMode(&controller); | |
_color = CRGB(r, g, b); | |
}; |
This file contains hidden or 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 "Arduino.h" | |
#include "common/common.h" | |
#include "EEPROM.h" | |
Task* wifi_task = nullptr; // monitor and reconnect wifi | |
Task* led_task = nullptr; // move leds toward target color | |
CRGB color; // target color | |
void setup() { |
This file contains hidden or 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 "Arduino.h" | |
#include "common/common.h" | |
void setup() { | |
leds_setup(); | |
Task wifi_task = wifi_setup(ts); | |
} | |
void loop() { |
This file contains hidden or 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 <ESP8266WiFi.h> | |
#include "TaskScheduler.h" | |
Task * wifi_setup(Scheduler &s) { | |
WiFi.mode(WIFI_STA); | |
WiFi.setAutoReconnect(true); | |
WiFi.begin(WIFI_SSID, WIFI_PASS); |
This file contains hidden or 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 <Arduino.h> | |
#include "wifi/wifi.h" | |
#include "leds/leds.h" | |
#include <TaskScheduler.h> | |
#include <ESPAsyncWebServer.h> | |
#include "AsyncJson.h" | |
#include "ArduinoJson.h" | |
void check_wifi(); |
This file contains hidden or 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 "leds.h" | |
#include <FastLED.h> | |
CRGB leds[NUM_LEDS]; | |
void setup_leds () { | |
FastLED.addLeds<NEOPIXEL, LED_PIN>(leds, NUM_LEDS); | |
fill_solid(leds, NUM_LEDS, CRGB::Red); | |
} |
This file contains hidden or 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 { key } from "./key.js"; | |
import { loadScript } from "./loadScript.js"; | |
loadScript( | |
"https://maps.googleapis.com/maps/api/js?key=" + key, | |
() => loadScript("map.js", () => render_map()), | |
); |
NewerOlder