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 serial | |
import time | |
from cryptography.hazmat.primitives.ciphers.aead import AESGCM | |
from binascii import unhexlify | |
import sys | |
import string | |
import paho.mqtt.client as mqtt | |
import xml.etree.ElementTree as ET | |
from gurux_dlms.GXDLMSTranslator import GXDLMSTranslator | |
from bs4 import BeautifulSoup |
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
- platform: rest | |
name: voron24_sensor | |
resource: "http://192.168.8.25:7125/printer/objects/query?heater_bed&extruder&print_stats&toolhead&display_status&virtual_sdcard&temperature_sensor%20raspberry_pi&temperature_sensor%20MCU&temperature_sensor%20chamber_temp" | |
json_attributes_path: "$.result.status" | |
json_attributes: | |
- heater_bed | |
- extruder | |
- print_stats | |
- toolhead | |
- display_status |
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
"CWD Card Template": { | |
"Column_height_order": "3", | |
"Column_spacing": "1.26", | |
"Column_step": "1", | |
"Custom_material_type": "", | |
"First_layer_height": "0.2", | |
"Horizontal_padding": "2.48", | |
"Label_alignment": "0", | |
"Label_corner_radius": "0", | |
"Label_depth": "3", |
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
ServerRoot "/usr/local/apache2" | |
#Listen 12.34.56.78:80 | |
Listen 80 | |
LoadModule authn_file_module modules/mod_authn_file.so | |
#LoadModule authn_dbm_module modules/mod_authn_dbm.so | |
#LoadModule authn_anon_module modules/mod_authn_anon.so | |
#LoadModule authn_dbd_module modules/mod_authn_dbd.so | |
#LoadModule authn_socache_module modules/mod_authn_socache.so | |
LoadModule authn_core_module modules/mod_authn_core.so |
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
'E2E tests': | |
before_script: | |
- yarn install --force >/dev/null | |
- /bin/bash -c '/usr/bin/killall -q lite-server; exit 0' | |
- export DOCKERHOST=$(ifconfig | grep -E "([0-9]{1,3}\\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d ':' | head -n1) | |
- export E2E_BASE_URL="http://$DOCKERHOST:8000/#." | |
- lite-server -c bs-config.js >/dev/null & | |
script: | |
- node_modules/.bin/protractor ./protractor.conf.js --seleniumAddress="http://localhost:4444/wd/hub" --baseUrl="http://$DOCKERHOST:8000" --browser chrome | |
- killall lite-server >/dev/null |
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
stages: | |
- test | |
- build | |
- deploy | |
cache: | |
key: 'mailingowl-composer-cache' | |
paths: | |
- .composer-cache |
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
<?php | |
namespace Application\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* Application\Entity\Mandator | |
* |
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
START TRANSACTION | |
DELETE FROM `milestone` WHERE `milestone_id` = ? | |
array(1) { [0]=> int(13) } array(1) { [0]=> string(7) "integer" } | |
DELETE FROM `milestone` WHERE `milestone_id` = ? | |
array(1) { [0]=> int(14) } array(1) { [0]=> string(7) "integer" } | |
DELETE FROM `event` WHERE `event_id` = ? | |
array(1) { [0]=> int(14) } array(1) { [0]=> string(7) "integer" } |
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
$this->add( | |
array( | |
'type' => 'DoctrineModule\Form\Element\ObjectSelect', | |
'name' => 'field_id', | |
'options' => array( | |
'object_manager' => $em, | |
'target_class' => 'Application\Entity\Field', | |
'label_generator' => function($targetEntity) { | |
return $targetEntity->getName(); | |
}, |
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
$hydra = new DoctrineHydrator($sm->get('Doctrine\ORM\EntityManager', false)); | |
$hydra->addStrategy('date_start', new \cwdCommon\Doctrine\Strategy\DateTime()); | |
$hydra->addStrategy('date_end', new \cwdCommon\Doctrine\Strategy\DateTime()); | |
$this->setHydrator($hydra); | |
$this->setObject(new \Application\Entity\Event()); | |
$this->add( | |
array( | |
'name' => 'date_start', |
NewerOlder