Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmatijevich/weblogclient
Client page for WebLog program
https://github.com/tmatijevich/weblogclient
Last synced: 6 days ago
JSON representation
Client page for WebLog program
- Host: GitHub
- URL: https://github.com/tmatijevich/weblogclient
- Owner: tmatijevich
- License: gpl-3.0
- Created: 2022-01-13T20:45:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T14:57:09.000Z (over 2 years ago)
- Last Synced: 2024-11-09T13:39:22.538Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WebLogClient
WebLogClient is a front-end package to display log records in an easy to read table format. The client requests and receives information from the required [WebLog](https://github.com/tmatijevich/WebLog) program. WebLogClient uses http requests written in javascript with active webpage elements (ASP) to communicate with a server. Controllers programmed in Automation Studio have an intergrated web server included and enabled by default. This package is designed for Automation Studio, is not an official package, and is provided as-in under the [GNU GPL v3.0](https://choosealicense.com/licenses/gpl-3.0/) license.
![WebLogClient sample table](https://user-images.githubusercontent.com/33841634/179429871-d525d4a1-2829-4eb8-9adf-2bba0684975c.png)
## Features
- All [WebLog](https://github.com/tmatijevich/WebLog) features
- Refresh
- Seek backward (down)
- Seek forward (up) requests
- Filtering (planned)## Installation
- Download and unarchive the WebLogClient package
- Create two directies `User\web\` in the Logical View of the Automation Studio project
- Add the WebLogClient package to the web directory
- This directory may be renamed, through the name will be used to access the web page
- ![Example user directory for WebLogClient](https://user-images.githubusercontent.com/33841634/179429887-675fcd11-ab2e-448f-b226-5f2a5eca6565.png)
- Specify the user directory under installation settings
- The installation settings are accessed once the project is built and prompted to download
- ![User partition files](https://user-images.githubusercontent.com/33841634/179429900-23a6b3fe-da65-45aa-a3f5-408edff7fb16.png)
- Add pre-build event to generate ASP data
- `PowerShell -ExecutionPolicy ByPass -File $(WIN32_AS_PROJECT_PATH)\Logical\User\web\log\initialize.ps1 $(WIN32_AS_PROJECT_PATH)`
- Access the CPU properties, under the Build Events tab, populate the Pre-Build Step with the command above
- ![Pre-Build Step](https://user-images.githubusercontent.com/33841634/179429908-c77e9e39-91fd-4e9e-a665-4af2fdc0b753.png)
- Install the project and access the web page with `/log`
- All directories `User`, `web`, `log`, may be renamed
- **Note** the necessary changes to these installation steps when changing the names of the directories
- The integrated web server's default root directory is `web\`, changing the client directory name will require the user to change the integrated web server's root directory path.## Customization
Modifications such as number of records (number of rows in table) can be made in the script.js and initialize.ps1 files.
- script.js
- `numRecords` (default 20) Number of records (table rows)
- `taskName` (default "WebLog") Name of program in Automation Studio project
- initialize.ps1
- `$RecordMax` (default 20) Number of records (table rows)
- `$ProgramName` (default "WebLog") Name of program in Automation Studio project
- `$ProjectPath` (default "\Logical\User\web\log") Relative path in project to WebLogClient## Dependencies
- [WebLog](https://github.com/tmatijevich/WebLog)
- Integrated web server in Automation Studio project (enabled by default with root path `web\`)## Acknowledgements
- [Stephan](https://github.com/br-automation-com/mappView-Logbook)
- [Christoph](https://github.com/hilch)