Make sure you have the latest version of brewpi-script (by running the updater or a git pull
in the script directory.
Also install dfu-util: sudo apt-get update; sudo apt-get install dfu-util
Make sure you have the latest version of brewpi-script (by running the updater or a git pull
in the script directory.
Also install dfu-util: sudo apt-get update; sudo apt-get install dfu-util
Hi again,
Finally firmware is updated in spark core, i got brewpi latest version but still no communication between spark core and raspberry pi. Keep saying at device configuration page (when refreshing device list): error while receiving device configuration: Syntax error: JS0N Parse error: Unexpected identifier "could!
To mention that spark core reads the 2 sensors and the switchers. I can also on touch screen switch on and off heater and cooler from fridge
That error is because the script is not running or at least your browser cannot connect to it. Check the logs why.
You are right. Script is not running but doesn´t let me set on the script⌠even bottom script does not show any letter in it.
log stderr and log stdout are empty
Hmm that looks messed up.
Can you hard reset the web interface code so we are sure there are no custom modifications messing this up?
In /var/www/html run:
git checkout master
git reset --hard
git pull
If it is a permissions issue it can be fixed running:
sudo bash /home/brewpi/utils/fixPermissions.sh
uffff⌠this is getting hardâŚ)))
check out master returns up-to-date
git reset hard returns: fatal: ambiguous argument ´hard´: unknown revision or path not in the working tree
doing git reset --hard returns: HEAD is now at a5a7908 Merge branch ´release/0.5.0´
git pull returns: already up.to-date
sudo bash returns: bash: /home/brewpi/fixPermissions.sh: file does not exist
I fixed my original instructions. Iâm typing this from a camp site in France, so cannot really check or test what I write.
Hi Elco,
I will wait then for your coming back. Thanks a lot for your help
Hey Elco,
I just followed the wiki and used the hypriot image and followed the wiki to update the BrewPi Spark firmware. But, hereâs the output I get when I do this:
HypriotOS/armv6: pirate@black-pearl in ~
$ docker run -it --name brewpi-dfu --privileged -v ~/brewpi-data:/data --rm brewpi/brewpi-raspbian python utils/flashDfu.py --tag=0.5.3 --noreset
Persistent files already present
Will try to download release '0.5.3â
dfu-util version 0.8 found installed on system.
Detecting DFU devices
Found 1 devices: [â2b04:d006â]
Device identified as Particle Photon
Downloading release 0.5.3
tag â0.5.3â not found
Traceback (most recent call last):
File âutils/flashDfu.pyâ, line 264, in
binFile = releases.getBin(tag, [device_type, âbrewpiâ, â.binâ])
File â/home/brewpi/utils/gitHubReleases.pyâ, line 88, in getBin
downloadUrl = self.getBinUrl(tag, wordsInFileName)
File â/home/brewpi/utils/gitHubReleases.pyâ, line 69, in getBinUrl
AllUrls = (asset[âbrowser_download_urlâ] for asset in release[âassetsâ])
TypeError: âNoneTypeâ object has no attribute âgetitemâ
Wiki that I used: https://wiki.brewpi.com/getting-started/updating
Try replacing the tag with --tag=0.5.3-rc.2
There has been some work around 0.5.3 recently to fix wifi dropouts. From what Iâve been reading, rc2 has been more stable.
Perfect! That did the trick there ! Thanks for the suggestion!
So, back to my original, original issue:
I canât get the script to start running in the web UI. I setup brewpi via the docker and updated the firmware on my Spark. At this point, Iâm really not sure where to begin⌠Hereâs my only hunch though:
I noticed that in ~/brewpi-data/settings, thereâs config.cfg.example and defaults.cfg, but no config.cfg. Should I simply edit config.cfg.example or do I have to clone config.cfg.example, rename the clone config.cfg and edit that? Hereâs what I have in config.cfg.example. The IP address in the âportâ line below is the IP address of my Photon (not my Pi)
port = socket://192.168.1.160:6666
I believe your correct, copy the config.cfg.example file to config.cfg and reboot
It worked! Yay! Thanks! I wasnât sure if I was gonna, like, break something haha.
@elco Iâm trying to upgrade my BrewPi Photon to the latest firmware (v0.5.4). The version I am currently running is v0.4.3. I first set up the Photon using the Particle IOS app on my iPhone so it is connected to my wifi.
I donât have my Raspberry Pi setup with Docker yet so Iâm attempting to use my windows PC to flash the latest firmware with dfu-util for windows. I downloaded the 2 system files and am trying to flash those first (starting with part1). Can you see any obvious errors:
Can you try to run our flashDfu script instead? You should be able to do that from your current brewpi server, but update it first.
Or if you plan to use docker eventually, it will be easier to set that up first and then use it to update the photon.
My Raspberry Pi is currently configured for the legacy branch with Rasbian. I want to set up the container to communicate via WiFi. Will I be able to update from 0.4.3 to 0.5.4 if set up for WiFi?
You can temporarily checkout a different branch than legacy to update your photon. Afterwards you can checkout legacy again.
Run our update script and check out master instead of legacy. Then update your photon with flashDfu.py.
If the update doesnât work directly 0.4.3 -> 0.5.4, try updating to 0.5.2 first.
sudo python flashDfu.py --autodfu --tag=0.5.2
Hi.
I bought a Spark 3 some time ago to use for fermentation control. When trying to update the firmware I messed up and now itâs blinking blue on the LED and the screen is black. I have been trying to update it through DFU but always get the same fault.
Sorry for the bad screen shot but the Spark is connected to a RPI and i prefer to chat on my desktop computer. Anyone who know what I need to do to get it working?