MongooseMan
Well-Known Member
How about using some HTML5 video.
That's the plan, just gotta get it to work
How about using some HTML5 video.
sudo chown root.video /dev/video*
sudo adduser brewpi video
sudo chmod g+rw /dev/video0
#!/bin/bash
cvlc v4l2:///dev/video0 :v4l2-standard= :input-slave=oss://denull :live-caching=300 :sout='#duplicate{dst="transcode{vcodec=theo,vb=1024,channels=1,ab=128,samplerate=44100,width=320}:http{dst=:8084/stream.ogg}"}'
echo <brewpi password here> | sudo -S chmod 666 /dev/video0
crontab -e
@reboot /home/brewpi/webcam.sh > /home/brewpi/vlclog.log 2>&1 &
<video id='webcamVid' width='600px' controls>
[INDENT]<source src='http://<brewpi url>:8084/stream.ogg' type='video/ogg'>[/INDENT]
</video>
At least I know how to find the ground pin now using a tester. For everyone else. Set to ohms 2k. With 1 lead on com and the other on V-ohm. Start testing by taking 2 wires and placing one of each on a separate tester leg. When you get a reading look at your leads. The one attached to Vohm is your ground. Now keep that one attached to ground alternating the other 2 wires to read their values. The higher value is you 5v in and the lower value is data.
I posted this earlier when I found out how to figure out which wire goes where
Note: Echo-ing the password into the sudo is bad. Feel free to tell me it's bad, IF you can tell me a better way to make sure VLC has access to /dev/video0 (which it doesn't, by default)
This is the schematic you want. You'll need a 595 shift register. No reprogramming of pins. Should be able to wire it up and have it work. I'm leaving on vacation for two weeks tomorrow or I'd throw this together and test it out. If nobody has by the time I get back maybe I'll put it together.
Thank you for posting!Here's a drawing of the circuit that I built on a Radio Shack Prototype Shield (plugs right on top of an Uno). It's based on the BrewPi Rev C shield schematic and uses a 20x4 LCD, a 74HC595 Shift Register and a couple of 10K pull-up resistors.
You'll be fine at 4.6k it doesnt affect the accuracy.
So cool. Thank you for posting. I will be trying this very soon when I can get to radio shack.
I had to set the laptop to still be alive when closed and also keep power supply plugged in if using for extended periods. Some people have reported here that if you power the arduino from a wall wart rather than just the usb the power is more stable and less prone to issues. Also make sure usb cable is not near power cables. I have been lucky so far with this and haven't had the same issues
Sent from my iPhone using Home Brew
Just remember they don't sell shift registers at rshack in store. Unless it's in one of the maker kits possibly. and the ones they sell online I haven't been able to verify any like-correlation between them and the 595. I'm sure one of theirs would work I just don't like how non-descript the website is.
I had to set the laptop to still be alive when closed and also keep power supply plugged in if using for extended periods. Some people have reported here that if you power the arduino from a wall wart rather than just the usb the power is more stable and less prone to issues. Also make sure usb cable is not near power cables. I have been lucky so far with this and haven't had the same issues
Sent from my iPhone using Home Brew
Ok so after troubleshooting, the problem isn't the circuitry or the power cable powering the refrigerator. I have isolated the problem to my laptop battery charger, which is a bummer. I can unplug the charger, and my temps come up right away after 3 seconds. Then I plug it in, and they go away and the display only shows "--".
It's a third party charger that I bought because I couldn't find my original one, but I don't really know what to do.
I found a long cable (5 feet) that works with the arduino, and it has a ferrite clamp at either end. I used this cable and was able to move my laptop very far away from the circuitry, but it still interfered too much. I plugged the charger at the other end of the room, and it still couldn't get the temps.
Any ideas besides getting a new charger? Any way to block interference? I've already tried a ferrite clamp on either side of the charger and it didn't help.
What sensors are you using? DS18b20's can have problems with interference. Try shielding the cable for your sensor.
I'm using some DS18B20s that I got very cheap on eBay. I'm wondering if better quality sensors will fix the issue. I ordered a new charger and some ferrite cable clamps. Hopefully that will be enough. I've been able to get it up and running and I've been monitoring it from work using TeamViewer and it seems to be holding the temperature but the temp lines on the chart are like dashed lines, presumably from when it loses the readings.
Also, one other question. Are any of you having problems with your chart? I tried searching this issue but I couldn't find anything. My chart will lose the time stamps on the x axis and I have no idea how to get it back. How do I fix that? I've tried refreshing both the chart and the page, as well as stopping and restarting the script. Any ideas?
I cant help but think its related to your sensors cutting in and out, once thats fixed I bet the graph is
The data or json file has a glitch and the graph is showing the data points all the way through the file and hitting a bad zero at the end or something
I am unable to fix my chart. On my phone, I can navigate the charts much better on my phone, where it lets me see the earlier graph.
I've attached a couple of pictures to show you what I mean.
In the first picture, you can see that the time stamps are all gone, and the graphs all look weird. If I hover over them with my cursor, it will tell me the temps of each one and the time. But if you look at the second picture, I've moved the cursor back to the earlier part, and the time stamp shows a later time. I have no idea how to fix it.
I had strange things. (So I thought) when I ran my last brew. On my phone I could navigate and see more than on my dell lappy. It turned out that the way I was using the mouse and holding / clicking gave different results. I couldn't see below 8 deg c. Was only because somehow I had scrolled down on the y axis with my mouse pointer. Have a play with the mouse by dragging and clicking around the axis. I thought there was something wrong also but was only the way I navigate around on the laptop vs the phone.
Sent from my iPhone using Home Brew
Enter your email address to join: