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 gzip | |
import io | |
import os | |
import shutil | |
import subprocess | |
import sys | |
import glob | |
# rename all file and folders from latin1 to utf8 | |
_GZIP = shutil.which('gzip') |
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 tkinter | |
from html.parser import HTMLParser | |
from tkinter import TclError, ttk | |
import yaml | |
_components = {} | |
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
#!/usr/bin/env python | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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
.log(LoggingLevel.INFO, LOG, "receiving incoming action request [${body.actionid}][${body?.alarm?.identifier}]") |
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
from("timer://actionrequests?period=1&delay=" + period) | |
// HTTP GET | |
.to(value + "actionrequests/" + queueName + "/pop?httpClient.soTimeout=5000") | |
// If empty, wait | |
.choice() | |
.when(header(Exchange.HTTP_RESPONSE_CODE).isEqualTo(204)) | |
.log(LoggingLevel.TRACE, "actionrequests route idle") | |
.delay(period) | |
.endChoice() | |
// Else process |
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 java.io.BufferedInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.PrintStream; | |
class ReceiveCOM1 extends Thread | |
{ | |
InputStream in; | |
StartCOM1 comApp; | |
byte iUPS; |