From 60350eb22878abd806a53746b51b676935614f51 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Tue, 9 Feb 2021 23:44:03 +0000 Subject: [PATCH] Updated gallery.py for new page break format. --- gallery/readme.md | 23 ----------------------- scripts/gallery.py | 7 ++++--- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/gallery/readme.md b/gallery/readme.md index 7930cf4..e9ea633 100644 --- a/gallery/readme.md +++ b/gallery/readme.md @@ -1,40 +1,30 @@ # A gallery of projects made with NopSCADlib - ## ArduinoThermostat Arduino thermostat to control a beer fridge to use it as an environmental chamber. ![](ArduinoThermostat.png) - - ## EnviroPlus Environmental monitor using Enviro+ sensor board and a Raspberry Pi Zero. ![](EnviroPlus.png) - - ## FilamentDryBox A small fan oven with a spool holder to keep the filament warm and dry. ![](FilamentDryBox.png) - - ## HydraBot Current state of HydraRaptor after being modified for laser engraving. ![](HydraBot.png) - ## IOT 50V PSU WiFi controllable PSU ![](IOT_50V_PSU.png) - - ## Lab ATX PSU Bench power supply built around an ATX PSU. @@ -47,15 +37,11 @@ Bench power supply built around an ATX PSU. - - ## Laser Load 15kV dummy load for testing CO2 laser PSUs ![](Laser_load.png) - - ## MainsBreakOutBox 13A socket break out box with 4mm jacks to measure voltage and / or load current and earth leakage current. @@ -72,8 +58,6 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin ![](MainsBreakOutBox.png) - - ## Mains Box Mains isolated and variable supply with metering. @@ -81,15 +65,11 @@ Mains isolated and variable supply with metering. - - ## SunBot A solar tracker to keep a solar panel pointing at the sun. ![](SunBot.png) - - ## Turntable WiFi enabled remote control turntable for photography @@ -97,8 +77,6 @@ WiFi enabled remote control turntable for photography Was actually made from DiBond but shown made with carbon fibre here. - - ## Variac Motorised variac with WiFi control, see [hydraraptor.blogspot.com/2018/04/esp8266-spi-spy](https://hydraraptor.blogspot.com/2018/04/esp8266-spi-spy.html) @@ -106,4 +84,3 @@ Motorised variac with WiFi control, see [hydraraptor.blogspot.com/2018/04/esp826 - diff --git a/scripts/gallery.py b/scripts/gallery.py index 812f774..c0fcc83 100755 --- a/scripts/gallery.py +++ b/scripts/gallery.py @@ -68,9 +68,10 @@ def gallery(force): match = re.match(r"^(#+).*$", line) if match: line = '#' + line - if line == '---\n': - break; - print(line[:-1], file = output_file) + if line == '---\n' or line == '\n': + break + if line != '\n': + print(line[:-1], file = output_file) else: print(Fore.MAGENTA + "Can't find", document, Fore.WHITE); with open(target_dir + "/readme.html", "wt") as html_file: