I have all hardware virtualized in ESXi 6.5...
Synology DSM 5.2-5644
Ubuntu 16.04
On your fresh install on Ubuntu 16.04:
- Click the Connections icon on the top bar
- Goto
Edit Connections
| <?php | |
| function sunIsUp(\DateTime $when, $lat, $lon): bool { | |
| $whenTimestamp = $when->getTimestamp(); | |
| $sunriseTimestamp = date_sunrise( | |
| $whenTimestamp, | |
| SUNFUNCS_RET_TIMESTAMP, | |
| $lat, | |
| $lon |
| <?php | |
| // -- types are a compile-time propagated concept | |
| // https://psalm.dev/r/338f74a96c | |
| class TheType | |
| { | |
| /** @var string */ | |
| public $foo = 'bar'; | |
| } |
| jobs: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| chunk_count: [5] | |
| chunk_number: [1, 2, 3, 4, 5] | |
| env: | |
| CHUNK_COUNT: ${{matrix.chunk_count}} | |
| CHUNK_NUMBER: ${{matrix.chunk_number}} |
| import datetime | |
| import logging | |
| import json | |
| import paho.mqtt.client as mqtt # pip3 install paho-mqtt | |
| GLOW_LOGIN = "GLOW_LOGIN" | |
| GLOW_PASSWORD = "GLOW_PASSWORD" | |
| GLOW_DEVICE_ID = "GLOW_DEVICE_ID" | |
| # Fields gathered from the ZigBee Smart Energy Standard document |
GLOW_DEVICE_ID with the relevant information for your device):
mqtt:
sensor:
- name: "Home Power"
state_topic: "glow/GLOW_DEVICE_ID/SENSOR/electricitymeter"
unit_of_measurement: 'W'
value_template: "{{ (value_json['electricitymeter']['power']['value'] * 1000) | int }}"
icon: 'mdi:flash'
| FROM balabit/syslog-ng:3.35.1 | |
| COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf |