Here is a new easy way to share BrewPiLess logs over the internet, on-line.
Step 0: Hosting on GitHub.
If you have your own host, it should be easy and you can skip this part. Using GitHub hosting service is simple and easy. I would suggest you too google on this subject to find better illustration and description.
Step 2: Get the log viewer
Get the “BPLog.htm” file from my GitHub:
https://github.com/vitotai/vitotai.github.io
Don’t forget to get the “raw” version.
Step 3: Upload the file and logs to share
The logs will be put at the same place as the BPLog.htm file. Subdirectories can be used. I put my log in a subdirectory, named “log”.
Step 4: Test the shared link.
First open the log viewer page on your browser. The url should be something like
1
https://[your_name].github.io/BPLog.htm
If you can see the empty log chart page. You are almost done.
Step 5: Create the shared link.
Append log name after the URL above in this format
1
https://your_name.github.io/BPLog.htm?log=[Your log name]
If the log is put in a subdirectory, replace “/” by “%2F”. You will need to uriEncodeComponent special characters. If you don’t understand previous sentence, please don’t use special characters in the path and log file names.
eg. A log name “nottingham.035.20171114” in subfolder “log”
1
https://vitotai.github.io/BPLog.htm?log=log%2Fnottingham.035.20171114
To put the chart inside a page, you can use “iframe”. For example:
1
<iframe class="chart-frame" src="http://www.vito.tw/brewlogs/BPLog.htm?log=log%2Fnottingham.035.20171114">
The result should be: