diff --git a/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md b/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md index 130fe36..d7f39a7 100644 --- a/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md +++ b/content/drone-stuff/getting-uninverted-sbus-on-a-no-name-frsky-compatible-receiver.md @@ -6,9 +6,9 @@ insert_anchor_links = "right" +++ I got an [RC receiver](https://www.banggood.com/2_4G-8CH-D8-Mini-FrSky-Compatibel-Receiver-With-PWM-PPM-SBUS-Output-p-1140478.html?rmmds=myorder&cur_warehouse=CN) from Banggood. There's uninverted SBUS on this pad: -[![rc-sbus.jpg](../../ccc7571db5d147328860077fdc0aa745.jpg)](../../ccc7571db5d147328860077fdc0aa745.jpg) +[![rc-sbus.jpg](../../resources/ccc7571db5d147328860077fdc0aa745.jpg)](../../resources/ccc7571db5d147328860077fdc0aa745.jpg) To break this out to the SBUS pad, I had to remove/bridge the resistor that is circled in the image, and remove/bridge the FET on the other side: -[![rc-sbus-mosfet.jpg](../../1b0f508a533e45b496c6636d49161b0c.jpg)](../../1b0f508a533e45b496c6636d49161b0c.jpg) +[![rc-sbus-mosfet.jpg](../../resources/1b0f508a533e45b496c6636d49161b0c.jpg)](../../resources/1b0f508a533e45b496c6636d49161b0c.jpg) diff --git a/content/drone-stuff/getting-uninverted-sbus-smartport-on-the-frsky-xsr-receiver.md b/content/drone-stuff/getting-uninverted-sbus-smartport-on-the-frsky-xsr-receiver.md index 3abed9d..0c0bbe0 100644 --- a/content/drone-stuff/getting-uninverted-sbus-smartport-on-the-frsky-xsr-receiver.md +++ b/content/drone-stuff/getting-uninverted-sbus-smartport-on-the-frsky-xsr-receiver.md @@ -7,11 +7,11 @@ insert_anchor_links = "right" To get uninverted SBUS/SmartPort on the FrSky XSR/X4RS receiver, you can repurpose the CPPM pad. Remove the two small resistors shown in the image, and solder the two lower pads (together) to either the CPPM pad or the MOSFET pin shown in the photo: -[![xsr-sbus.jpeg](../../f86da9a7aac1413ebd77825897164f7f.jpeg)](../../f86da9a7aac1413ebd77825897164f7f.jpeg) +[![xsr-sbus.jpeg](../../resources/f86da9a7aac1413ebd77825897164f7f.jpeg)](../../resources/f86da9a7aac1413ebd77825897164f7f.jpeg) They should be soldered like this (remember to solder both resistor pads together): -[![xsr-sbus2.jpeg](../../815576429ece43789dbc70dfd33517a1.jpeg)](../../815576429ece43789dbc70dfd33517a1.jpeg) +[![xsr-sbus2.jpeg](../../resources/815576429ece43789dbc70dfd33517a1.jpeg)](../../resources/815576429ece43789dbc70dfd33517a1.jpeg) Now the CPPM pad will be uninverted SBUS/SmartPort instead. It seems to be a bit of a gamble whether you get SBUS or SmartPort, it might be firmware-dependent. diff --git a/content/drone-stuff/omnibus-f4-pro-servo-diode.md b/content/drone-stuff/omnibus-f4-pro-servo-diode.md index 5b27f3e..066b70d 100644 --- a/content/drone-stuff/omnibus-f4-pro-servo-diode.md +++ b/content/drone-stuff/omnibus-f4-pro-servo-diode.md @@ -6,6 +6,6 @@ insert_anchor_links = "right" +++ To isolate the servo 5V rail from the controller's 5V power supply, remove this diode: -[![a435bcae86912205b6fac41731285b8d.png](../../6d668e05d8a54580966b94a752f3b7db.png)](../../6d668e05d8a54580966b94a752f3b7db.png) +[![a435bcae86912205b6fac41731285b8d.png](../../resources/6d668e05d8a54580966b94a752f3b7db.png)](../../resources/6d668e05d8a54580966b94a752f3b7db.png) Now the servos' 5V rail can be powered from another 5V supply to avoid servo current backflow into the FC. \ No newline at end of file diff --git a/content/drone-stuff/omnibus-f4-v3-pinout.md b/content/drone-stuff/omnibus-f4-v3-pinout.md index ef410a7..3d6995b 100644 --- a/content/drone-stuff/omnibus-f4-v3-pinout.md +++ b/content/drone-stuff/omnibus-f4-v3-pinout.md @@ -6,4 +6,4 @@ insert_anchor_links = "right" +++ This is the pinout of the Omnibus F4 V3: -[![53b3161d509dcc7bbfb43c89b16b0bae.png](../../99f5c91454204c1d9740a8d9b876833b.png)](../../99f5c91454204c1d9740a8d9b876833b.png) \ No newline at end of file +[![53b3161d509dcc7bbfb43c89b16b0bae.png](../../resources/99f5c91454204c1d9740a8d9b876833b.png)](../../resources/99f5c91454204c1d9740a8d9b876833b.png) \ No newline at end of file diff --git a/content/drone-stuff/transmitter-external-module-pinout.md b/content/drone-stuff/transmitter-external-module-pinout.md index 2fb2028..2b76b51 100644 --- a/content/drone-stuff/transmitter-external-module-pinout.md +++ b/content/drone-stuff/transmitter-external-module-pinout.md @@ -14,5 +14,5 @@ The transmitter (Taranis, Jumper, RadioMaster, etc) pinout is, from top to botto It's illustrated in this photo: -[![pinout.jpeg](../../72d23239af1541d4b170271c1e9e21eb.jpeg)](../../72d23239af1541d4b170271c1e9e21eb.jpeg) +[![pinout.jpeg](../../resources/72d23239af1541d4b170271c1e9e21eb.jpeg)](../../resources/72d23239af1541d4b170271c1e9e21eb.jpeg) diff --git a/content/maker-things/how-to-properly-level-your-3d-printer.md b/content/maker-things/how-to-properly-level-your-3d-printer.md index 3a35e37..fccdbc7 100644 --- a/content/maker-things/how-to-properly-level-your-3d-printer.md +++ b/content/maker-things/how-to-properly-level-your-3d-printer.md @@ -10,19 +10,19 @@ I have taken photos of filament when the nozzle was leveled at various heights f In this first photo, I have leveled too high (meaning the nozzle is too high compared to the bed). You can see that the filament is cylindrical, which means that it has just dropped onto the bed (or minimally touched it), leading to very poor adhesion. You can imagine that, if the filament is just dropped onto the bed, it won’t adhere well: -![too-high.jpg](../../576a1fedf9f144a69fe262866e9f268a.jpg) +![too-high.jpg](../../resources/576a1fedf9f144a69fe262866e9f268a.jpg) The next photo is also a bit too high. It’s not as high as the previous photo, so it has partially adhered, but there are gaps between the rows and adhesion still won’t be great: -![too-high-2.jpg](../../57cca138661644a99f3e9422665cbbb5.jpg) +![too-high-2.jpg](../../resources/57cca138661644a99f3e9422665cbbb5.jpg) The next photo has been leveled too low. The filament is mushed against the bed, but it’s mushed too much, leading to transparent-looking rows of filament. The specific filament I’m using tends to look transparent even when leveled properly, but this is too low regardless: -![too-low.jpg](../../1aac14963f294f74b1288a02e24eaead.jpg) +![too-low.jpg](../../resources/1aac14963f294f74b1288a02e24eaead.jpg) For the last photo, I’ve leveled it pretty much perfectly. You can see that the rows aren’t cylindrical at all, instead they’re long strips that are touching each other properly and don’t look too transparent. If you insert a piece of paper between the bed and the nozzle, you will be able to move it with some difficulty, but it won’t move very freely. -![just-perfect.jpg](../../d95ef0cfd696407b82734616ca963205.jpg) +![just-perfect.jpg](../../resources/d95ef0cfd696407b82734616ca963205.jpg) There you have it! If your filament looks cylindrical, follow your printer’s manual to reduce the distance between bed and nozzle. If it looks transparent and missing in places completely, you need to increase the distance. If it looks mushed and has the proper color, and the rows are touching each other just so, you’re perfect and ready to print! diff --git a/joplinexport.py b/joplinexport.py index 197ab0f..7c671d7 100755 --- a/joplinexport.py +++ b/joplinexport.py @@ -26,7 +26,7 @@ class Note: class JoplinExporter: content_dir = Path("content") - static_dir = Path("static") + static_dir = Path("static/resources") joplin_dir = Path.home() / ".config/joplin-desktop" def clean_content_dir(self): @@ -62,7 +62,7 @@ class JoplinExporter: resource = self.resources.get(resource_id) if not resource: return None - return resource_id + "." + resource[1] + return "resources/" + resource_id + "." + resource[1] def copy_resources(self): """Copy all the resources to the output directory.""" @@ -100,7 +100,7 @@ class JoplinExporter: # Private notes shouldn't be published. folder_list = list( - item for item in self.folders.items() if item[1] != "Private" + i for i in self.folders.items() if "private" not in i[1].lower() ) # Sort "Welcome" last. diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..78b0f2f Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/1aac14963f294f74b1288a02e24eaead.jpg b/static/resources/1aac14963f294f74b1288a02e24eaead.jpg similarity index 100% rename from static/1aac14963f294f74b1288a02e24eaead.jpg rename to static/resources/1aac14963f294f74b1288a02e24eaead.jpg diff --git a/static/1b0f508a533e45b496c6636d49161b0c.jpg b/static/resources/1b0f508a533e45b496c6636d49161b0c.jpg similarity index 100% rename from static/1b0f508a533e45b496c6636d49161b0c.jpg rename to static/resources/1b0f508a533e45b496c6636d49161b0c.jpg diff --git a/static/576a1fedf9f144a69fe262866e9f268a.jpg b/static/resources/576a1fedf9f144a69fe262866e9f268a.jpg similarity index 100% rename from static/576a1fedf9f144a69fe262866e9f268a.jpg rename to static/resources/576a1fedf9f144a69fe262866e9f268a.jpg diff --git a/static/57cca138661644a99f3e9422665cbbb5.jpg b/static/resources/57cca138661644a99f3e9422665cbbb5.jpg similarity index 100% rename from static/57cca138661644a99f3e9422665cbbb5.jpg rename to static/resources/57cca138661644a99f3e9422665cbbb5.jpg diff --git a/static/6d668e05d8a54580966b94a752f3b7db.png b/static/resources/6d668e05d8a54580966b94a752f3b7db.png similarity index 100% rename from static/6d668e05d8a54580966b94a752f3b7db.png rename to static/resources/6d668e05d8a54580966b94a752f3b7db.png diff --git a/static/72d23239af1541d4b170271c1e9e21eb.jpeg b/static/resources/72d23239af1541d4b170271c1e9e21eb.jpeg similarity index 100% rename from static/72d23239af1541d4b170271c1e9e21eb.jpeg rename to static/resources/72d23239af1541d4b170271c1e9e21eb.jpeg diff --git a/static/815576429ece43789dbc70dfd33517a1.jpeg b/static/resources/815576429ece43789dbc70dfd33517a1.jpeg similarity index 100% rename from static/815576429ece43789dbc70dfd33517a1.jpeg rename to static/resources/815576429ece43789dbc70dfd33517a1.jpeg diff --git a/static/resources/8d53a1960f1c42f4918de1a9da469f44.png b/static/resources/8d53a1960f1c42f4918de1a9da469f44.png new file mode 100644 index 0000000..089761e Binary files /dev/null and b/static/resources/8d53a1960f1c42f4918de1a9da469f44.png differ diff --git a/static/99f5c91454204c1d9740a8d9b876833b.png b/static/resources/99f5c91454204c1d9740a8d9b876833b.png similarity index 100% rename from static/99f5c91454204c1d9740a8d9b876833b.png rename to static/resources/99f5c91454204c1d9740a8d9b876833b.png diff --git a/static/resources/b6da3f5c07ad4720a12e9730008f7bb5.png b/static/resources/b6da3f5c07ad4720a12e9730008f7bb5.png new file mode 100644 index 0000000..9e68d7d Binary files /dev/null and b/static/resources/b6da3f5c07ad4720a12e9730008f7bb5.png differ diff --git a/static/resources/ccb31117efba476bbb29e1bdc3e074cb.png b/static/resources/ccb31117efba476bbb29e1bdc3e074cb.png new file mode 100644 index 0000000..bdae433 Binary files /dev/null and b/static/resources/ccb31117efba476bbb29e1bdc3e074cb.png differ diff --git a/static/ccc7571db5d147328860077fdc0aa745.jpg b/static/resources/ccc7571db5d147328860077fdc0aa745.jpg similarity index 100% rename from static/ccc7571db5d147328860077fdc0aa745.jpg rename to static/resources/ccc7571db5d147328860077fdc0aa745.jpg diff --git a/static/d95ef0cfd696407b82734616ca963205.jpg b/static/resources/d95ef0cfd696407b82734616ca963205.jpg similarity index 100% rename from static/d95ef0cfd696407b82734616ca963205.jpg rename to static/resources/d95ef0cfd696407b82734616ca963205.jpg diff --git a/static/f86da9a7aac1413ebd77825897164f7f.jpeg b/static/resources/f86da9a7aac1413ebd77825897164f7f.jpeg similarity index 100% rename from static/f86da9a7aac1413ebd77825897164f7f.jpeg rename to static/resources/f86da9a7aac1413ebd77825897164f7f.jpeg