Skip to content

Instantly share code, notes, and snippets.

View danyill's full-sized avatar
🎯
Every day, I strive to make a modest improvement to the world

danyill

🎯
Every day, I strive to make a modest improvement to the world
  • 11:36 (UTC +12:00)
View GitHub Profile
@danyill
danyill / oscd-diff-help.md
Created February 21, 2025 23:37
oscd-diff end user help draft

How to use

The compare plugin allows for a complete comparison of two SCL documents and gives a hierarchial list of differences using the SCL structure shown in IEC 61850-6.

Users may compare only particular elements and specify these in considerable detail. Comparisons can occur between one or more documents. Pre-defined filters are available for common use cases and users may create new filters as well as export and import filters to allow them to be shared (the filters are saved as JSON files)

Comparisons on large files may take a considerable time - 10-15 minutes on a high powered machine with 16 Gb RAM and no other browser tabs or applications open. SCL files for even small substations can have many hundreds of thousands of elements. Comparisons between files with only a small number of IEDs should take < 10 seconds.

@danyill
danyill / comparison_use_cases.adoc
Last active October 16, 2024 05:20
Initial use cases for comparison plugin
@danyill
danyill / failing_unit_tests.txt
Created July 22, 2024 07:13
Failing Unit Tests
npm run test:unit
> [email protected] test:unit
> tsc && wtr --group unit --coverage
dist/editors/dataset/data-set-editor.spec.js:
❌ browserContext.newPage: Page closed (failed on Firefox)
browserContext.newPage: Page closed
@danyill
danyill / diff.json
Created February 10, 2024 08:55
diff
{
added: [],
removed: [
[
'accessPoints/E/server/lDevices/HVCB/lns/XCBR1/inputs/extRefs/2[]/iedName',
'XAT_242_M2'
],
[
'accessPoints/E/server/lDevices/HVCB/lns/XCBR1/inputs/extRefs/2[]/ldInst',
'DCB'
@danyill
danyill / OpenSCD_Merge_Diff_Plugin_Enhancements.adoc
Created December 7, 2022 03:20
Thoughts on Merge and Diff plugin enhancements

OpenSCD Merge and Diff Plugin

@danyill
danyill / test.diff
Created October 16, 2022 20:09
GE B30 issue
```diff
diff --git a/B30.CID b/B30.IID
index 95d27c4..3d4933b 100644
--- a/B30.CID
+++ b/B30.IID
@@ -16,66 +16,6 @@
<P type="OSI-TSEL">0001</P>
</Address>
@danyill
danyill / recent-changes.js
Last active April 4, 2022 19:57
Recent Changes Antora Extension
"use strict";
const fs = require("fs");
const git = requireGit();
const http = requireHttp();
function requireGit() {
return require(require.resolve("isomorphic-git", {
paths: [
require.resolve("@antora/content-aggregator", { paths: module.paths }) +
@danyill
danyill / open_scd_sld_1.svg
Created November 16, 2021 17:57
Open SCD svg output from browser debug
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danyill
danyill / test.adoc
Created January 23, 2021 22:42
Excalidraw example
[excalidraw]
....
link:test_excalidraw.json[role=include]
....
@startuml
alice -> bob
@enduml