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

171 posts

Master Geek

#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
738 posts

Ultimate Geek


  #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.

171 posts

Master Geek

  #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).






3744 posts

Uber Geek

Lifetime subscriber

  #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.

1129 posts

Uber Geek

  #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!

- ISP1: OneBox FTTH modem, 1/.5G, full DS, VLAN7, VoIP + ipTV streaming flat
- ISP2: LTE USB modem + GL-AR750S, 100/40M data plan (wireless fallback)
- NET: OpenWrt ZBOX CI329, C2960X-48TS-L, 3 GWN7630, Ellipse 800 + 1600
- SVR: E3C236 32G/24T, 2 H2 16G/500G, N2 4G/1T || remote HC2 14T, HC2 4T
- USR: DeskMini 9i5, NUC8i7HVK, Aspire E5, EliteBook 840, Galaxy Tab, 4K TV
- IoT (EU868): openHAB, CCU3, Vantage ISS 6327, 4 LoRaWAN GWs, 14 Nodes
- 3D: 2 Ender-3/Pro, 4 Ultimaker 2E+/3/3+/S5, MPCNC, EleksLaser-A3 Pro
- ipPBX: GO-Box, 2 GRP2613, SPA112 (Fax & W-48, a 1948 Siemens phone)



5312 posts

Uber Geek


  #1880503 10-Oct-2017 17:48
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.

Staying in Wellington. Check out my AirBnB in the Wellington CBD.  Mention GZ to get a 10% discount


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, Denon AVRS730H 7.2 Channel Dolby Atmos/DTS-X AV Receiver, Samsung 4K player, Google Chromecast, Odroid C2 running Kodi and Plex



406 posts

Ultimate Geek

  #1881984 11-Oct-2017 15:19
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 and LinkedIn »

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 »

Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53

Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48

Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44

Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41

Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07

New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58

Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10

Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30

Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14

Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17

Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56

Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28

Apple announces Mac transition to Apple silicon
Posted 23-Jun-2020 08:18

OPPO A72 a top mid-tier smartphone
Posted 19-Jun-2020 18:02

D-Link A/NZ launches new smart AX1500 Wi-Fi 6 Router
Posted 19-Jun-2020 15:03

Geekzone Live »

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

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

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.