{"id":784,"date":"2021-10-30T21:53:23","date_gmt":"2021-10-30T21:53:23","guid":{"rendered":"https:\/\/www.lightninglouk.nl\/?page_id=784"},"modified":"2021-11-02T13:38:33","modified_gmt":"2021-11-02T13:38:33","slug":"p2sw-page-1","status":"publish","type":"page","link":"https:\/\/www.lightninglouk.nl\/index.php\/p2sw-page-1\/","title":{"rendered":"P2SW page 1"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"784\" class=\"elementor elementor-784\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-13ae982a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"13ae982a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-69db6fbd\" data-id=\"69db6fbd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4330c7ee elementor-widget elementor-widget-heading\" data-id=\"4330c7ee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">P2SW<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-79a4f8b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"79a4f8b8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7089ba4\" data-id=\"7089ba4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-62e88d36 elementor-widget elementor-widget-image\" data-id=\"62e88d36\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1500\" height=\"337\" src=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/09\/Lightning-Louk-1500-kopie-e1630704244431.jpg\" class=\"attachment-full size-full wp-image-242\" alt=\"\" srcset=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/09\/Lightning-Louk-1500-kopie-e1630704244431.jpg 1500w, https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/09\/Lightning-Louk-1500-kopie-e1630704244431-300x67.jpg 300w, https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/09\/Lightning-Louk-1500-kopie-e1630704244431-1024x230.jpg 1024w, https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/09\/Lightning-Louk-1500-kopie-e1630704244431-768x173.jpg 768w\" sizes=\"(max-width: 1500px) 100vw, 1500px\" style=\"width:100%;height:22.47%;max-width:1500px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b932587 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b932587\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1d0b607f\" data-id=\"1d0b607f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-735a9393 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"735a9393\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-2fdb970c\" data-id=\"2fdb970c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-ceec00c\" data-id=\"ceec00c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-40987d96 elementor-align-right elementor-widget elementor-widget-button\" data-id=\"40987d96\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-size-xs\" role=\"button\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Next page<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d286320 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d286320\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20fcdc1\" data-id=\"20fcdc1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dc591bc elementor-widget elementor-widget-heading\" data-id=\"dc591bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Project outline<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-10714ec elementor-widget elementor-widget-text-editor\" data-id=\"10714ec\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>At this moment (start of the project), the pay to switch will get the following features:<\/p><ul><li>There will be a specific LNbits wallet, that contains your switch balance<\/li><li>A flashed Sonoff S26 with modified Tasmota software will make a payment from the switch wallet to another wallet every minute, until the LNbits wallet is empty.<\/li><li>Since LNbits within your LAN is currently only HTTP, and not HTTPS, it seems unwise to send invoice payments over insecure wifi. Therefore, we will make a reverse proxy (<strong>so you need a domain<\/strong>), so we can send it with HTTPS.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2ecba9f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2ecba9f5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5294a71d\" data-id=\"5294a71d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-40861d5a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"40861d5a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-24b1a16e\" data-id=\"24b1a16e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3c271214 elementor-widget elementor-widget-heading\" data-id=\"3c271214\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Step 1 Flashing a Sonoff S26 with Tasmota<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-658eb420 elementor-widget elementor-widget-text-editor\" data-id=\"658eb420\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Flashing the Sonoff for the first time is the most difficult part.<\/p><p>Don&#8217;t be disappointed that this major step is hardly described here. It is only because it is perfectly described on the <a href=\"https:\/\/tasmota.github.io\/docs\/Getting-Started\/\" target=\"_blank\" rel=\"noopener\">Tasmota site<\/a> in detail:<\/p><ol><li>Buy a USB to serial adapter<\/li><li>Download the Tasmota.bin file<\/li><li>Install a flashing device<\/li><li>Open-up the Sonoff S26<\/li><li>Solder the 4 wires<\/li><li>And finaly flash the Sonoff device.<\/li><\/ol><p>By the way, I already ruined some devices by melting one of those teeny-weene small surface mounted resistors next to the point you have to solder. It happens, so accept it and buy some spares to start with.<\/p><p>Good luck with this step!<\/p><p>\u00a0<\/p><p>The Tasmota firmware allows flashing over the air, so you can re-assemble the Sonoff.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-9f9f849\" data-id=\"9f9f849\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f0c603c elementor-widget elementor-widget-image\" data-id=\"f0c603c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"700\" height=\"500\" src=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/sonoff-S26transp.png\" class=\"attachment-large size-large wp-image-760\" alt=\"\" srcset=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/sonoff-S26transp.png 700w, https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/sonoff-S26transp-300x214.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" style=\"width:100%;height:71.43%;max-width:700px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-09274fd elementor-widget elementor-widget-image\" data-id=\"09274fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"718\" height=\"512\" src=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/Sonoff-26-wired.png\" class=\"attachment-large size-large wp-image-794\" alt=\"\" srcset=\"https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/Sonoff-26-wired.png 718w, https:\/\/www.lightninglouk.nl\/wp-content\/uploads\/2021\/10\/Sonoff-26-wired-300x214.png 300w\" sizes=\"(max-width: 718px) 100vw, 718px\" style=\"width:100%;height:71.31%;max-width:718px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-65b9b491 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"65b9b491\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-5e7acd80\" data-id=\"5e7acd80\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7bfb15c7 elementor-widget elementor-widget-heading\" data-id=\"7bfb15c7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Step 2 Installing software tools<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-95f3d6f elementor-widget elementor-widget-text-editor\" data-id=\"95f3d6f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>First we have to down load and install <a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noopener\">Visual Studio Code<\/a>.<\/p><p>Furthermore we have to install software to compile the Tasmota software. <a href=\"https:\/\/platformio.org\/\" target=\"_blank\" rel=\"noopener\">PlatformIO<\/a> can do this.<\/p><p>It took me some time to discover the best way to install PlatformIO in Visual Studio Code. Then I found the <a href=\"https:\/\/docs.platformio.org\/en\/latest\/\/integration\/ide\/vscode.html#ide-vscode\" target=\"_blank\" rel=\"noopener\">installation guide<\/a> by PlatformIO.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-47021e1b\" data-id=\"47021e1b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-34b81893 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"34b81893\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-724562e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"724562e7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-332eb731\" data-id=\"332eb731\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-535af19d\" data-id=\"535af19d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-46266ab2 elementor-align-right elementor-widget elementor-widget-button\" data-id=\"46266ab2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-size-xs\" role=\"button\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Next page<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>P2SW Next page Project outline At this moment (start of the project), the pay to switch will get the following features: There will be a specific LNbits wallet, that contains your switch balance A flashed Sonoff S26 with modified Tasmota software will make a payment from the switch wallet to another wallet every minute, until&hellip; <a class=\"more-link\" href=\"https:\/\/www.lightninglouk.nl\/index.php\/p2sw-page-1\/\">Continue reading <span class=\"screen-reader-text\">P2SW page 1<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-784","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/pages\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":23,"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/pages\/784\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/pages\/784\/revisions\/873"}],"wp:attachment":[{"href":"https:\/\/www.lightninglouk.nl\/index.php\/wp-json\/wp\/v2\/media?parent=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}