To comment out a whole section in one go:Highlight the text you want to comment out and use CTRL + Q. If you do this at the start of a line, it will only comment that line. CTRL + Q is toggle mode (comment on/off). CTRL + K will allow you to add multiple comments one after the other.
To automatically insert two spaces when you use the TAB key:
The most common problems with config files is spaces or tabs where they do not belong, here are 2 ways to fix this.
Enjoy.
To automatically insert two spaces when you use the TAB key:
- In the 'Tab Settings' list, scroll down to 'yaml' and click on it.
- Make sure 'Use default value' is unchecked. Set 'Tab size' to 2 and check 'Replace by space'
- Then click close and Notepad++ will use spaces instead of tab.
The most common problems with config files is spaces or tabs where they do not belong, here are 2 ways to fix this.
- Open the file in Notepad++ then select Edit > Blank Operations > TAB to space,
- Then select Edit > Blank Operations > Trim Trailing Space
Enjoy.
Hi,
ReplyDeleteThe service seems to stop soon after starting. What am I likely to have lost?
● habridge.service - HA Bridge
Loaded: loaded (/home/pi/habridge/habridge.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2023-01-04 09:23:29 GMT; 6min ago
Process: 3420 ExecStart=/usr/bin/java -jar -Dconfig.file=/home/pi/habridge/data/habridge.config /home/pi/habridge/ha-bridge-5.4.0.jar (code=exited, s
Main PID: 3420 (code=exited, status=0/SUCCESS)
Jan 04 09:23:27 NewPi java[3420]: 2023-01-04 09:23:26.999:INFO:oejs.session:Thread-10: Stopped scavenging
Jan 04 09:23:27 NewPi java[3420]: 2023-01-04 09:23:27,008 [Thread-10] INFO spark.embeddedserver.jetty.EmbeddedJettyServer - done
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,868 [main] INFO com.bwssystems.HABridge.plugins.http.HttpClientPool - Shutting down client pool
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,871 [main] INFO com.bwssystems.HABridge.plugins.http.HttpClientPool - Client pool shut down
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,899 [main] INFO com.bwssystems.HABridge.plugins.http.HttpClientPool - Instantiated SSL component
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,903 [main] INFO com.bwssystems.HABridge.plugins.http.HttpClientPool - Shutting down client pool
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,905 [main] INFO com.bwssystems.HABridge.plugins.http.HttpClientPool - Client pool shut down
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,905 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge (v5.4.0) exiting....
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,913 [Thread-1] INFO com.bwssystems.HABridge.ShutdownHook - Shutdown requested...
Jan 04 09:23:29 NewPi java[3420]: 2023-01-04 09:23:29,914 [Thread-1] INFO com.bwssystems.HABridge.ShutdownHook - Already stopped
...skipping...
Sorry, but I don't use ha-bridge any longer. Best log a ticket with the developer. https://github.com/bwssytems/ha-bridge/issues
Delete