I’m in the process of migrating to OH3 and have taken the opportunity to upgrade some of the base functionality in my home automation setup. To that end I’ve discovered the great timeline component created by Torsten (details at Torsten / openhab timeline picker · GitLab)
To make is easier, I’ve created a widget to encapsulate the timeline functionality and parametrize the URL argument. YAML code below.
Install Timeline code per the instructions. I installed mine in the recommended /static/time-line-picker location. However since I access my OH3 instance via difference URLs from inside and outside my firewall, I had to modify the code to automatically pick up the hostname from the URL.
In switchPoint.js replace
let openHAB_ip = urlParams.get('ip');
with
let openHAB_ip = urlParams.has('ip')? urlParams.get('ip'): location.host;
There is a typo in one line of the YAML:
There is a % instead of & in the URL-Parameterlist. Just if anyone is wondering, why this is not working, like me
Hi Fabian,
I installed your widget with the Timeline-JSR Version Files · develop-migrationToJSR223_javascript · Torsten / openhab timeline picker · GitLab
On my first try on a separate Testpage I could configure it for TransferItem1, that seems to be OK, but only for that. When I tried to use a second timeline for TransferItem2 it crashes.
The YAML Code of the page is incomplete for the second widget.