Yeah I didn't have a thermowell until now. But at the moment I was following fuzze's instructions on setting it up to make it public and now the Pi powers up but nothing loads. I reloaded noobs onto another SD card but no change..
While I don't use password protection so I can't help with that. I did not put rpints in the main www directory. I gave mine it's own directory. Perhaps rpints and brewpi are using different permissions and it's keeping you from deleting the lock file. What does your cron job look like? Maybe something is wrong there. As far as imaging the sd card it's just the same as writing to it from windows just in reverse.
stderrpath="/home/brewpi/logs/stderr.txt"
stdoutpath="/home/brewpi/logs/stdout.txt"
scriptpath="/home/brewpi"
entries="brewpi wifichecker"
# entry:brewpi
* * * * * brewpi python $scriptpath/brewpi.py --checkstartuponly --dontrunfile $scriptpath/brewpi.py 1>/dev/null 2>>$stderrpath; [ $? != 0 ] && python $
# entry:wifichecker
#*/10 * * * * root sudo -u brewpi touch $stdoutpath $stderrpath; $scriptpath/utils/wifiChecker.sh 1>>$stdoutpath 2>>$stderrpath &
I waited more than 10 min. That should be sufficient when cron should be checking every min of every day?For the start script button- how long are you waiting from when you press it? I know when I first started in brewpi land that I thought it was broken but it actually takes a minute or so before it responds.
Actually, I am a Mac user. Can I do it in the RPi or on a Mac? For the permissions issue you mention, wouldn't it make no difference since the file is created by user "brewpi" and group "www-data", the same that is seeking to delete it? I admit I don't know too much about this stuff.
Do you have a do not run file in www/brewpi
Yes you can do all this via mac, easiest way is to open terminal (search in finder) and the ssh in you do this by typing ssh pi@ipaddress
No, it's is only being created in /var/www . I tried copying it (with same owner settings to match the original) to /var/www/brewpi, but the Web UI didn't do anything to remove it from there either.
Sorry if this wasn't clear: I do know how to use SSH and basic command line prompts (I'm running the Pi headless), I meant I didn't know how to create a backup image of my SD card in the Pi.
First, let me say that this thread is truly incredible and the reason I joined HBT after plenty of lurking. There are some very clever people collaborating here!
I've gone and executed the instructions for setting up brewpi on a Debian PC, and I've got the brewpi interface up and running. Sensors are configured, HEX file uploaded, etc. As far as I can tell, everything is as it should be.
The problem is, when I kick off brewpi, it runs correctly for a variable period of time (a few minutes to a few hours), before the script stops running and I see the message in the LCD window: "Cannot get version number. Please (re)program Arduino."
I've run the py script from command line, and I've found the following error is associated with this problem:
FridgeTemp": 68.42,"FridgeSet": 59.13,"FridgeAnn":null,"State":5}
Jun 21 2015 16:38:40 Serial Error: [Errno 5] Input/output error)
Jun 21 2015 16:38:40 Serial Error: [Errno 5] Input/output error)
Traceback (most recent call last):
File "/home/brewpi/brewpi.py", line 728, in <module>
ser.write('l')
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 518, in write
raise SerialException('write failed: %s' % (v,))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error
root@debian:/home/brewpi# sudo -u brewpi python /home/brewpi/brewpi.py
Jun 21 2015 16:40:38 Notification: Script started for beer 'Test'
Jun 21 2015 16:40:48 Checking software version on controller...
Traceback (most recent call last):
File "/home/brewpi/brewpi.py", line 374, in <module>
hwVersion = brewpiVersion.getVersionFromSerial(ser)
File "/home/brewpi/brewpiVersion.py", line 29, in getVersionFromSerial
ser.setTimeout(1)
File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 402, in setTimeout
if self._isOpen: self._reconfigurePort()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 325, in _reconfigurePort
raise SerialException("Could not configure port: %s" % msg)
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')
Rebooting the machine corrects the problem temporarily. Initially I suspected a problem with the cable or the Arduino, so I bought another one. The issue still persists, so I think that can be ruled out. This would seem to be a serial port configuration issue, but I have no clue how to solve it. Please help!
FWIW, I even tried programming my Uno using a laptop Debian native install and got the same issue as above when I was using my Pi. The Arduino was originally programmed a few months ago using a desktop Debian install so maybe that USB port was just pumping more power than the Pi or my laptop. It's working for now so who knows?
The problem is, when I kick off brewpi, it runs correctly for a variable period of time (a few minutes to a few hours), before the script stops running and I see the message in the LCD window: "Cannot get version number. Please (re)program Arduino."
...
Rebooting the machine corrects the problem temporarily. Initially I suspected a problem with the cable or the Arduino, so I bought another one. The issue still persists, so I think that can be ruled out. This would seem to be a serial port configuration issue, but I have no clue how to solve it. Please help!
You already tried replacing the Arduino, another usb cable, or both?
Both. Same exact error.
I'm going to try externally powering the Arduino and see if that solves the problem. If not...we'll go from there.
Both. Same exact error.
I'm going to try externally powering the Arduino and see if that solves the problem. If not...we'll go from there.
First, let me say that this thread is truly incredible and the reason I joined HBT after plenty of lurking. There are some very clever people collaborating here!
I've gone and executed the instructions for setting up brewpi on a Debian PC, and I've got the brewpi interface up and running. Sensors are configured, HEX file uploaded, etc. As far as I can tell, everything is as it should be.
The problem is, when I kick off brewpi, it runs correctly for a variable period of time (a few minutes to a few hours), before the script stops running and I see the message in the LCD window: "Cannot get version number. Please (re)program Arduino."
I've run the py script from command line, and I've found the following error is associated with this problem:
FridgeTemp": 68.42,"FridgeSet": 59.13,"FridgeAnn":null,"State":5}
Jun 21 2015 16:38:40 Serial Error: [Errno 5] Input/output error)
Jun 21 2015 16:38:40 Serial Error: [Errno 5] Input/output error)
Traceback (most recent call last):
File "/home/brewpi/brewpi.py", line 728, in <module>
ser.write('l')
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 518, in write
raise SerialException('write failed: %s' % (v,))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error
root@debian:/home/brewpi# sudo -u brewpi python /home/brewpi/brewpi.py
Jun 21 2015 16:40:38 Notification: Script started for beer 'Test'
Jun 21 2015 16:40:48 Checking software version on controller...
Traceback (most recent call last):
File "/home/brewpi/brewpi.py", line 374, in <module>
hwVersion = brewpiVersion.getVersionFromSerial(ser)
File "/home/brewpi/brewpiVersion.py", line 29, in getVersionFromSerial
ser.setTimeout(1)
File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 402, in setTimeout
if self._isOpen: self._reconfigurePort()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 325, in _reconfigurePort
raise SerialException("Could not configure port: %s" % msg)
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')
Rebooting the machine corrects the problem temporarily. Initially I suspected a problem with the cable or the Arduino, so I bought another one. The issue still persists, so I think that can be ruled out. This would seem to be a serial port configuration issue, but I have no clue how to solve it. Please help!
It's one of those little mini computers. Got it from a friend, so I don't remember the model number offhand.
I did flash the BIOS already, and I disabled power management. I also tried running the whole apparatus off an old PC. Same error, every time.
In order of priority, my solutions are going to be:
--External power cable for the Arduino
--Ferrite core USB cable
--Spring for a Raspberry Pi
I'll post results as they come in.
What I'm seeing in these posts could be explained by insufficient power at the Uno.
Powering an Uno via its USB port is asking for trouble.
Use a 9V to 12V 1A wall wart and save yourself the aggravation...
Cheers!
What I'm seeing in these posts could be explained by insufficient power at the Uno.
Powering an Uno via its USB port is asking for trouble.
Use a 9V to 12V 1A wall wart and save yourself the aggravation...
Cheers!
Try just running the update script I experienced the same problem with a raspberry pi and a sainsmart arduino I'm not sure whether something has changed in the install script but my brewpi went from working fine to not working following a new install, then corrected itself after running the update. It's the cheapest option so worth a shot. If that doesn't work then try buying new power supplies etc.
Or maybe I can have the BrewPi script try a few times to recontact the Arduino before quitting. We'll see...
run = 0
elif (time.time() - prevDataTime) > float(config['interval']) + 2 * float(config['interval']):
#something is wrong: controller is not responding to data requests
logMessage("Error: controller is not responding to new data requests")
run = 0
Welp, externally powering the Arduino didn't work. However, the script ran for 5 hours before erroring out, though, so I'm not convinced it didn't help. I had to go out of town for a couple of days so the Arduino will be handling temp control on autopilot until I get back.
I've got a ferrite-tipped USB cable coming from Amazon, and I'll also run the update script before I do anything else.
After that...it might be time to start thinking about workarounds. If this thing is only failing every few hours, I may just tell the PC to reboot whenever it detects that the BrewPi script has encountered a problem. Or maybe I can have the BrewPi script try a few times to recontact the Arduino before quitting. We'll see...
If after comms stop can you stop and restart the script from the web ui and it reconnect?
If so you could try adding the lineinside the elseif statement at line #741 in brewpi.py. This *theoretically* would cause script to automatically stop when serial comms go down, and the cron job would restart it after a minute or so. (I think, I haven't tried it)Code:run = 0
IE:
Code:elif (time.time() - prevDataTime) > float(config['interval']) + 2 * float(config['interval']): #something is wrong: controller is not responding to data requests logMessage("Error: controller is not responding to new data requests") run = 0
No, the controller doesn't come back up if I restart the script from the web UI. A restart does bring it back up, though. Not sure why that is, since I don't think the restart affects the Arduino.
Anyone have insight?
It's one of those little mini computers. Got it from a friend, so I don't remember the model number offhand.
I did flash the BIOS already, and I disabled power management. I also tried running the whole apparatus off an old PC. Same error, every time.
In order of priority, my solutions are going to be:
--External power cable for the Arduino
--Ferrite core USB cable
--Spring for a Raspberry Pi
I'll post results as they come in.
Start by looking at what the yeast recommends. Then set your temp according to that. If you choose you could try keeping it in the low side of the recommended temperature range. Once you hit your FG numbers try raising the temp into the higher end of that range for a couple days to clean up the yeast. Once you find the best temps for that style and yeast you can try setting up your own profile for that beer.
Id go with 60-62. But it depends on what types of flavor you're looking to get from the yeast. Have you used it before? What temp did you run it at last time? These are things only u can determine. I do a lot of ales, so I typically run everything at 65 as far as ales go. Then I bring it up to 72 after I'm satisfied with where the gravity is. After its cleaned up for a few days it's time to cold crash.
And like I said. Until you are doing the same recipe over and over again, you won't be using a profile. The profile is intended for reproducing past results. If you have a particular beer and you find that you like how it came out. You'd want to recreate that. So after a few runs you find that it seems to finish after a certain amount of days. You can build a profile around that.
It would be nice if we could have some sort of gravity meter in there all the time and we could then have dynamically changing profiles. If only I could code or could find someone to help me transform these wiifit balance boards into bluetooth digital scales. It might possibly could become a reality.
I still haven't solved this. Any ideas, anyone?I am having a couple software issues:
- I am running 1 instance of Brewpi with RPints on a RPi2, wired to ethernet. RPints is in /var/www and Brewpi is in /var/www/brewpi, which is how I set it up through the automated install (installing RPints 1st). I would prefer it this way too since I plan to open it up to remote access from work using a login for the Brewpi (and thankfully RPints comes with built in admin security).
- The script starts at the initial boot fine and the CRON job seems to be working fine. If I stop the script from the Web UI, it stops and creates the "brewpi do not run" file in /var/www (that may not be the exact file name, because I'm typing this from my phone away from home, but that is the right location). It is owned by user brewpi and group www-data. However, if I click the start script button on the Web UI, nothing happens and the "brewpi do not run" file remains in /var/www . If I manually remove the file via the command line, CRON catches it, and the brewpi starts back up normally.
- So how do I get the script on/off button to work correctly from the Web UI? Is this not working because the button expects the index.php and the "brewpi do not run" files to be in the same directory? I've seen plenty of posts indicating others run brewpi outside of /var/www and it seems to be working for them. Do I need to edit a file to tell it the real path? When I initially installed brewpi, I told it about the /var/www/brewpi location, I didn't move it there after. I have tried a fresh install of everything (reformatted another microSD card and started from scratch), but continue to have this problem.
With a bit more scouring the web, I solved this issue! :rockin:- A 2nd problem I'm having: I mentioned above that my plan is to allow for remote access, and to that end, I am looking to get a login for the brewpi page (I don't need a dummy page to show it off to friends, I just want access for myself). I have tried the .htaccess method suggested at various times in this thread, but not gotten it working. Basically, I can protect the /var/www/brewpi folder, but I don't get the prompt to login to access it. I don't know what's wrong. Do I need to add something to my Apache install?
Got this working as well, thanks to some direction from the replies to the post on what to search for.- Finally (for now), once I get everything setup and stable, how to I create an image of this so if I muck it up, I can revert back? And how do I revert it back if needed?
As I said (see below quote), I do not, but I haven't seen a further reply to this. So....bump! Is there a way to force one to be created in the correct directory? I feel like I am in the home stretch of getting this software fully operational, at which point I'll get the hardware finalized to start a brew!Do you have a do not run file in www/brewpi
Enter your email address to join: