|
I am quite surprised I cant find a prewired powerstrip with relays waiting to get connected to something. I have an electrician friend so I will get him to check everything before I see the blue smoke. I have another small project. I need to analyse a network for its traffic. I suspect a laptop is being remoted into and used as a proxy for an elderly relative and need evidence. Could I run a pi with it connected via wireless to the network and run some linux network sniffer or something?
|
# ? Jan 7, 2015 01:13 |
|
|
# ? May 7, 2024 08:09 |
|
Oh hay, I just posted something in the hackspace thread. I drew this retarded drawing: That Powertail looks like exactly the kind of thing I've been looking for. There's no way I'm paying $25 + $20ish shipping to Canada, though. Looks like I'll be starting out with these: Ethernet module: http://www.aliexpress.com/snapshot/6435408352.html?orderId=65317302677569 Touchscreen LCD: http://www.ebay.ca/itm/291147412234?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 And then a relay I have kicking around, and some outlets/cords from the hardware store.
|
# ? Jan 7, 2015 02:10 |
|
thegasman2000 posted:I am quite surprised I cant find a prewired powerstrip with relays waiting to get connected to something. I have an electrician friend so I will get him to check everything before I see the blue smoke. You can get the traffic with tcpdump and analyze it afterwards with wireshark or a similar thing, but I'm not sure if you are going to capture all the traffic from a wifi connection. I'm pretty sure you won't get anything going thru wired ethernet.
|
# ? Jan 7, 2015 19:51 |
|
thegasman2000 posted:The main sensors are water temp sensor, ph sensor, water lever sensor, light sensor and a flow sensor. That piece of poo poo is just waiting to burn down your house. You can control the UBNT MPower over ssh and it isn't arson-in-a-box.
|
# ? Jan 8, 2015 16:36 |
|
There's Wemo Belkin switches, which are controlled over Wi-Fi and have python bindings on pypi. https://pypi.python.org/pypi/ouimeaux It's a bit pricey at $50, but considering it's wireless and means you don't need to worry about AC power hitting you or your Pi, that's not a bad compromise. I once wired up a $10 wireless power switch (like you see in hardware stores particularly around Christmas) to an Arduino. I soldered a transistor between remote's button and the Arduino's pin, and had the Arduino switch the remote on whenever I wanted to toggle the device. It was pretty kludgy once I wanted to verify if the switch was turned on, though, as I then put a photoresistor over the outlet's LED to sense if the device switched. At that point, it was hardly wireless. With the wemo, you can check the state over WiFi, so that's easier.
|
# ? Jan 8, 2015 18:52 |
|
Thanks Ants posted:http://www.ubnt.com/mfi/mpower/ Those Ubiquiti things are PDUs. They run Linux and can be controlled via SNMP or whatever you want.
|
# ? Jan 8, 2015 22:41 |
|
Weird pretty sure I replied to this thread but whatever. Is it proper dodgy wiring up a relay that's says 250v and 25a to mains then? I mean most of the stuff in the aquarium is 12v and no problem but the heaters are 240v and them and the circulation pump are the key to anything living!
|
# ? Jan 9, 2015 13:03 |
|
No, it is done safely and professionally all the time. But backstabbed outlets wired with 18awg to a $10 Chinese relay board in a mdf box is just about as wrong as you can possibly do it. It just makes more sense at a hobbyist level for cost and packaging reasons to use a COTS solution like the mpower. The integrated energy monitoring is a nice addition as well. Depending on your setup, you might be best off switching the 12v stuff before their respective transformers, just plugging them into the pdu as well.
|
# ? Jan 9, 2015 16:26 |
|
Seriously, if you haven't worked with mains power before get someone with a little more experience to check what you're doing. 240V can kill you. You also mentioned powering a lot of devices like pumps and heaters--have you looked at how many amps they'll draw and how many amps your relays can support? What about spikes in current when motors kick on? What about fuses, you do have those right? If it's a mechanical relay, what's the failure mode when it gets jammed in the on position--does the heater melt down and start a fire?
|
# ? Jan 9, 2015 21:55 |
|
My mate is a qualified electrician and he will double check everything before I flick the switch! The relays are good for 25A which sinker than enough for all except the heaters. They are my worry. The heaters are only on the relays as a backup in itself as they are automatically designed to sustain a temp. That relay would be wired for always on and the relay runs of the heater jams on. This has happened to plenty of people and cooking coral and fish smells lush.
|
# ? Jan 9, 2015 22:30 |
|
thegasman2000 posted:My mate is a qualified electrician and he will double check everything before I flick the switch! 25 AMPS!? Just echoing caution when testing these things, especially around water. Half an amp can kill you. Be safe!
|
# ? Jan 9, 2015 22:35 |
|
thegasman2000 posted:My mate is a qualified electrician and he will double check everything before I flick the switch! How big is your tank? 240v * 6amp = 6,000 watts, for perspective an 800 watt heater on amazon heats a 265 gallon tank. . . Are you sure these heaters draw 240V 25amps?
|
# ? Jan 10, 2015 00:32 |
|
Sorry no the relays can handle 25A each. I have a paid of 100w heaters I think. One thing I am wondering is if I could wire the gpio pins to a hdmi connecter and then use a standard cable say 2M to another connector. Would make it look tidier than a 2M ribbon. Hdmi has 19 pins so that's fine but could they take the 3.3V that's needed?
|
# ? Jan 10, 2015 00:39 |
|
thegasman2000 posted:Sorry no the relays can handle 25A each. I have a paid of 100w heaters I think. DIN, or D-Sub would probably be better choices. (Think serial, LPT or old fat round keyboard connectors) Cheap, robust connectors, designed for serial data and similar voltages, easier for a regular human to solder reliably.
|
# ? Jan 10, 2015 01:37 |
|
Cat5/6 cables are great too. Can get them for super cheap, and can crimp on connectors without too much trouble.
|
# ? Jan 10, 2015 01:46 |
|
Is there a way to talk to the Raspberry Pi over the USB power connection? This was really handy for the BBB, I could toss it in my bag and get some work done on a road trip or whatever. Hook it up to the usb port and SSH in to the board via putty over a COM port. Magic. I've sort of come up with a workaround where I use my phone as a hotspot with the same wifi credentials as my home wifi router and then run a powershell script to ping all the IP addresses in the /24 block but that's kludgy at best
|
# ? Jan 11, 2015 23:40 |
|
Unfortunately no, the USB port on the Pi is just for power. On the BBB the TI processor explicitly supports both a USB host (what you plug USB gadgets like mice and keyboards into) and a USB device (what you plug in to your computer to get a network, mass storage, etc. device from the BBB) port. The Pi only supports a USB host port.
|
# ? Jan 12, 2015 00:08 |
|
You can't bring a short ethernet cable, too?
|
# ? Jan 12, 2015 00:11 |
|
For the RasPi what you could do is get a USB-to-TTL cable. Would require you to have the GPIO pins on the Pi accessible but would let you power it and connect to it via serial in the sort of way you're describing.
|
# ? Jan 12, 2015 00:15 |
|
Hadlock posted:Is there a way to talk to the Raspberry Pi over the USB power connection? You can also access the shell through the GPIO pins (haven't tried it but shouldn't be too difficult with the proper cable). fake edit: shouldn't have left the reply window open so long
|
# ? Jan 12, 2015 00:43 |
|
ante posted:You can't bring a short ethernet cable, too? It's an A+ model with an edimax USB wifi nub, no RJ-45 jack I do have some serial->BT adapters floating around, establishing an X session over 112 kilobaud serial would be a trip Seems kind of silly I can't talk to it without an intermediary when it's plugged in to my laptop via a data cable. I guess you could setup some kind of script where if after 2 minutes if it can't connect to a known AP it switches over to being an access point that you can connect to. That seems like an awful lot of work though.
|
# ? Jan 12, 2015 03:19 |
|
Oh I have a BT dongle; I can just SSH in over that instead of wifi; it looks like this is pretty straightforward.
|
# ? Jan 12, 2015 05:47 |
|
Dohaeris posted:I've made a rather nice little twitter kiosk out of my pi. It's plugged into a TV in a classroom and uses Twitterfall to display tweets on a list I've created of appropriate stuff. However, one downside, Twitterfall doesn't show pictures which would make the whole thing about a thousand times more visually interesting. I can't find an alternative to Twitterfall that allows me to do what it does while also displaying pictures. Do I need to write my own widget or is there a better alternative? Because I don't know how to do that and it's driving me nuts to see cool pictures scroll by but not being able to see what they are. Did you ever get anywhere with this? Sounds cool
|
# ? Jan 17, 2015 20:19 |
|
I'm setting up a Pi with OctoPi to run my 3d printer. I'm using a Linksys wifi dongle and for some reason when I connect to the wifi it knocks out the network for everything else- all of a sudden everything else can't pull IPs anymore. As soon as I power down the Pi it works fine. The router is an Apple Time Capsule. Wtf?
|
# ? Jan 18, 2015 20:01 |
|
The pi dies when you try connecting to the router, or the router dies and nothing can connect to the internet anymore? If it's the first you may have too many devices attached to the pi on an unpowered hub. If it's the second, what are the model numbers of the dongle and router
|
# ? Jan 18, 2015 20:07 |
|
Apple routers are notoriously bad and do strange things. I would get a cheap TP-Link router and throw OpenWRT on it.
|
# ? Jan 18, 2015 20:15 |
|
It's the second. The dongle is a Linksys wusb600n. The router is a 2013 Apple time capsule, 2tb (wireless n, not the tall skinny one).
|
# ? Jan 18, 2015 22:45 |
|
mod sassinator posted:Apple routers are notoriously bad and do strange things. I would get a cheap TP-Link router and throw OpenWRT on it.
|
# ? Jan 19, 2015 17:23 |
|
I dunno, but I've used a lot of small wifi boards and all of them usually have errata like they don't work with Apple routers.
|
# ? Jan 19, 2015 19:17 |
|
I have mine running XBMC and networked to my desktop where my movie files are located. I haven't had any problems running any files, besides the fact that they take a little longer to load initially (I am assuming this is because it is networked). I did run into an issue with a lot of pausing and intermittent picture quality issues during playback of a larger (44 GB) Blu-ray, HD Master Audio file. Is this simply because of the size of the file and the fact that its playback is through a network connection? Or could it be a Raspberry Pi/XBMC issue? Is there such thing as faster HDMI cables (much like USB) that might be causing the issue?
|
# ? Jan 19, 2015 20:28 |
|
AzCoug posted:I have mine running XBMC and networked to my desktop where my movie files are located. I haven't had any problems running any files, besides the fact that they take a little longer to load initially (I am assuming this is because it is networked). If it's not hardwired, it could be limitations of wireless. But at 44GB I'm assuming they're full bit-rate bluray rips, which I doubt the Pi can handle to begin with.
|
# ? Jan 19, 2015 20:34 |
|
37th Chamber posted:If it's not hardwired, it could be limitations of wireless. It's hardwired, not Wifi. Is there an update to Pi that would fix it? Or an alternative to Pi?
|
# ? Jan 19, 2015 20:59 |
|
37th Chamber posted:If it's not hardwired, it could be limitations of wireless. Even on a 100Mb hardwired connection I'd suspect the connection would be the bigger issue. I've done full blu-ray rips on my Pi which is overclocked (Moderate setting, I believe) and it works. I have it running from a USB 3.0 thumb drive, and although the Pi can't do 3.0 it definitely seems to help.
|
# ? Jan 20, 2015 01:20 |
|
JazzmasterCurious posted:Isn't it the other way around? That Apple routers are solid and interoperable, but their other devices had some Wi-Fi jackassery (excessive polling?) going on some time in the past? Apple routers are only "solid" with Apple devices, especially when you're working with embedded type devices.
|
# ? Jan 20, 2015 01:33 |
|
Bovril Delight posted:Even on a 100Mb hardwired connection I'd suspect the connection would be the bigger issue. Huh, learn something every day, surprised the Pi, even with hardware decoding, has enough power to do that, thanks!
|
# ? Jan 20, 2015 07:20 |
|
To clarify "rips", were you decoding it to a file or for playback?
|
# ? Jan 20, 2015 12:52 |
|
37th Chamber posted:Huh, learn something every day, surprised the Pi, even with hardware decoding, has enough power to do that, thanks! GPU acceleration is a hell of a thing.
|
# ? Jan 20, 2015 13:48 |
|
keyvin posted:To clarify "rips", were you decoding it to a file or for playback? Playback, sorry. I double checked and I have it on the 900MHz overclock.
|
# ? Jan 20, 2015 14:28 |
|
I think I saw a guide for a graphical boot. Basically, I want to flip the device on and never once see any text or a single blinking cursor. I want it to go from power off -> graphical splash -> load either the GUI or a fullscreen application. Is this possible?
|
# ? Jan 20, 2015 20:39 |
|
|
# ? May 7, 2024 08:09 |
|
You can do this with the base config application raspi-config http://www.raspberrypi.org/documentation/configuration/raspi-config.md
|
# ? Jan 20, 2015 20:43 |