I´m looking to power my arduino from 220(relay power input). I currently have my MC on wifi and want to cut the need for a USB connection. Anyone here with a great solution to share?
Here are the LCD related lines from the style.css file in the instance of brewpi that I am trying to embed the LCD from. Any idea which of these lines would need to be changed to add the black background?
View attachment 391757
Use one of these.
It works from 110-240VAC.
I use the same thing (sans the plastic casing and hard-wired) inside my Bluetooth and Wifi BrewPi "minions"...
Cheers!
If it were me, I'd change every one of those #000000 instances to #FFFFFF and see what happens. It looks like each line is made to handle the peculiarities of different browsers.Thanks for the help. Neither of those did it. I'll fiddle with it in earnest tonight and see what else I can find.
There's a single screw at one end and a tab/slot thing at the other.
Pull the screw and the two pieces of the case can be removed.
The line cord strain relief is captured between the two case sections so once the case is removed the cord comes free...
Cheers!
Mine, while shaped like yours, have no screws. Here comes the chisel and hammer.
My brewpi has been running fine for the last year or so. Recent accessed brewpi remotely only to find I could not view the control panel. Had to hard reset my pi.
I now get this, where it hangs indefinitely,
Here are the LCD related lines from the style.css file in the instance of brewpi that I am trying to embed the LCD from. Any idea which of these lines would need to be changed to add the black background?
View attachment 391757
<!-- Wes -->
<html>
<head>
<title>BrewPi LCD</title>
<link type="text/css" href="/rp/style.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
</head>
<body>
<div id="lcd" class="lcddisplay"><span class="lcd-text">
<span class="lcd-line" id="lcd-line-0">Live LCD waiting</span>
<span class="lcd-line" id="lcd-line-1">for update from</span>
<span class="lcd-line" id="lcd-line-2">script...</span>
<span class="lcd-line" id="lcd-line-3"></span>
</div>
<script type="text/javascript">
function refreshLcd(){
"use strict";
$.post('socketmessage.php', {messageType: "lcd", message: ""},
function(lcdText){
var $lcdText = $('#lcd .lcd-text');
for (var i = lcdText.length - 1; i >= 0; i--) {
$lcdText.find('#lcd-line-' + i).html(lcdText);
}
}, "json")
.fail(function() {
var $lcdText = $('#lcd .lcd-text');
$lcdText.find('#lcd-line-0').html("Cannot receive");
$lcdText.find('#lcd-line-1').html("LCD text from");
$lcdText.find('#lcd-line-2').html("Python script");
$lcdText.find('#lcd-line-3').html(" ");
}).always(function() {
window.setTimeout(refreshLcd,10000);
}
);
}
$(document).ready(function(){
"use strict";
refreshLcd();
});
</script>
</body>
</html>
<!-- Wes -->
}
.lcddisplay {
width: 220px;
height: 90px;
float: left;
margin: 1px;
background: #000000; /* Old browsers */
}
.lcddisplay .lcd-text{
float:left;
margin: 1px 1px;
}
.lcd-line{
float:left;
clear:left;
font-size: 16px;
font-weight: normal;
font-style: normal;
font-family: '5x8LCDHD44780UA02Regular', monospace;
color: #FFFF00;
white-space: pre;
}
I'll prefece this that I'm a php/css/webdev noob. Your post actually inspired me to look into this. Make sure you have the the embedded LCD code in R-Pints .php pointing towards the correct .css file. I would also cut down on a lot of the cruft (background gradient, boarder) for something simpler / cleaner looking.
This is the code thats embedded into my RaspberryPints.php, just above </div> <!-- End Header Bar -->
Note I had my stylesheet in "/rp/style.css" as this file sits in my parent directory. I also changed my refreshLcd time to 10000ms due to my system shooting me an error every once in a while when refreshing @ 5000 ms (default)
Appended to the end of my R-Pints style.css is the following, I truncated the width and height due to the entire header being too wide on my iPad -- to make the box bigger change "width: 220px; height: 90px" under .lcddisplay; to change the font size change "font-size: 16px;" under .lcd-line
My current r-pints, displayed on an old iPad mounted to my keezer:
![]()
My brewpi has been running fine for the last year or so. Recent accessed brewpi remotely only to find I could not view the control panel. Had to hard reset my pi.
I now get this, where it hangs indefinitely,
I'm willing to bet your reset procedure involved pulling the power and plugging it back in, which will inevitably corrupt the SD card. As @CadiBrewer mentioned, a proper shutdown command should always be used.
To run the backup sd script. Do you just put the script on the pi. Run the script and have a Sd in a USB reader attached to the pi?
Hey all,
Thanks for all of the help getting this set up to make it a pretty easy process for me. I did notice a couple of things as i put it together and wanted to add my 2 cents where applicable.
First off the "Publicly accessible BrewPi" code linked in the first post appears to need some updating. I found that it would never actually display any graphs or fill out the LCD display. so I dug in and updated the code provided by FuzzeWuzze. See below:
- Goto /var/www
(this moves the default brewpi webpage to a new location)Code:sudo mv index.php admin.php
- Create a file with vi or nano called index.php and add the contents of the code block below (Mostly fixes in the Javascript section of the file)
[/LIST]