Skip to content

Instantly share code, notes, and snippets.

@janeczku
janeczku / gosund_sp1.yaml
Last active March 21, 2023 09:44
Gosund SP1 + Esphome
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
@sannonaragao
sannonaragao / About-the-notification-component.txt
Last active March 4, 2022 11:13
Use PrimeNG Message and Growl as a global service of the application.
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.