Updated gallery.py for new page break format.

This commit is contained in:
Chris Palmer 2021-02-09 23:44:03 +00:00
parent 4f9729cf86
commit 60350eb228
2 changed files with 4 additions and 26 deletions

View File

@ -1,40 +1,30 @@
# A gallery of projects made with NopSCADlib # A gallery of projects made with NopSCADlib
<a name="TOP"></a>
## ArduinoThermostat ## ArduinoThermostat
Arduino thermostat to control a beer fridge to use it as an environmental chamber. Arduino thermostat to control a beer fridge to use it as an environmental chamber.
![](ArduinoThermostat.png) ![](ArduinoThermostat.png)
<a name="TOP"></a>
## EnviroPlus ## EnviroPlus
Environmental monitor using Enviro+ sensor board and a Raspberry Pi Zero. Environmental monitor using Enviro+ sensor board and a Raspberry Pi Zero.
![](EnviroPlus.png) ![](EnviroPlus.png)
<a name="TOP"></a>
## FilamentDryBox ## FilamentDryBox
A small fan oven with a spool holder to keep the filament warm and dry. A small fan oven with a spool holder to keep the filament warm and dry.
![](FilamentDryBox.png) ![](FilamentDryBox.png)
<a name="TOP"></a>
## HydraBot ## HydraBot
Current state of HydraRaptor after being modified for laser engraving. Current state of HydraRaptor after being modified for laser engraving.
![](HydraBot.png) ![](HydraBot.png)
<a name="TOP"></a>
## IOT 50V PSU ## IOT 50V PSU
WiFi controllable PSU WiFi controllable PSU
![](IOT_50V_PSU.png) ![](IOT_50V_PSU.png)
<a name="TOP"></a>
## Lab ATX PSU ## Lab ATX PSU
Bench power supply built around an ATX PSU. Bench power supply built around an ATX PSU.
@ -47,15 +37,11 @@ Bench power supply built around an ATX PSU.
<a name="TOP"></a>
## Laser Load ## Laser Load
15kV dummy load for testing CO2 laser PSUs 15kV dummy load for testing CO2 laser PSUs
![](Laser_load.png) ![](Laser_load.png)
<a name="TOP"></a>
## MainsBreakOutBox ## MainsBreakOutBox
13A socket break out box with 4mm jacks to measure voltage and / or load current and earth leakage current. 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) ![](MainsBreakOutBox.png)
<a name="TOP"></a>
## Mains Box ## Mains Box
Mains isolated and variable supply with metering. Mains isolated and variable supply with metering.
@ -81,15 +65,11 @@ Mains isolated and variable supply with metering.
<a name="TOP"></a>
## SunBot ## SunBot
A solar tracker to keep a solar panel pointing at the sun. A solar tracker to keep a solar panel pointing at the sun.
![](SunBot.png) ![](SunBot.png)
<a name="TOP"></a>
## Turntable ## Turntable
WiFi enabled remote control turntable for photography 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. Was actually made from DiBond but shown made with carbon fibre here.
<a name="TOP"></a>
## Variac ## 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) 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

View File

@ -68,9 +68,10 @@ def gallery(force):
match = re.match(r"^(#+).*$", line) match = re.match(r"^(#+).*$", line)
if match: if match:
line = '#' + line line = '#' + line
if line == '---\n': if line == '---\n' or line == '<span></span>\n':
break; break
print(line[:-1], file = output_file) if line != '<a name="TOP"></a>\n':
print(line[:-1], file = output_file)
else: else:
print(Fore.MAGENTA + "Can't find", document, Fore.WHITE); print(Fore.MAGENTA + "Can't find", document, Fore.WHITE);
with open(target_dir + "/readme.html", "wt") as html_file: with open(target_dir + "/readme.html", "wt") as html_file: