This file contains 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
// source image | |
image="img.png"; | |
// lithophane height | |
H = 2.6; | |
// dimensions | |
L = 90; | |
W = 60; |
This file contains 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
;;Pause macro | |
G92 E0 | |
G1 E-3.6000 F5400 ; 3.6mm retract | |
G92 E0 | |
G1 X190 Y0 F4000 ; Move extruder to X190 Y0. Adjust if needed. | |
M17 ; Enable steppers | |
M226 P6 S0 ; Await LOW on pin 6 | |
;;End macro |
This file contains 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
# Motion будет запускаться как сервис systemd, | |
# поэтому родная функциональность демона у него отключена | |
daemon off | |
setup_mode off | |
log_level 6 | |
# Директория, куда будут сохраняться видео | |
target_dir /opt/CAM1 | |
# Настройки камеры |
This file contains 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
#!/usr/bin/sh | |
if [ -f $1 ]; then | |
mv $1 /opt/FIN1/ | |
fi |
This file contains 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
# Токен бота | |
TOKEN = 'Qwerty231321321' | |
# Идентификатор канала для уведомлений | |
CHANNEL = 123123123123 | |
# Директория из которой будут отправляться файлы | |
CAMDIR = '/opt/FIN1' | |
# Интервал проверки новых файлов |
This file contains 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 os | |
import time | |
import discord | |
import asyncio | |
import subprocess | |
import config | |
class CCTV(discord.Client): | |
def __init__(self, *args, **kwargs): |
This file contains 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 gc | |
import network | |
import esp | |
esp.osdebug(None) | |
gc.collect() |
This file contains 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
pid_file /var/run/mosquitto.pid | |
persistence true | |
persistence_file mosquitto.db | |
persistence_location /opt/mosquitto/ | |
log_dest none | |
log_timestamp_format %Y-%m-%dT%H:%M:%S | |
log_type debug | |
log_type error | |
log_type warning | |
log_type notice |
This file contains 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
DEBUG = False | |
MQTTSRV = '192.168.0.10' | |
MQTTPORT = 19780 | |
MQTTUSER = 'mqttlogin' | |
MQTTPASS = 'MQttPassWord123' | |
INTERVAL = 2 | |
TOPIC_PREFIX = 'home/desktop/' |
This file contains 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
[Unit] | |
Description=MQTT Desktop Agent | |
[Service] | |
ExecStartPre=/bin/sh -c 'until ping -c1 google.com; do sleep 1; done;' | |
ExecStart=python /home/yourusername/bin/mqtt-desktop-agent/mqtt-desktop-agent.py | |
[Install] | |
WantedBy=default.target |
OlderNewer