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
| FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" | |
| SRC_URI += " \ | |
| file://enable_wireguard.cfg \ | |
| " | |
| KERNEL_MODULE_AUTOLOAD_append = " wireguard " |
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 {useAuth} from "react-oidc-context"; | |
| export default function LoginPage() { | |
| const auth = useAuth(); | |
| return <> | |
| <div style={{display: "flex", alignItems: 'center', justifyContent: 'center'}}> | |
| <div style={{width: "25rem", display: "block", margin: "2rem"}}> | |
| <h1>Web Energy Monitor</h1> |
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 { | |
| DataTable, | |
| Loading, | |
| Tag, Toggletip, ToggletipButton, ToggletipContent, Layer | |
| } from "@carbon/react"; | |
| import {Fragment} from "react"; | |
| import {useQuery} from "@tanstack/react-query"; | |
| import {Information} from "@carbon/icons-react"; | |
| const { |
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
| Bridge mqtt:broker:myInsecureBroker [ host="192.168.0.42", secure=false ] | |
| Thing mqtt:topic:mything "mything" (mqtt:broker:myInsecureBroker) { | |
| Channels: | |
| Type switch : lamp "Kitchen Lamp" [ stateTopic="lamp/enabled", commandTopic="lamp/enabled/set" ] | |
| Type switch : fancylamp "Fancy Lamp" [ stateTopic="fancy/lamp/state", commandTopic="fancy/lamp/command", on="i-am-on", off="i-am-off" ] | |
| Type string : alarmpanel "Alarm system" [ stateTopic="alarm/panel/state", commandTopic="alarm/panel/set", allowedStates="ARMED_HOME,ARMED_AWAY,UNARMED" ] | |
| Type color : lampcolor "Kitchen Lamp color" [ stateTopic="lamp/color", commandTopic="lamp/color/set", colorMode="RGB" ] | |
| Type dimmer : blind "Blind" [ stateTopic="blind/state", commandTopic="blind/set", min=0, max=5, step=1 ] | |
| } |
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
| <Things> | |
| <things> | |
| <things> | |
| <kind>Thing</kind> | |
| <UID>mqtt:topic:mything</UID> | |
| <bridgeUID>mqtt:broker:myInsecureBroker</bridgeUID> | |
| <label>mything</label> | |
| <channels> | |
| <id>lamp</id> | |
| <type>switch</type> |
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
| things: | |
| - kind: Bridge | |
| thingTypeUID: mqtt:broker | |
| id: myInsecureBroker | |
| configuration: | |
| host: "192.168.0.42" | |
| secure: false | |
| - kind: Thing | |
| UID: mqtt:topic:mything |
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
| 2023-01-26T23:43:08.711Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Registered a session with key SessionKey{location='Default'} | |
| 2023-01-26T23:43:08.712Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Published an object update for the session with key SessionKey{location='Default'} | |
| 2023-01-26T23:43:11.879Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Registered a session with key SessionKey{location='Default1'} | |
| 2023-01-26T23:43:11.879Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Published an object update for the session with key SessionKey{location='Default1'} | |
| 2023-01-26T23:43:14.384Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Registered a session with key SessionKey{location='Default2'} | |
| 2023-01-26T23:43:14.384Z INFO 1 --- [ault-executor-0] o.o.m.grpc.twin.AbstractTwinPublisher : Published an object update for the session with key SessionKey{location='Default2'} |
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
| # If you ever come to that point - official power query docs are not very clear | |
| # on how to append custom headers or query options, here is how | |
| = OData.Feed("https://....", null, [ | |
| Implementation="2.0", | |
| Headers=[#"X-API-Token"="xyz",#"X-xyz"="zyx"], | |
| Query=[#"timeZone"="UTC",#"another"="abc"] | |
| ]) |
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 org.apache.plc4x.java.PlcDriverManager; | |
| import org.apache.plc4x.java.api.PlcConnection; | |
| import org.apache.plc4x.java.api.messages.PlcSubscriptionEvent; | |
| import org.apache.plc4x.java.utils.rawsockets.netty.RawSocketChannel; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.function.Consumer; | |
| // Very simple example showing how to request profinet-dcp identification. | |
| // Answers in line 23 are returned as PlcStruct (which is a map), for example: |
NewerOlder