• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

[Version 2 Release] RaspberryPints - Digital Taplist Solution

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Thoughts on installation on Raspbian Stretch

So the main source of issue is that Raspbian Stretch makes use of php7, while the RPINTS software was designed in php5.
Unless someone performs a deep dive into the RPINTS source code to update for usage within php7, we simply need to bypass using php7.

That is exactly what I had done - and I am working fine (without flow meters yet though) with php7, and have made the required changes to the RPints source.

For the moment, lets forgo the pros/cons of this approach vs reverting to PHP5. This makes for a great friendly discussion over a few beers.
I would like to take your approach and retrofit it to Stretch, and then try to finish up with the new RPints source conversion I had done. Hence the request for a non PDF version of your instructions so I can make the note changes as an alternate revision using php7. My RPints source code changes are mainly around function parameter passing (mysql connection link) and converting one void function to return the connection link object. (I'm not a fan of attempting to use globals in general if at all possible.)

Note - my changes on getting things to work is different than yours. I admit I'm more of a hack when it comes to the OS, and so would prefer to use a version from someone who really knows what they are doing as a baseline as it definitely looks more sound.​

Thanks,
 
I think @CaptnDelta did an RPints rebuild that supported pyWebsockets for refreshing remote screens, so you could try installing his version (but if you've got any customisations you'd have to redo them all, so it's a whatever is the lesser of two evils scenario).

Cheers,

Kal

I’ll have to look into that. I don’t have very little custom just standard flow meter setup and a few graphic tweaks. Any idea where I can find a how to on this setup?
 
Oh - Very nice job! I think this should be a gold standard going forward and added to this site as a sticky.

I had just recently got the non flow version to work on RPi 3 and Raspian Stretch (OCt 2017). I am about to try to tackle the Flow Meters, but your instructions can't be beat. So thank you for the excellent timing. The challenge I came across under Rasperian Stretch is that some libraries were deprecated and so to get it to work I had to reference the mysql_ calls with the newer mysqli_ calls. This did also require a change in all PHP code functions in that the mysql connection string is now required for all db calls and had to be passed. My next goal is to redo the RPints installer so others can use the latest OS if desired.

(Would it be possible to get your instruction file in some other format other than PDF? I tried converting to MS Word and it isn't the prettiest.)

Thanks again for the great work!

Thoughts on installation on Raspbian Stretch

So the main source of issue is that Raspbian Stretch makes use of php7, while the RPINTS software was designed in php5.
Unless someone performs a deep dive into the RPINTS source code to update for usage within php7, we simply need to bypass using php7.

It should be possible to complete the RPINTS installation on Stretch if you modify the Source List for Apt-Get so that you do not use the most current version of phpMyAdmin, which is the point where the php7 utilities get installed and mucks up RPINTS.

One should be able to follow my install instructions in this thread with minor changes:
https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-79#post-8184819

Changes to the instructions:
1) Use the current version of Raspbian OS. Do not download the Jessie version.
2) Directly BEFORE the installation of phpMyAdmin, insert the following instructions:

sudo nano /etc/apt/sources.list

add these 2 lines to the end of the file:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspian.org/raspbian/ jessie main contrib non-free rpi

Comment out this line in the file: (Add a hash-tag (#) to the beginning of the line to comment out)
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi

Save and exit editing sources.list
Essentially, we have now directed Raspian to only look at the Raspbian Jessie source for new package installations. Apt-Get will no longer query the Stretch source files and thus will no longer update phpMyAdmin or any PHP utilities to PHP7.​

Then you can proceed with the phpmyadmin installation:
sudo apt-get install phpmyadmin
It would be important to never revert the SOURCE.LIST to the original and then perform an update/upgrade of the Raspberry Pi.

It's great to see a couple more takers on the great Stretch RPints challenge, I also tilted at this windmill back in September (even got Kevin at Wyolum to update the Alamode sketch to support Stretch: https://github.com/wyolum/alamode/issues/3), but my issue was also hardware related (in particular the power sacrificing on the RPi3 to support onboard wifi/bluetooth).

I think I may have found a solution to that (the first section in the document), but never got around to testing it as life got in the way until now.

I took a different approach and installed PHP5 & PHP7 side-by-side so that the RPints could still use mysql_connect, etc without having to rebase the entire code with PDOs (which is beyond my current skillset), and still use PHP7, MariaDB, and the latest version of phpMyAdmin which at the time was 4.7.4

I've attached my instructable as both PDF and zipped a DOCX for anyone who wants to pillage any of it.

Maybe we can collaboratively crack this one?

Cheers,

Kal
 

Attachments

  • Stretch RPints.pdf
    72.8 KB
  • Stretch RPints.zip
    8.5 KB
That is exactly what I had done - and I am working fine (without flow meters yet though) with php7, and have made the required changes to the RPints source.

For the moment, lets forgo the pros/cons of this approach vs reverting to PHP5. This makes for a great friendly discussion over a few beers.
I would like to take your approach and retrofit it to Stretch, and then try to finish up with the new RPints source conversion I had done. Hence the request for a non PDF version of your instructions so I can make the note changes as an alternate revision using php7. My RPints source code changes are mainly around function parameter passing (mysql connection link) and converting one void function to return the connection link object. (I'm not a fan of attempting to use globals in general if at all possible.)

Note - my changes on getting things to work is different than yours. I admit I'm more of a hack when it comes to the OS, and so would prefer to use a version from someone who really knows what they are doing as a baseline as it definitely looks more sound.​

Thanks,

Forgot to reply to you @Fred S.
I had updated my original post by adding the instructions as a Word doc zipped. You should find the original Word doc there now:
https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-79#post-8184819
 
You could by simply changing the tags from <h3></h3> to <h2></h2> or even <h1></h1> in the index.php file around the ABV line.


Actually both the index.php file mentioned above and the style.php file are located in the /var/www/ or /var/www/html/ directory depending on which step you used to get to the finish line.

My recommendation if you are not confident with editing via command line is to install an SFTP client like Filezilla or WinSCP and download a local copy of your /var/www/ directory (or /var/www/html/ if you installed RPints there), and edit your files locally with your favourite text editor (Notepad++ is great for Windows, Text Wrangler used to be great on Mac but it's been a few years since I used one, on Linux you won't need to be told as you'll already have one (my fave is Komodo)), then just upload them back to your Pi when you are done.

Cheers,

Kal
I have actually become more comfortable with using terminal through setting all of this up! I was able to center the beer name and description text (thank you) and changed the header of the calories/alcohol to just "ALCOHOL" and centered it up. I deleted the shot glass images, but now I would like to delete the "xxx kCal", change the "x.x% ABV" text to the same font size, bold, etc. as the Beer Name, and move the "x.x% ABV" text to the middle (vertically). Which text to I need to alter (I'm guessing in the index.php file)? Thank you.
 
I have actually become more comfortable with using terminal through setting all of this up! I was able to center the beer name and description text (thank you) and changed the header of the calories/alcohol to just "ALCOHOL" and centered it up. I deleted the shot glass images, but now I would like to delete the "xxx kCal", change the "x.x% ABV" text to the same font size, bold, etc. as the Beer Name, and move the "x.x% ABV" text to the middle (vertically). Which text to I need to alter (I'm guessing in the index.php file)? Thank you.
Well in theory it should be a case of changing this in your index.php file:
PHP:
                                        <h3><?php
                                            $calfromalc = (1881.22 * ($beer['fg'] * ($beer['og'] - $beer['fg'])))/(1.775 - $beer['og']);
                                            $calfromcarbs = 3550.0 * $beer['fg'] * ((0.1808 * $beer['og']) + (0.8192 * $beer['fg']) - 1.0004);
                                            if ( ($beer['og'] == 1) && ($beer['fg'] == 1 ) ) {
                                                $calfromalc = 0;
                                                $calfromcarbs = 0;
                                                }
                                            echo number_format($calfromalc + $calfromcarbs), " kCal";
                                            ?>
                                        </h3>
                                        <div class="abv-container">
                                            <?php
                                                $abv = ($beer['og'] - $beer['fg']) * 131;
                                                $numCups = 0;
                                                $remaining = $abv * 20;
                                                do{
                                                        if( $remaining < 100 ){
                                                                $level = $remaining;
                                                        }else{
                                                                $level = 100;
                                                        }
                                                        ?><div class="abv-indicator"><div class="abv-full" style="height:<?php echo $level; ?>%"></div></div><?php
                                                      
                                                        $remaining = $remaining - $level;
                                                        $numCups++;
                                                }while($remaining > 0 && $numCups < 2);
                                              
                                                if( $remaining > 0 ){
                                                    ?><div class="abv-offthechart"></div><?php
                                                }
                                            ?>
                                        </div>
                                        <h2><?php echo number_format($abv, 1, '.', ',')."%"; ?> ABV</h2>
To this:
PHP:
                                        <!--<h3><?php
                                            $calfromalc = (1881.22 * ($beer['fg'] * ($beer['og'] - $beer['fg'])))/(1.775 - $beer['og']);
                                            $calfromcarbs = 3550.0 * $beer['fg'] * ((0.1808 * $beer['og']) + (0.8192 * $beer['fg']) - 1.0004);
                                            if ( ($beer['og'] == 1) && ($beer['fg'] == 1 ) ) {
                                                $calfromalc = 0;
                                                $calfromcarbs = 0;
                                                }
                                            echo number_format($calfromalc + $calfromcarbs), " kCal";
                                            ?>
                                        </h3>
                                        <div class="abv-container">
                                            <?php
                                                $abv = ($beer['og'] - $beer['fg']) * 131;
                                                $numCups = 0;
                                                $remaining = $abv * 20;
                                                do{
                                                        if( $remaining < 100 ){
                                                                $level = $remaining;
                                                        }else{
                                                                $level = 100;
                                                        }
                                                        ?><div class="abv-indicator"><div class="abv-full" style="height:<?php echo $level; ?>%"></div></div><?php
                                                      
                                                        $remaining = $remaining - $level;
                                                        $numCups++;
                                                }while($remaining > 0 && $numCups < 2);
                                              
                                                if( $remaining > 0 ){
                                                    ?><div class="abv-offthechart"></div><?php
                                                }
                                            ?>
                                        </div>-->
                                        <h1><?php echo number_format($abv, 1, '.', ',')."%"; ?> ABV</h1>
But my index.php file is heavily customised, so I just downloaded a virgin copy from the RPints site, let me know if it doesn't work as intended?

Cheers,

Kal
 
Well in theory it should be a case of changing this in your index.php file:
PHP:
                                        <h3><?php
                                            $calfromalc = (1881.22 * ($beer['fg'] * ($beer['og'] - $beer['fg'])))/(1.775 - $beer['og']);
                                            $calfromcarbs = 3550.0 * $beer['fg'] * ((0.1808 * $beer['og']) + (0.8192 * $beer['fg']) - 1.0004);
                                            if ( ($beer['og'] == 1) && ($beer['fg'] == 1 ) ) {
                                                $calfromalc = 0;
                                                $calfromcarbs = 0;
                                                }
                                            echo number_format($calfromalc + $calfromcarbs), " kCal";
                                            ?>
                                        </h3>
                                        <div class="abv-container">
                                            <?php
                                                $abv = ($beer['og'] - $beer['fg']) * 131;
                                                $numCups = 0;
                                                $remaining = $abv * 20;
                                                do{
                                                        if( $remaining < 100 ){
                                                                $level = $remaining;
                                                        }else{
                                                                $level = 100;
                                                        }
                                                        ?><div class="abv-indicator"><div class="abv-full" style="height:<?php echo $level; ?>%"></div></div><?php
                                                     
                                                        $remaining = $remaining - $level;
                                                        $numCups++;
                                                }while($remaining > 0 && $numCups < 2);
                                             
                                                if( $remaining > 0 ){
                                                    ?><div class="abv-offthechart"></div><?php
                                                }
                                            ?>
                                        </div>
                                        <h2><?php echo number_format($abv, 1, '.', ',')."%"; ?> ABV</h2>
To this:
PHP:
                                        <!--<h3><?php
                                            $calfromalc = (1881.22 * ($beer['fg'] * ($beer['og'] - $beer['fg'])))/(1.775 - $beer['og']);
                                            $calfromcarbs = 3550.0 * $beer['fg'] * ((0.1808 * $beer['og']) + (0.8192 * $beer['fg']) - 1.0004);
                                            if ( ($beer['og'] == 1) && ($beer['fg'] == 1 ) ) {
                                                $calfromalc = 0;
                                                $calfromcarbs = 0;
                                                }
                                            echo number_format($calfromalc + $calfromcarbs), " kCal";
                                            ?>
                                        </h3>
                                        <div class="abv-container">
                                            <?php
                                                $abv = ($beer['og'] - $beer['fg']) * 131;
                                                $numCups = 0;
                                                $remaining = $abv * 20;
                                                do{
                                                        if( $remaining < 100 ){
                                                                $level = $remaining;
                                                        }else{
                                                                $level = 100;
                                                        }
                                                        ?><div class="abv-indicator"><div class="abv-full" style="height:<?php echo $level; ?>%"></div></div><?php
                                                     
                                                        $remaining = $remaining - $level;
                                                        $numCups++;
                                                }while($remaining > 0 && $numCups < 2);
                                             
                                                if( $remaining > 0 ){
                                                    ?><div class="abv-offthechart"></div><?php
                                                }
                                            ?>
                                        </div>-->
                                        <h1><?php echo number_format($abv, 1, '.', ',')."%"; ?> ABV</h1>
But my index.php file is heavily customised, so I just downloaded a virgin copy from the RPints site, let me know if it doesn't work as intended?

Cheers,

Kal

Worked like a charm. It's beautiful :') Thanks again for your help.
 
hey all, long time no chat. I got everything but the flow meters working but I had to go on xmas break. I'm also writing a readme/text of all the changes needed including this post and a few things that are outside that post; including which version of jessie to get, how to change the right hand logo, some CSS stuff, building a headless that you can still SSH into, etc etc. What other notes do y'all have?
 
Hello, brand new to this forum and brand new to try to install RaspberryPints. I've tried reading through the forums for "quick fixes" to my issue but my skills are lacking. I've seen "hints" of my issue but is there one post I can look at to at least get RaspberryPints installed and running?

I've got my RaspberryPi up and running Raspbian 8 Jessie. I've followed the RaspberryPints instructions up to Step 7. I recognize that I needed to place the install file in /var/www/html. I began the install and get to the "Running Database Script.."
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/install/includes/configprocessor.php on line 178
error in query

I'm a better brewer than computer guy! Any advice greatly appreciated.
 
Don't worry about the deprecation message - it took effect at phpmysql 7, which if you install using the Jessie kit you won't run into (otoh, Raspbian Stretch dumped phpmysql5 in favor of phpmysql7 which pretty much croaks RaspberryPints).

Reference my "roll-up" instruction updates here. You'll need to parse it for your configuration but everything is there...

Cheers!
 
Don't worry about the deprecation message - it took effect at phpmysql 7, which if you install using the Jessie kit you won't run into (otoh, Raspbian Stretch dumped phpmysql5 in favor of phpmysql7 which pretty much croaks RaspberryPints).

Reference my "roll-up" instruction updates here. You'll need to parse it for your configuration but everything is there...

Cheers!
day_trippr,

First, thanks for taking the time to answer my question.

Second, did you tie that fly on your Avitar? And, are you a fly fisherman, if so we should get together on the Swift in Belchertown some day!

I followed your instructions to the best of my ability but the install script still stops (exits the script) at the "Running Database Script" with the Deprecated message above. Am I suppose to install phpmysql7 rather than phpmysql5? I did this:

sudo apt-get -y install apache2 php5 mysql-client mysql-server php5-mysql phpmyadmin (Step 4 RaspberryPints)

Sorry to be a pain, but any help appreciated.
 
You definitely don't want to install phpmysql7 as it'll break R'Pints. You want version 5 for mysql and related packages.
I'm wondering if the mysql package installations are defaulting to version 7 now.
Ugh.

You might scroll back in this thread and review what others have done very recently to get R'Pints running - even using Raspbian Stretch. What isn't evident is getting the flow meter support running using an Alamode but I suspect if one used a much cheaper Arduino UNO via USB even the flow meters may work.

As for the avatar, yes, I did that one back in my salmon fly tying days when I could do married wings without needing magnifiers like I do now ;)
Here's a full size pic.
Copy of silverdoc.jpg


I used to run out to the Swift after work during the summers when nearly everywhere else was overheated, with a two weight and size 26 flies on 6x tippet. It's been a few years since I've been out there - so much stuff conspires against my "free time" these days. My flyfishing of late has been limited to a couple of weeks in the Bahamas and some saltwater action on our Cape Cod week...

Cheers!
 
You definitely don't want to install phpmysql7 as it'll break R'Pints. You want version 5 for mysql and related packages.
I'm wondering if the mysql package installations are defaulting to version 7 now.
Ugh.
@Belchertown_Brewer you could try following these steps posted by @Dawk_ia:
Thanks guys, I downloaded a older version with jessie, and got RaspberryPints running, now I just need to get my flow meters.

For anyone else who is going back and using a archived version of raspberian, before you can do the

sudo apt-get update

you first need to

sudo nano /etc/host

go to the bottom and enter

93.93.128.193 mirrordirector.rasbian.org
93.93.128.191 archive.raspian.org

before doing this I was unable to update or download any packages

Maybe that will prevent your php version being update to 7?

If not, post the entire output for us to take a look at.

Cheers,

Kal
 
@Belchertown_Brewer you could try following these steps posted by @Dawk_ia:


Maybe that will prevent your php version being update to 7?

If not, post the entire output for us to take a look at.

Cheers,

Kal
Kal,

Thanks for trying to help. I think I've confused the issue I'm having. Indeed the database script did fail with this message:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/install/includes/configprocessor.php on line 178

However, it appears RaspberryPints runs. Using phpmyadmin I can see the tables and data in beerStyles but now clicking on the "Your Logo Here" image gets me to the RaspberryPints Login screen. And I can't login.

I looked at the users table with phpmyadmin and see a user and password and I even added a user and password but entering this information on the login screen gets me a flash and (Wrong Username or Password ) message

In an unrelated side question, this is more of what's the right thing to do. Should I make a donation to the RaspberryPint team even though they have not kept their project current?
 
Kal,

Thanks for trying to help. I think I've confused the issue I'm having. Indeed the database script did fail with this message:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/install/includes/configprocessor.php on line 178

However, it appears RaspberryPints runs. Using phpmyadmin I can see the tables and data in beerStyles but now clicking on the "Your Logo Here" image gets me to the RaspberryPints Login screen. And I can't login.

I looked at the users table with phpmyadmin and see a user and password and I even added a user and password but entering this information on the login screen gets me a flash and (Wrong Username or Password ) message

In an unrelated side question, this is more of what's the right thing to do. Should I make a donation to the RaspberryPint team even though they have not kept their project current?
Ah, then in that case you can ignore that warning message, as your installation was indeed successful. That was a warning for the developer that the code used is going to be (and in fact was in the latest version of NOOBS), deprecated.

As for the password issue, that is fixable, have you tried the "Forgotten Password?" button on the login page? If so and you are still having no joy you could do it via phpMyAdmin.

Open a terminal and use the following command:
Code:
echo -n your_password_here | md5sum

Then in phpMyAdmin navigate to raspberrypints database, then users table, and edit the admin user and paste the hashed output from the above command into the password field.

As for donating to keep the lights on, I did back when I first installed mine as a thank you for their past efforts, but it's totally up to you.

These days, I'd say if you lived close enough you should buy @day_trippr a beer as he's helped more people get their RPints up and running than anyone else (including the original devs).

Let me know how you go?

Cheers,

Kal
 
Last edited:
Hey Goran,
I did not get to moving the flow meter closer to the tab, however I do want to note that the foaming has stopped for me. It took a while, like more than 20 pours. Left it idle for 4 days and now it pours perfectly with the adafruit flowmeters.

Maybe there was still a big air pocket in the flow meter that had to work it's way out? Just guessing. I wish I had a better answer or solution, but my foaming problem has corrected itself

Hi there, Atariplayr & day_trippr!

I really appreciate the feedback! And, I apologize for not getting back to the forum until today. I have experienced a similar result as you, Atariplayr. While there is still more than normal foam, it is less than right after install. I may play a little more with the PSI, let it rest, and then see result a couple of days later.

The flow meter was installed on the first of four taps. So, in the coming days, I will install the remaining three meters. I have been able to find a 3/16" ID barbed (that connects to the beer line) x 1/2" NPS male and then use a 1/2" female coupler to connect to the Adafruit flow meter. This will eliminate the 1/2" to 1/4" additional beer line diameter change. Instead it will go directly from 3/16" to 1/2". I will keep day_trippr's suggestion in mind when placing the remaining flow meters on the lines to see if that makes a difference in my setup.

My setup is a little different than yours, day_trippr. I have one dual-tap kegerator (including fans) and another dual-tap converted fridge. Beer lines are 5' in both configurations. I installed the first flow meter about 12" from the keg in the kegerator.

I'll report back as I install the other three if results are any different and/or the PSI adjustment + waiting before making another change make a difference.

Again, thank you all very much!

Best regards,

Goran
 
In my experience, 5 feet is pretty short for beer lines. Most people run 10 feet or more to get pours that aren't foamy. You might try increasing your line length on one of your next meter installs to see if that helps.
 
I'm thinking - because I clearly have too much time on my hands (/sarcasm) - to try to do this whole thing in python and omit the arduino completely. anyone tried this before?
 
Not to my knowledge.
With an SF800 meter the tick interval is roughly 5 milliseconds so it seems possible that an RPi could keep up with the counting if using interrupts. Not sure how many RPi pins are available with that ability though...

Cheers!

[edit] It appears all GPIO pins are capable of generating interrupts...
 
Not to my knowledge.
With an SF800 meter the tick interval is roughly 5 milliseconds so it seems possible that an RPi could keep up with the counting if using interrupts. Not sure how many RPi pins are available with that ability though...

Cheers!

[edit] It appears all GPIO pins are capable of generating interrupts...
Is that the Adafruit meters?
 
No, those are the SwissFlow meters referenced in the original RaspberryPints builds.
They are a couple of orders of magnitude more accurate than the Adafruits and similar meters as a result of much finer volume granularity per tick, thus they'd be the greater challenge to get working...

Cheers!
 
No, those are the SwissFlow meters referenced in the original RaspberryPints builds.
They are a couple of orders of magnitude more accurate than the Adafruits and similar meters as a result of much finer volume granularity per tick, thus they'd be the greater challenge to get working...

Cheers!
last i saw they were $60 each, youch. Have you found them or comparable at a better price?
 
Yes, the SF800 meter is a pricey li'l beastie. At $60-something each I'd have given at least a second thought in investing in a half dozen of them for my keezer. Then I'd have bought them anyway.
But, quite serendipitously, when the flow meter upgrade was first made available years ago there was an eBay seller with nearly 200 "lightly used" SF800 meters that he listed at $20 each. We snapped them all up in short order and I've never seen a similar sale since...

Cheers!
 
Since I had difficulty getting my RPints build correctly on the newer Raspbian OS, I took detailed notes on the commands and modifications needed to get RPints running on a Raspberry Pi 2 Model B using the Jessie version of Raspbian OS.

I found most all of the alternate instructions on this forum. They do differ from the original instructions found on http://raspberrypints.com/byo/.

I hope these attached instructions will help someone avoid some of the headaches I had. (Sorry but the site will not allow me to upload a .docx, .doc, or .rtf file to the site. PDF was my best option.)

I've found that the site will accept .zip. I have zipped a Word Document for reference.

I am rebuilding my rpints and followed these steps, and used the noob 2.4.2 of July 2015 so I was using jessie and followed the steps. When I did the update and upgrade, i watched the install and it kept referring to stretch. when I typed apt-get install PHP5, it said PHP5 did not exist. I've read several of the current posts saying to modify etc/apt/source.list, but before I went through the mods I typed the recommended URL/IP addresses and it said they do not exist. Has anybody figured out how to get this up and running with Jessie, or do we have to use stretch? are there good instructions for using stretch and making the flow meters work? My old install still works, but I made changes so my taplist no longer updates automatically. I have to manually input the data. Not a big deal, but I wanted to get the auto function to work again. Thanks
 
Last edited:
I am rebuilding my rpints and followed these steps, and used the noob 2.4.2 of July 2015 so I was using jessie and followed the steps. When I did the update and upgrade, i watched the install and it kept referring to stretch. when I typed apt-get install PHP5, it said PHP5 did not exist. I've read several of the current posts saying to modify etc/apt/source.list, but before I went through the mods I typed the recommended URL/IP addresses and it said they do not exist. Has anybody figured out how to get this up and running with Jessie, or do we have to use stretch? are there good instructions for using stretch and making the flow meters work? My old install still works, but I made changes so my taplist no longer updates automatically. I have to manually input the data. Not a big deal, but I wanted to get the auto function to work again. Thanks
@GMAN-62 you could try following these steps posted by @Dawk_ia:
Thanks guys, I downloaded a older version with jessie, and got RaspberryPints running, now I just need to get my flow meters.

For anyone else who is going back and using a archived version of raspberian, before you can do the

sudo apt-get update

you first need to

sudo nano /etc/host

go to the bottom and enter

93.93.128.193 mirrordirector.rasbian.org
93.93.128.191 archive.raspian.org

before doing this I was unable to update or download any packages

Maybe that will prevent your php version being update to 7?

But I think we can still resurrect your original install, so let's not give up on that one just yet ;)

Cheers,

Kal
 
Last edited:
Kal,
Tried that and got an error code when running the command to edit /etc/host. It couldn’t find the file so it was going to create a new one.

Actually I went into the source.lists where you said to edit the lists and replace stretch with Jessie. I did that and was able to get Php5 to install, but when I ran sudo apt-get install mysql-client, it gave the following error. “Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation.

The following packages have unmet dependencies:
MySQL-client : Depends: MySQL-client-5.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.”

Any ideas?
 
Last edited:
Kal,
Tried that and got an error code when running the command to edit /etc/host. Actually I went into the source.lists where you said to edit the lists and replace stretch with Jessie. I did that and was able to get Php5 to install, but when I ran sudo apt-get install mysql it errored out. I’ll have to run it again and get the exact error.
So are you seeing stretch in the source list despite using the Jessie version of NOOBS? This one: https://downloads.raspberrypi.org/NOOBS/images/NOOBS-2017-07-05/
 
That should be '/etc/hosts' (note the 's'). That's why you're not finding it.
While that adds an ip address/hostname pair, you might also need to add the old Raspbian archive to /etc/apt/sources.list

I'd think
 
That should be '/etc/hosts' (note the 's'). That's why you're not finding it.
While that adds an ip address/hostname pair, you might also need to add the old Raspbian archive to /etc/apt/sources.list

I'd think
Nice catch, completely glossed over the missing 's', not enough sleep/beer/both...
 
Apologies ahead of time if this has been answered in this thread somewhere previously....


I am trying to install the LAMP stacks with the following line
sudo apt-get -y install apache2 php5 mysql-client mysql-server php5-mysql phpmyadmin

I am receiving "package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
"Package php5-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
"E: Package 'php5' has no installation candidate
"E: Package 'php5-mysql' has no installation candidate

I am very limited in my knowledge to coding and am completely lost as to where to go from here.
 
Apologies ahead of time if this has been answered in this thread somewhere previously....


I am trying to install the LAMP stacks with the following line
sudo apt-get -y install apache2 php5 mysql-client mysql-server php5-mysql phpmyadmin

I am receiving "package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
"Package php5-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"
"E: Package 'php5' has no installation candidate
"E: Package 'php5-mysql' has no installation candidate

I am very limited in my knowledge to coding and am completely lost as to where to go from here.
Hello and welcome!

The issue is the latest version of NOOBS is not compatible with RPints at the moment (but we are working on addressing that). In the meantime if you use the download link a couple of posts higher up on this page, then follow the updated instructions (you will find a link to the in the second post at the very beginning of this enormous thread), you should be able to get up and running.

Any other issues, reach out.

Cheers,

Kal
 
Back
Top