{"id":15050545,"url":"https://github.com/peza/opcua-historizing-db","last_synced_at":"2026-02-11T03:30:50.773Z","repository":{"id":256623203,"uuid":"855933488","full_name":"peza/opcua-historizing-db","owner":"peza","description":"Demo for Opcua Server-Client Historizing data from and to DB SQLite","archived":false,"fork":false,"pushed_at":"2024-09-11T18:52:29.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T14:36:11.523Z","etag":null,"topics":["historizing","inmemory-db","nodejs","opcua","opcua-client","opcua-server","sqlite"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T17:39:40.000Z","updated_at":"2024-10-18T03:42:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"8216e7f7-d1dc-4696-ab2a-8bc5f9576359","html_url":"https://github.com/peza/opcua-historizing-db","commit_stats":null,"previous_names":["peza/opcua-historizing-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peza/opcua-historizing-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peza%2Fopcua-historizing-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peza%2Fopcua-historizing-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peza%2Fopcua-historizing-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peza%2Fopcua-historizing-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peza","download_url":"https://codeload.github.com/peza/opcua-historizing-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peza%2Fopcua-historizing-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["historizing","inmemory-db","nodejs","opcua","opcua-client","opcua-server","sqlite"],"created_at":"2024-09-24T21:27:14.281Z","updated_at":"2026-02-11T03:30:50.758Z","avatar_url":"https://github.com/peza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opcua-historizing-db\nDemo for Opcua Server-Client Historizing data from and to in-memory DB SQLite\n\n## Overview\n\nThis project is a demonstration of an OPC UA Server-Client setup that uses SQLite as an in-memory database to store and manage historical data. It is a Node.js project that showcases how to historize data from an OPC UA server into an SQLite database and retrieve it efficiently.\n\n## Keywords\n- OPCUA\n- OPCUA Server\n- OPCUA Client\n- Node.js\n- SQLite\n- Inmemory db\n- Data Historizing from DB\n- Real-Time Data\n\n## Setup\n\n1. **Clone the Repository:**\n\n   ```sh\n   git clone https://github.com/yourusername/opcua-historizing-db.git\n   cd opcua-historizing-db\n\n# Install Dependencies:\n    npm install\n\n# Start the App:\n    npm start\n\n# Implementation details\nServer: The OPC UA server runs on localhost at port 4844.\n\nIt exposes one variable with the node ID ns=1;s=Temperature.\n- The server maintains an in-memory SQLite database to store temperature data.\n- A new temperature value is generated every second.\n- An event named newTemperatureValue is emitted every time a new temperature value is generated.\n- This event triggers the saving of the new temperature value to the SQLite database and updates value of the OPC UA variable ns=1;s=Temperature.\n- The server get historic data by fetching data from the database.\n- The maxOnLineValues for the variable is set to 1, meaning no default buffering for the variable is done.\n\nClient: Connects to the server and subscribes to changes of the temperature variable.\n- Reads historical data every 5 seconds.\n- Currently, there is no limit on the number of records to read from the server.\n- The client is set to read the last 20 minutes of data for the variable.\n\n# License\n- This project is licensed under the MIT License. Please include appropriate attribution when using this code.\n\n# Notes\n- Make sure to have Node.js and npm installed to run the project.\n- For any issues or contributions, please refer to the Contributing Guidelines or open an issue on the GitHub repository.\n- Feel free to adjust any specifics to match the exact details of your project and its configuration.\n\n## Topics\n- OPCUA\n- OPCUA Server\n- OPCUA Client\n- Node.js\n- SQLite\n- Inmemory db\n- Data Historizing from DB\n- Real-Time Data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeza%2Fopcua-historizing-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeza%2Fopcua-historizing-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeza%2Fopcua-historizing-db/lists"}