I’m sorry I assumed that brewPi was based in the US. My bad. Also, great to hear about international shipping as well.
Back on topic -
Thanks for the explanation on dockers, images and containers. That was super helpful. I think I understand those concepts a bit more now.
I used this guide to setup my RaspberryPi with Raspian, all the way up to deploying the brewPi container.
I used a hex uploader to upload this hex file to the Arduino. That went successfully too because the hex loader did seem to be working and it acknowledged the completion of the process.
Then, I launched a web browser to check if brewPi was working and it was.
Next I’m looking for the best way to downgrade to the legacy version, so this is what I did:
pi@bakepi:~ $ docker exec -it brewpi /bin/bash
root@1c88e2c00c7b:/home/brewpi# cd ~/brewpi-tools/
root@1c88e2c00c7b:~/brewpi-tools# sudo python updater.py --ask
Using interactive (advanced) update with user input
######################################################
#### ####
#### Welcome to the BrewPi Updater! ####
#### ####
######################################################
Checking whether the update script is up to date
/root/brewpi-tools is up-to-date.
It is not recommended to update during a brew!
If you are actively logging a brew we recommend canceling the the update with ctrl-c.
*** Updating BrewPi script repository ***
Stopping running instances of BrewPi
Quit message sent to BrewPi instance with pid 163!
You are on branch master
Available branches on the remote 'origin' for /home/brewpi:
[0] master
[1] Skip updating this repository
Enter the number of the branch you wish to update [master]:1
*** Updating BrewPi web interface repository ***
You are on branch master
Available branches on the remote 'origin' for /var/www/html:
[0] master
[1] Skip updating this repository
Enter the number of the branch you wish to update [master]:1
No changes were made, skipping runAfterUpdate.sh.
If you encounter problems, you can start it manually with:
sudo /home/brewpi/utils/runAfterUpdate.sh
The update script can automatically check your controller firmware version and program it with the latest release on GitHub, would you like to do this now? [Y/n]:n
Skipping controller update
*** Done updating BrewPi! ***
Please refresh your browser with ctrl-F5 to make sure it is not showing an old cached version.
root@1c88e2c00c7b:~/brewpi-tools#
As you can see, I never got the option for legacy branch. So then I went ahead and did more digging and found this thread. I copied the code by Elco and ran it as is, from my host location. This is what followed:
pi@bakepi:~ $ docker exec -it brewpi bash
git fetch --unshallow
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
git checkout legacy
cd /var/www/html
git fetch --unshallow
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
git checkout legacy
exitroot@1c88e2c00c7b:/home/brewpi# git fetch --unshallow
remote: Enumerating objects: 1821, done.
remote: Counting objects: 100% (1821/1821), done.
remote: Compressing objects: 100% (660/660), done.
remote: Total 1780 (delta 1176), reused 1717 (delta 1113), pack-reused 0
Receiving objects: 100% (1780/1780), 490.00 KiB | 431.00 KiB/s, done.
Resolving deltas: 100% (1176/1176), completed with 33 local objects.
remote: Enumerating objects: 35, done.
remote: Total 35 (delta 0), reused 0 (delta 0), pack-reused 35
Unpacking objects: 100% (35/35), done.
From https://github.com/BrewPi/brewpi-script
* [new tag] 0.1.1 -> 0.1.1
* [new tag] 0.2.0 -> 0.2.0
* [new tag] 0.2.0.1 -> 0.2.0.1
* [new tag] 0.2.0.2 -> 0.2.0.2
* [new tag] 0.2.0.3 -> 0.2.0.3
* [new tag] 0.2.0.4 -> 0.2.0.4
* [new tag] 0.2.0.4.1 -> 0.2.0.4.1
* [new tag] 0.3.0 -> 0.3.0
* [new tag] 0.3.0.1 -> 0.3.0.1
* [new tag] 0.3.1 -> 0.3.1
* [new tag] 0.3.1.1 -> 0.3.1.1
* [new tag] 0.3.2 -> 0.3.2
* [new tag] 0.3.3.1 -> 0.3.3.1
* [new tag] 0.3.4 -> 0.3.4
* [new tag] 0.3.4.1 -> 0.3.4.1
* [new tag] 0.3.4.2 -> 0.3.4.2
* [new tag] 0.3.4.3 -> 0.3.4.3
* [new tag] 0.3.4.4 -> 0.3.4.4
* [new tag] 0.3.5 -> 0.3.5
* [new tag] 0.3.6 -> 0.3.6
* [new tag] 0.3.6.1 -> 0.3.6.1
* [new tag] 0.3.6.2 -> 0.3.6.2
* [new tag] 0.3.6.3 -> 0.3.6.3
* [new tag] 0.3.7 -> 0.3.7
* [new tag] 0.3.7.1 -> 0.3.7.1
* [new tag] 0.3.8 -> 0.3.8
* [new tag] 0.4.0 -> 0.4.0
* [new tag] 0.4.1 -> 0.4.1
* [new tag] 0.4.2 -> 0.4.2
* [new tag] 0.4.3 -> 0.4.3
* [new tag] 0.4.5 -> 0.4.5
* [new tag] serial-error-message -> serial-error-message
* [new tag] skip-settings-restore-without-version -> skip-settings-restore-without-version
* [new tag] v0.1 -> v0.1
* [new tag] wificheck-cron-fix -> wificheck-cron-fix
root@1c88e2c00c7b:/home/brewpi# git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
root@1c88e2c00c7b:/home/brewpi# git fetch origin
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Total 51 (delta 28), reused 28 (delta 28), pack-reused 23
Unpacking objects: 100% (51/51), done.
From https://github.com/BrewPi/brewpi-script
* [new branch] develop -> origin/develop
* [new branch] feature/port-by-serial-number -> origin/feature/port-by-serial-number
* [new branch] legacy -> origin/legacy
* [new branch] legacy_dev -> origin/legacy_dev
* [new branch] release/0.5.0 -> origin/release/0.5.0
root@1c88e2c00c7b:/home/brewpi# git checkout legacy
error: Your local changes to the following files would be overwritten by checkout:
settings/config.cfg.example
settings/defaults.cfg
Please commit your changes or stash them before you switch branches.
Aborting
root@1c88e2c00c7b:/home/brewpi# cd /var/www/html
root@1c88e2c00c7b:/var/www/html# git fetch --unshallow
remote: Enumerating objects: 1877, done.
remote: Counting objects: 100% (1877/1877), done.
remote: Compressing objects: 100% (624/624), done.
remote: Total 1839 (delta 1241), reused 1784 (delta 1186), pack-reused 0
Receiving objects: 100% (1839/1839), 561.74 KiB | 429.00 KiB/s, done.
Resolving deltas: 100% (1241/1241), completed with 31 local objects.
remote: Enumerating objects: 6, done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 6
Unpacking objects: 100% (6/6), done.
From https://github.com/BrewPi/brewpi-www
* [new tag] 0.2.0 -> 0.2.0
* [new tag] 0.3.0 -> 0.3.0
* [new tag] 0.3.1 -> 0.3.1
* [new tag] 0.3.2 -> 0.3.2
* [new tag] 0.4.0 -> 0.4.0
* [new tag] v0.1 -> v0.1
root@1c88e2c00c7b:/var/www/html# git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
root@1c88e2c00c7b:/var/www/html# git fetch origin
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (30/30), done.
remote: Total 55 (delta 30), reused 30 (delta 30), pack-reused 25
Unpacking objects: 100% (55/55), done.
From https://github.com/BrewPi/brewpi-www
* [new branch] develop -> origin/develop
* [new branch] feature/chart-export -> origin/feature/chart-export
* [new branch] feature/notifications -> origin/feature/notifications
* [new branch] legacy -> origin/legacy
root@1c88e2c00c7b:/var/www/html# git checkout legacy
D data/.gitignore
D data/Sample Data/Sample Data-2012-09-26.json
D data/Sample Data/Sample Data.csv
D data/profiles/Sample Profile.csv
Branch legacy set up to track remote branch legacy from origin.
Switched to a new branch 'legacy'
root@1c88e2c00c7b:/var/www/html# exit
exit
It seemed like everything worked. So I launched brewPi on my web-browser.
The GUI shows up - says Script Running but I get this:
Cannot receiveLCD text fromPython script
The graph does not work Could not parse data for this brew.
Under logs I get:
Received invalid message on socket: lcd
If I go to the Maintenance Panel, under Device Configuration nothing shows up. If I refresh it gives me this message
Error while receiving device configuration: SyntaxError: Unexpected token C in JSON at position 0
I am unsure if the Rpi is finding the Arduino. I’m unsure what other issues are going on too.
Any help would be greatly appreciated, I’m aware this is not officially supported and I truly appreciate any help I could get.
Thank you in advance!