Example Zlipper Zero RAW IR file:
Filetype: IR signals file
Version: 1
# 
name: RAW_155
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 3975 4024 485 1997 484 1996 485 ...
Example Zlipper Zero RAW IR file:
Filetype: IR signals file
Version: 1
# 
name: RAW_155
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 3975 4024 485 1997 484 1996 485 ...
| import json | |
| import logging | |
| from datetime import datetime | |
| logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s') | |
| def date_to_timestamp(date_str): | |
| try: | |
| dt = datetime.fromisoformat(date_str.replace('Z', '+00:00')) | |
| return int(dt.timestamp()) | 
| import json | |
| import logging | |
| from datetime import datetime | |
| logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s') | |
| def date_to_timestamp(date_str): | |
| try: | |
| dt = datetime.fromisoformat(date_str.replace('Z', '+00:00')) | |
| return int(dt.timestamp()) | 
| #!/bin/bash | |
| Counter=20 | |
| DisplayHeader="Date Time GPU-C GPU-F CPU-C CPU-F CPU Core Vcore" | |
| while true ; do | |
| let ++Counter | |
| if [ ${Counter} -eq 21 ]; then | |
| echo -e "${DisplayHeader}" | |
| Counter=0 | |
| fi | 
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Threading; | |
| public class UnityHttpListener : MonoBehaviour | |
| { | 
This gist is to configure a Mosquitto MQTT Broker behind a Traefik reverse-proxy, both in a docker container. Mosquitto will be configuread as a TCP Service.
This is a simple configuration used on the same single server. Probably to be adapted for other cases. Having mosquitto behind a reverse proxy enables you to configure TLS on Traefik (likely you already do that for other applications as well) and to load balance different MQTT instances, but that goes beyond this gist.
As noted in Traefik docs, in the router you must use the rule HostSNI(`*`) when using non-TLS routers like in this example. Ref. https://docs.traefik.io/routing/routers/#rule_1
docker-compose.yml
| [http.routers] | |
| [http.routers.force-https] | |
| entryPoints = ["http"] | |
| middlewares = ["force-https"] | |
| rule = "HostRegexp(`{any:.+}`)" | |
| service = "noop" | |
| [http.middlewares] | |
| [http.middlewares.force-https.redirectScheme] | |
| scheme = "https" | 
Hi Banglers,
We hope you've been having fun experimenting with your Bangle.js and wanted to let you know about some important updates to the software for it.
The version of software on your Bangle.js is a very early release and has been improved hugely since November. Some of you may have encountered bugs with the middle button or find that some of the newer Apps on banglejs.com/apps don't work as they should.
Updating the software will solve these issues and get you access to new apps such as early Gadgetbridge integration for Android phone notifications.