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
| #!/bin/bash | |
| # Script to create an OpenWrt LXC container in Proxmox | |
| # Supports stable, release candidates (with prompt if newer), and snapshots | |
| # Robust template handling (reuse / redownload / corruption check) | |
| # Aborts cleanly on Esc/Cancel in dialogs | |
| # Default resource values | |
| DEFAULT_MEMORY="256" # MB | |
| DEFAULT_CORES="2" # CPU cores |
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
| substitutions: | |
| devicename: gosund_sp1_01 | |
| friendlyname: SP1 Socket 01 | |
| sp1_current_resistor: "0.00221" | |
| sp1_voltage_divider: "871" | |
| ############# | |
| # Note: These numbers were found online | |
| # BW SHP2 Current Resistor: 0.0028 | |
| # BW SHP2 Voltage Devider: 960 | |
| # Gosund SP1 Current Resistor: 0.00221 |
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
| PrimeNG has 2 different components to display messages: | |
| The Messages component: https://www.primefaces.org/primeng/#/messages | |
| The Growl component: https://www.primefaces.org/primeng/#/growl | |
| notifications.component.ts - is the notification component with both growl and services from PrimeNg: | |
| <p-growl [value]="growl"></p-growl> | |
| <p-messages [value]="message"></p-messages> | |
| notifications.service.ts - is the service to be used to send messages do Growl and Messages. |