Skip to content

Instantly share code, notes, and snippets.

View virgilvox's full-sized avatar

Moheeb Zara virgilvox

View GitHub Profile
sudo tee /etc/systemd/system/thistle-update.service > /dev/null << 'EOF'
[Unit]
Description=Thistle Update Client
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/tuc -c /boot/tuc-config.json
Restart=always
import explorerhat
import subprocess
import signal
import json
import time
import sys
import os
#include <Servo.h>
Servo yservo;
Servo xservo;
#define LASER_PIN 3
#define X_PIN 10
#define Y_PIN 9
void setup() {
/**************************************************************
*
* For this example, you need to install PubSubClient library:
* https://github.com/knolleary/pubsubclient
* or from http://librarymanager/all#PubSubClient
*
* TinyGSM Getting Started guide:
* http://tiny.cc/tiny-gsm-readme
*
* For more MQTT examples, see PubSubClient library
#include "WiFiS3.h"
#include <ArduinoMqttClient.h>
#include <ArduinoJson.h>
char ssid[] = ""; // your network SSID (name)
char pass[] = ""; // your network password
char mqtt_user[] = "";
char mqtt_pass[] = "";
#include "WiFiS3.h"
#include <ArduinoMqttClient.h>
char ssid[] = ""; // your network SSID (name)
char pass[] = ""; // your network password
char mqtt_user[] = "arduino";
char mqtt_pass[] = "pass";
[
{
"id": "fcc22e1b6f5267b7",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
require('dotenv').config();
let { Voice } = require('@signalwire/realtime-api')
const projectId = process.env.SIGNALWIRE_PROJECT_ID
const token = process.env.SIGNALWIRE_TOKEN
const verifiedNumber = process.env.VERIFIED_NUMBER
require('dotenv').config();
let { Voice } = require('@signalwire/realtime-api')
const projectId = process.env.SIGNALWIRE_PROJECT_ID
const token = process.env.SIGNALWIRE_TOKEN
const verifiedNumber = process.env.VERIFIED_NUMBER