Look on line 24 of brewpi-api.php. It should look like this:
Code:
$url = 'http://' . $_SERVER['SERVER_NAME'] . dirname($_SERVER['PHP_SELF']) . '/newsocketmessage.php'; // Destination
No it still is :
$url = '
http://localhost/newsocketmessage.php'; // Destination
If it does not:
- Stop the script from the web page
- Issue the command
from the chamber's www directory
- Validate the above line is correct
- Issue the command
from your chamber's brewpi/utils directory
- Restart the script
- Test
I'm typing this without access to my home system, but it seems right.
Done these steps:
pi@brewpi:/var/www/html/left $ sudo git pull
Updating b6b9621..aef7e0b
Fast-forward
brewpi-api.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
pi@brewpi:/home/brewpi/left/utils $ sudo ./doPerms.sh
***Script doPerms.sh starting.***
Fixing file permissions for /var/www/html/left.
Fixing file permissions for /home/brewpi/left.
Allowing BrewPi python access to Bluetooth interfaces.
Checking user accounts.
***Script doPerms.sh complete.***
Then after restarting the script I power up the brewbubbles and simulated a few bubbles with my pen, but still nothing on my BPR!
this is the log from the brewbubbles:
18:32:59.416 -> ⸮Q⸮ao 2020-02-19T17:32:59ZV: ॰ₒ๐°৹
18:32:59.816 -> 2020-02-19T17:33:00ZV: ॰ₒ๐°৹
18:33:00.296 -> 2020-02-19T17:33:00ZV: ॰ₒ๐°৹
18:33:00.656 -> 2020-02-19T17:33:01ZV: ॰ₒ๐°৹
18:33:01.616 -> 2020-02-19T17:33:02ZV: ॰ₒ๐°৹
18:33:01.936 -> 2020-02-19T17:33:02ZV: ॰ₒ๐°৹
18:33:02.256 -> 2020-02-19T17:33:02ZV: ॰ₒ๐°৹
18:33:02.616 -> 2020-02-19T17:33:03ZV: ॰ₒ๐°৹
18:33:02.896 -> 2020-02-19T17:33:03ZV: ॰ₒ๐°৹
18:33:03.186 -> 2020-02-19T17:33:03ZV: ॰ₒ๐°৹
18:33:03.536 -> 2020-02-19T17:33:04ZV: ॰ₒ๐°৹
18:33:03.816 -> 2020-02-19T17:33:04ZV: ॰ₒ๐°৹
18:33:19.062 -> 2020-02-19T17:33:19ZV: Time is 2020-02-19T17:33:19Z, BPM is 11.99.
18:33:19.062 -> 2020-02-19T17:33:19ZV: Averages: BPM = 11.99 (1 in sample), Ambient = 22.19 (1 in sample), Vessel = -100.00 (1 in sample).
18:33:19.096 -> 2020-02-19T17:33:19ZV: Triggered httpPost().
18:33:19.096 -> 2020-02-19T17:33:19ZN: Posting to:
http://192.168.123.55/left/brewpi-api.php
18:33:19.096 -> 2020-02-19T17:33:19ZV: Resolved host 192.168.123.55 to IP 192.168.123.55
18:33:19.135 -> 2020-02-19T17:33:19ZV: Connecting to: 192.168.123.55, 80
18:33:29.374 -> 2020-02-19T17:33:29ZW: Connection failed, Host: 192.168.123.55, Port: 80 (Err: 0)
18:33:29.408 -> 2020-02-19T17:33:29ZE: Target post failed.
18:33:29.408 -> 2020-02-19T17:33:29ZV: Handle File Read: /
18:33:29.649 -> 2020-02-19T17:33:30ZV: Handle File Read: /mstile-144x144.png
18:33:29.961 -> 2020-02-19T17:33:30ZV: Handle File Read: /favicon.ico
18:33:30.133 -> 2020-02-19T17:33:30ZV: Handle File Read: /favicon.ico
Still connection failed. But I can ping from the BPR to the brewbubble fine so I don't think that is is network related.
As far as the food coloring goes, I would have thought blue would be close enough to block the light. When it's just sitting static, is the blue LED on or off? Any difference in the bracket? It helps shade a lot of the outside light.
The blue led is on and doesn't flash when a bubble passes.