Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

151 posts

Master Geek
+1 received by user: 19

Topic # 223609 8-Oct-2017 13:10
Send private message

I have a RPi managing jobs on my 3D printer, using Octoprint for the manager and a webcam for checking that it hasn't messed up.


When a job finishes I can tell the app to disconnect from the printer, which drops the USB connection and hopefully always leaves it with heaters turned off, but I would also like to be able to switch off the main power supply to the printer.


I have looked at some home automation power plugs which have a wifi remote control, are any of these able to be controlled via a RasberryPi running Linux?


What safe and reliable options would you recommend?



Filter this topic showing only the reply marked as answer Create new topic
193 posts

Master Geek
+1 received by user: 74


  Reply # 1879367 8-Oct-2017 13:31
Send private message

If you're telling the app manually (ie it's not doing it automatically at the end of the print run) to disconnect, perhaps a WeMo switch might be an option? then, after you've told the RPi to disconnet, use the WeMo app to turn the switch off as well.

151 posts

Master Geek
+1 received by user: 19

  Reply # 1879382 8-Oct-2017 13:49
Send private message

Cool, there is a command-line tool for that NPMJS belkin-wemo-command-line-tools


I would like to make this part of a web interface, so that I can leave a large print job running when I go out.  Also making a camera mount with pan/tilt controls using Arduino gear, which will be the main focus of that web interface (ooh a pun).






Try Wrike: fast, easy, and efficient project collaboration software
2249 posts

Uber Geek
+1 received by user: 1072

  Reply # 1879530 8-Oct-2017 21:26
Send private message

I have the 12V supply to my 3D printer go via a RPi-controlled relay board. The relays are good for 10A, so I use one relay for the heated bed supply and another for the printer (and a third to turn LED lighs on/off). These relays are able to handle 250V AC, so you could do that too. However, I'm wary of working with mains, just because it's legal to play with 10A@12VDC, but not 0.5A@230VAC, so it doesn't destroy your insurance cover.


I'm sure you could control a Wemo (or similar) from a RPi. With a bit of luck, you should be able to Google protocols and maybe even find a RPi app that does it for you. I've reverse-engineered some Wifi-controlled LED controllers by using Wireshark to capture how a supplied phone app talked to the device. Simple UDP one-way messaging.

287 posts

Ultimate Geek
+1 received by user: 55

  Reply # 1879571 8-Oct-2017 23:50
Send private message





What safe and reliable options would you recommend?




I'm using 'fhem' on a RPi3. You can integrate nearly everything (regarding function AND of the shelf systems) - already existing and even new (i.e. Ikea, Hue, Heater Systems, Audio, TV, ...) stuff to it ... and: it's open source.


It mostly uses commercial 868MHz, 433MHz or even wired components with their relevant protocols - IP as well (I'm not familiar with your allowed frequency ranges).


If you don't fear CLI and some kind of initial familarization effort it's perfect for you and expandable ...


Edit: I forgot to mention 'Alexa', if you Claim to have that 'women' in your house as well ... ;-)


Have fun!

Nope, English isn't my mother tongue. But that's why I'm here. smile

4822 posts

Uber Geek
+1 received by user: 82


  Reply # 1880503 10-Oct-2017 17:48
One person supports this post
Send private message

Probably not quite what you want but I control electrical outlets using plugin wall modules from Dlink and Insteon via Alexa (and Google Home) to a RPi running OpenHAB and HABridge.

System One: Popcorn Hour A200,  PS3 SuperSlim, NPVR and Plex Server running on Gigabyte Brix (Windows 10 Pro), Sony BDP-S390 BD player, Pioneer AVR, Raspberry Pi running Kodi and Plex, Panasonic 60" 3D plasma, Google Chromecast

System Two: Popcorn Hour A200 ,  Oppo BDP-80 BluRay Player with hardware mode to be region free, Vivitek HD1080P 1080P DLP projector with 100" screen. Harman Kardon HK AVR 254 7.1 receiver, Samsung 4K player, Google Chromecast


My Google+ page 



278 posts

Ultimate Geek
+1 received by user: 53


  Reply # 1881984 11-Oct-2017 15:19
One person supports this post
Send private message

Sonoff is your best bet. They rock.


+ hack to this firmware...


then easily control via wifi



Filter this topic showing only the reply marked as answer Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38

Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55

How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08

How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15

iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13

Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11

111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50

Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41

Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29

Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22

Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18

Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47

Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25

New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48

Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.