Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# see: https://developers.google.com/idx/guides/customize-idx-env
{ pkgs, ... }: {
# Which nixpkgs channel to use.
channel = "stable-23.11"; # or "unstable"
channel = "stable-24.11"; # or "unstable"

# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.sudo
pkgs.postgresql_15_jit
pkgs.postgresql15Packages.timescaledb
pkgs.postgresql15Packages.timescaledb_toolkit
pkgs.postgresql_16_jit
pkgs.postgresql16JitPackages.timescaledb
#pkgs.postgresql16JitPackages.timescaledb_toolkit
pkgs.postgresql16JitPackages.pgvector
pkgs.util-linux.bin
pkgs.dotnet-sdk_8
pkgs.vscode-extensions.ms-dotnettools.csharp
Expand All @@ -32,7 +33,7 @@
pkgs.mongodb
pkgs.mongodb-tools
pkgs.mongosh
# pkgs.nodePackages.nodemon
pkgs.nodePackages.nodemon
];

#services.postgres = {
Expand Down
4 changes: 4 additions & 0 deletions log/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# LOG folder

This folder contains the log files for the system.

6 changes: 3 additions & 3 deletions mongo_seed/b_create-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,19 @@ var protocolConnectionsValidator = {
sizeOfCOT: {
bsonType: ['double', 'long', 'int', 'null'],
minimum: 1,
minimum: 2,
maximum: 2,
description: 'Size of cause of transmission field.',
},
sizeOfCA: {
bsonType: ['double', 'long', 'int', 'null'],
minimum: 1,
minimum: 2,
maximum: 2,
description: 'Size of cause of common address field.',
},
sizeOfIOA: {
bsonType: ['double', 'long', 'int', 'null'],
minimum: 1,
minimum: 3,
maximum: 3,
description: 'Size of cause of information object address field.',
},
k: {
Expand Down
1 change: 1 addition & 0 deletions platform-linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ npm install
npm run build

export NODE_OPTIONS=--max-old-space-size=10000
export ASTRO_TELEMETRY_DISABLED=1

cd ../../../custom-developments/basic_bargraph
npm install
Expand Down
1 change: 1 addition & 0 deletions platform-mac/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ npm install
npm run build

export NODE_OPTIONS=--max-old-space-size=10000
export ASTRO_TELEMETRY_DISABLED=1

cd ../../../custom-developments/basic_bargraph
npm install
Expand Down
21 changes: 12 additions & 9 deletions platform-nix-idx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,23 @@ go env -w GO111MODULE=auto
export CGO_CPPFLAGS="-I /usr/include"
export CGO_LDFLAGS="-L /usr/lib"

cd ../calculations
go mod tidy
go build
cp calculations ../../bin/
# avoid compiling go modules as Firebase Studio only currently provides 8GB RAM, not enough for the build

# you may need a lot of memory to build go drivers, the build may be killed by the system, if necessary add swap, e.g. 8GB RAM + 4GB Swap
#cd ../calculations
#go mod tidy
#go build
#cp calculations ../../bin/

#cd ../i104m
#go mod tidy
#go build
#cp i104m ../../bin/

# you may need a lot of memory to build this step, the build may be killed by the system, if necessary add swap, e.g. 8GB RAM + 4GB Swap
cd ../plc4x-client
go mod tidy
go build
cp plc4x-client ../../bin/
#cd ../plc4x-client
#go mod tidy
#go build
#cp plc4x-client ../../bin/

# release some disk space
rm -rf ~/.cache
Expand Down Expand Up @@ -146,6 +148,7 @@ rm -rf ~/json-scada/src/AdminUI/node_modules
#npm run build

export NODE_OPTIONS=--max-old-space-size=10000
export ASTRO_TELEMETRY_DISABLED=1

cd ../custom-developments/basic_bargraph
npm install
Expand Down
3 changes: 2 additions & 1 deletion platform-nix-idx/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,8 @@ default_text_search_config = 'pg_catalog.english'


dynamic_library_path = '/usr/lib'
shared_preload_libraries = 'timescaledb,timescaledb_toolkit'
#shared_preload_libraries = 'timescaledb,timescaledb_toolkit'
shared_preload_libraries = 'timescaledb'
unix_socket_directories = '/tmp'


Expand Down
1 change: 1 addition & 0 deletions platform-windows/buildupd.bat
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ call %NPM% run build
call %NPM% prune --omit=dev

set NODE_OPTIONS=--max-old-space-size=8000
set ASTRO_TELEMETRY_DISABLED=1

cd %SRCPATH%\custom-developments\basic_bargraph
call %NPM% i --package-lock-only
Expand Down