Currently 355 devies are supported.
Manufacturer | Device | Implemented | Tested |
---|---|---|---|
Beckhoff | AX5101-0000-0003 | ||
Beckhoff | AX5101-0000-0004 | ||
Beckhoff | AX5101-0000-0005 | ||
Beckhoff | AX5101-0000-0006 |
def rainbow_color_stops(n=10, end=2 / 3): | |
rgb = [hls_to_rgb(end * i / (n - 1), 0.5, 1) for i in range(n)] | |
hex = [f"#{int(255.0*r):02x}{int(255.0*g):02x}{int(255.0*b):02x}" for r, g, b in rgb] | |
return hex |
from subprocess import Popen, PIPE | |
from datetime import datetime as dt | |
import json | |
occ = ["docker-compose", "exec", "-u", "www-data", "app", "/var/www/html/occ"] | |
list_users_cmd = occ + ["user:list", "--output=json"] | |
with Popen(list_users_cmd, stdout=PIPE) as proc: | |
users = json.loads(proc.stdout.read().decode("UTF-8")) |
#!/bin/sh | |
case $1 in | |
"update" ) | |
docker-compose $(find . -maxdepth 2 -name compose.*.yaml -type f -print | sed -e 's/^/-f /') pull --ignore-pull-failures && \ | |
docker-compose $(find . -maxdepth 2 -name compose.*.yaml -type f -print | sed -e 's/^/-f /') up -d;; | |
"status" ) | |
docker-compose $(find . -maxdepth 2 -name compose.*.yaml -type f -print | sed -e 's/^/-f /') ps -a;; | |
"lf" ) | |
docker-compose $(find . -maxdepth 2 -name compose.*.yaml -type f -print | sed -e 's/^/-f /') logs -f ${@:2};; |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"enable": true, |
# Maintainer: Andy Makovec <andymakovec[at]gmail[dot]com> | |
# Contributor: Rachel Mant <dx-mon[at]users[dot]sourceforge[dot]net> | |
# Contributor: Bouni <bouni-aur[at]owee[dot]de> | |
pkgname=kicad-nightly-bin | |
_pkgname=kicad-nightly | |
provides=('kicad-nightly') | |
conflicts=('kicad-nightly') | |
pkgdesc='Electronic schematic and printed circuit board (PCB) design tools' | |
arch=('x86_64') |
#!/bin/bash | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
# Generated by Powerlevel10k configuration wizard on 2023-05-30 at 10:41 CEST. | |
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 09432. | |
# Wizard options: nerdfont-complete + powerline, large icons, classic, unicode, dark, | |
# 24h time, angled separators, sharp heads, flat tails, 1 line, compact, many icons, | |
# fluent, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
======================================EP2308====================================== | |
====================================Input PDOs==================================== | |
1 Name: Input Index: 0x6000 SubIndex: 1 BitLength: 1 Datatype: BOOL | |
2 Name: Input Index: 0x6010 SubIndex: 1 BitLength: 1 Datatype: BOOL | |
3 Name: Input Index: 0x6020 SubIndex: 1 BitLength: 1 Datatype: BOOL | |
4 Name: Input Index: 0x6030 SubIndex: 1 BitLength: 1 Datatype: BOOL | |
===================================Output PDOs==================================== | |
1 Name: Output Index: 0x7040 SubIndex: 1 BitLength: 1 Datatype: BOOL | |
2 Name: Output Index: 0x7050 SubIndex: 1 BitLength: 1 Datatype: BOOL |