MythLogBot@irc.libera.chat :: #mythtv

Daily chat history

Current users (25):

brfransen, ChanServ, DevMythNotifyBot, frobnic, knowledgejunkie, mad_enz, mkbloke, MythLogBot, ooshlablu, Panic, peper03, poptix, stuarta[m], zbot, ijc, MythBuild, xris, skrip_kid, sphery_, fr0bnic, Malmis, wookey_, gigem_, enix_, jwhite
Thursday, May 12th, 2022, 00:13 UTC
[00:13:25] mkbloke (mkbloke!~mkbloke@vps.cammo.me.uk) has quit (Remote host closed the connection)
[00:13:54] mkbloke (mkbloke!~mkbloke@vps.cammo.me.uk) has joined #mythtv
[00:39:27] stuarta[m] (stuarta[m]!~stuartama@2001:470:69fc:105::fff2) has quit (Ping timeout: 240 seconds)
[00:39:32] mkbloke (mkbloke!~mkbloke@vps.cammo.me.uk) has quit (Ping timeout: 248 seconds)
[00:53:24] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has quit (Quit: Leaving.)
[01:03:02] mkbloke (mkbloke!~mkbloke@vps.cammo.me.uk) has joined #mythtv
[01:41:47] peper03 (peper03!~peper03@mythtv/developer/peper03) has joined #mythtv
[01:43:08] peper03_ (peper03_!~peper03@mythtv/developer/peper03) has quit (Ping timeout: 252 seconds)
[01:53:00] stuarta[m] (stuarta[m]!~stuartama@2001:470:69fc:105::fff2) has joined #mythtv
[01:54:46] amessina (amessina!~amessina@user/amessina) has quit (Remote host closed the connection)
[02:00:06] mad_enz (mad_enz!~mad_enz@pool-96-250-248-135.nycmny.fios.verizon.net) has joined #mythtv
[02:18:01] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has joined #mythtv
[02:39:46] amessina (amessina!~amessina@user/amessina) has joined #mythtv
[02:42:24] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has quit (Quit: Konversation terminated!)
[02:45:27] mad_enz (mad_enz!~mad_enz@pool-96-250-248-135.nycmny.fios.verizon.net) has quit (Ping timeout: 276 seconds)
[02:58:08] mad_enz (mad_enz!~mad_enz@lnsm4-toronto12-50-101-118-206.internet.virginmobile.ca) has joined #mythtv
[05:06:25] amessina (amessina!~amessina@user/amessina) has quit (Remote host closed the connection)
[06:21:32] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has joined #mythtv
[08:44:31] SteveGoodey (SteveGoodey!~steve@host86-150-60-154.range86-150.btcentralplus.com) has joined #mythtv
[10:00:52] SteveGoodey (SteveGoodey!~steve@host86-150-60-154.range86-150.btcentralplus.com) has quit (Quit: Konversation terminated!)
[10:07:11] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has quit (Quit: Konversation terminated!)
[12:36:22] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has joined #mythtv
[12:36:22] Mode for #mythtv by ChanServ!ChanServ@services.libera.chat : +v peterbennett
[12:44:32] amessina (amessina!~amessina@user/amessina) has joined #mythtv
[12:52:29] peterbennett: Good Morning
[12:54:11] stuarta: afternoon
[12:54:37] peterbennett: good day
[13:14:32] peterbennett: stuarta: Any ideas on angular debugging? When I did the tutorial I could just run debug from visual studio and set break points etc. In the backend project it runs from there but does not debug.
[13:15:37] peterbennett: stuarta:Also How do I see messages from console.log? In the tutorial they came in a visual studio window.
[13:21:55] stuarta: are you running ng serve in a VS terminal?
[13:22:47] peterbennett: I did try that. Currently just running it in a normal terminal
[13:23:00] stuarta: i don't think there's much difference
[13:23:17] peterbennett: When I select debug or run in VS it does run it in a vs terminal but debugging does not work.
[13:23:49] stuarta: tbh i've not actually tried. console.log() turns up in your browsers web debug / console
[13:24:38] stuarta: lemme try a debug start and see what it does
[13:25:16] peterbennett: I did not see the console.log in the browser debug console
[13:26:46] peterbennett: OK I got the console log on tyhe browser debug, so at least I can log some values to see what is going on
[13:27:03] stuarta: umm, why is the debug session attemption port 8080 when a normal session runs on port 4200???
[13:27:49] ** stuarta notes it opened a config file where the default was :8080 **
[13:28:21] peterbennett: The npm install sets some strange things in .vscode directory, so I coped from the tutorial app which has the correct port
[13:29:55] stuarta: so got debugging working, not entirely sure what it gives you over and above opening a web browser against :4200
[13:30:23] peterbennett: can you set breakpoints and have them work?
[13:30:40] stuarta: oh is that what you are meant todo ;-)
[13:31:05] peterbennett: Yes that worked in the tutorial without any effort but not here
[13:31:29] stuarta: i've never used that at all
[13:31:50] peterbennett: Anyway, if you have not used that I will either figure it out or do without (probably the latter)
[13:32:23] peterbennett: Not that useful since so much takes place in the background so there is nowhere to set a breakpoint
[13:33:09] stuarta: out of interest what are you trying to debug?
[13:37:02] peterbennett: Well I created method getMiscellaneousData in setup_service.ts. I have a member miscellaneousdata that it wants to fill from the api
[13:37:18] peterbennett: However the values returned seem to be 0
[13:38:08] peterbennett: There is a subscribe to the observable with a lambda that sets the value
[13:38:15] stuarta: sounds like you are looking at the data before it's arrived
[13:38:31] stuarta: have a look at the testbed code
[13:38:48] peterbennett: Well the property is initialized to 9400 and getas changed to 0
[13:39:16] stuarta: ok, and you are using Observables?
[13:39:39] peterbennett: Anyway, I though that with the way this stuff works, even if it is displayed as zero, once the observable sets it to another value it will change on screen.
[13:41:15] stuarta: so the observable is either waiting, or contains data, hence things like <ng-container *ngIf="(m_categoryList$ | async) as categoryList; else loading">
[13:41:56] stuarta: now if you are running the function that updates the observable from ngOnInit() then it's only called once
[13:42:23] stuarta: if you expect it to be updated, then you'll need to call the function that updates the value
[13:42:48] stuarta: which is what the buttons on the testbed do
[13:43:23] stuarta: they just run a function from the class when clicked
[13:43:51] peterbennett: It is callng from the field definition so I don't have to use the ! syntax for an uninitialized variable
[13:44:05] peterbennett: miscData: Miscellaneous = this.setupService.getMiscellaneousData();
[13:45:26] peterbennett: I see 6 calls in the backend log so it is getting called.
[13:45:46] stuarta: ah so in the constructor. so every time that constructor is called, that function will be called
[13:45:52] peterbennett: Anyway, by playing with it I will sort it out and learn what is happening (I hope).
[13:46:33] stuarta: if this.setupService.getMiscellaneousData() returns an observable you'll need a subscribe
[13:48:34] stuarta: if you post your setupService class somewhere i can take a look if you want
[13:48:51] peterbennett: this.mythService.GetSetting({ HostName: this.m_hostName, Key: "HDRingbufferSize" }) .subscribe(data => this.m_miscellaneousData.HDRingbufferSize = Number(data.String));
[13:49:31] peterbennett: No don't worry I will sort it out. This was just a general question of how to use the debugger and the console.
[13:49:45] peterbennett: If I hit a wall I will ask you
[13:50:26] stuarta: no worries, the main thing is understanding the time of the existence of things. ie when the page first renders, the data isn't yet ready = loading....
[13:50:45] peterbennett: Yes maybe that is my problem
[13:51:57] stuarta: that's the problem that observables solve
[13:53:18] stuarta: eg https://github.com/MythTV/mythtv/blob/master/ . . . t.ts#L58-L65
[13:53:56] stuarta: where the second call is "chained" after the first, because it needs data the first provides (ie. m_hostname)
[13:54:47] stuarta: pipe & tap are analagous to subscribe, although i find them more flexible
[13:55:43] stuarta: tap() is especially nice as you can drop in a lambda function to do whatever
[13:56:47] peterbennett: ok thanks
[13:58:10] stuarta: back to your code snippet above, at the time the constructor is run this.m_hostName = "", and it's not updated until ngOnInit() in the lines i just referenced above
[14:07:51] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has quit (Quit: Leaving.)
[14:34:04] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has joined #mythtv
[14:34:05] Mode for #mythtv by ChanServ!ChanServ@services.libera.chat : +v peterbennett
[14:34:34] stuarta: peterbennett: i forgot to ask, are you writing a component?
[14:35:10] peterbennett: Yes I am filling in a stub component that Paul genartated
[14:35:52] stuarta: ah right, cool. fyi please use the framework whenever you need to generate a new component. it saves a lot of time and keeps things consistent
[14:35:57] peterbennett: I think I know the problem – stupid mistake – these are global settings not host based ones.
[14:36:22] stuarta: ahhh, so you need to pass '__GLOBAL__' as the hostname iirc
[14:36:32] peterbennett: Right
[14:37:17] stuarta: unless there's a more appropriate thing to put in for hostname?
[14:38:17] peterbennett: the api uses '_GLOBAL_' and the database uses null
[14:38:36] stuarta: ah, knew it was something like that
[14:43:22] peterbennett: Yes that fixes it
[14:44:08] stuarta: yay \o/
[14:45:33] peterbennett: Also – I checked – if the server is slow, when the response finally comes in, the screen redraws the value
[14:45:49] stuarta: great, that means the observable is working
[14:45:58] peterbennett: I stop the server with control-Z then resume with fg
[14:46:08] stuarta: (i see this the most with guide data when at the other end of a slow connection)
[14:46:28] stuarta: takes ~20s to load a 2hr slice of guide data for 93 channels
[14:46:36] stuarta: =very slow
[14:48:18] peterbennett: Hmm yes I have the same thing going on with leanfront loading the guide but it is not that slow – I load 3 hours wortth and a lot more channels, takes a few seconds
[14:48:52] peterbennett: The guide in localhost:4200 only taking a second or two
[14:49:23] stuarta: yeah that's pretty fast
[14:49:37] peterbennett: I have 737 channels
[14:50:03] stuarta: that's quite a few
[14:50:16] peterbennett: This is my test laptop system so I have all the channels selected, I do not actually get that many
[14:51:40] peterbennett: Actually I see a lot of them don't have data
[14:52:23] stuarta: i use a random m3u list for my "channels"
[14:52:25] peterbennett: I think I misspoke it is only loading data for a coupl hundred of them
[14:52:42] stuarta: you should see the underlying data in the console
[14:54:20] peterbennett: Actually 276 channels have data
[15:34:58] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has quit (Quit: Leaving.)
[15:35:52] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has joined #mythtv
[15:35:52] Mode for #mythtv by ChanServ!ChanServ@services.libera.chat : +v peterbennett
[15:45:22] DevMythNotifyBot: COMMIT: paul-h pushed 1 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/7abd . . . b2fda963e9ef
[15:53:53] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has joined #mythtv
[17:03:14] DevMythNotifyBot: COMMIT: bennettpeter pushed 1 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/b2fd . . . 1adee9811160
[17:11:59] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has quit (Quit: Leaving.)
[17:13:40] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has quit (Quit: Konversation terminated!)
[17:24:54] peper03 (peper03!~peper03@mythtv/developer/peper03) has quit (Quit: ZNC 1.8.2 - https://znc.in)
[17:26:09] peper03 (peper03!~peper03@mythtv/developer/peper03) has joined #mythtv
[17:27:06] peper03 (peper03!~peper03@mythtv/developer/peper03) has quit (Client Quit)
[17:27:31] peper03 (peper03!~peper03@mythtv/developer/peper03) has joined #mythtv
[18:11:10] frobnic (frobnic!fb@ip-130-180-011-014.um40.pools.vodafone-ip.de) has quit (Ping timeout: 240 seconds)
[18:18:11] frobnic (frobnic!~frobnic@ip-130-180-011-014.um40.pools.vodafone-ip.de) has joined #mythtv
[18:38:57] jwhite (jwhite!~jwhite66m@2001:470:69fc:105::cb5) has joined #mythtv
[18:47:21] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has joined #mythtv
[18:47:21] Mode for #mythtv by ChanServ!ChanServ@services.libera.chat : +v peterbennett
[18:50:31] peterbennett: I added a new import to primeng.module.ts. Do I need to commit a new build of web app? When does that get done?
[18:50:31] peterbennett: .
[19:01:14] DevMythNotifyBot: COMMIT: kmdewaal pushed 1 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/1ade . . . f2bc5e08400d
[19:11:40] DevMythNotifyBot: COMMIT: rcrdnalor pushed 2 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/f2bc . . . ee55ad0cf476
[19:51:25] DevMythNotifyBot: COMMIT: bennettpeter pushed 1 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/ee55 . . . 77210f263dca
[19:56:09] stuarta[m]: PeterBennett yes you do need to at some point do 'npm run build' and check-in the resulting artifacts from html/apps/backend/ May as well do it once you have completed the piece you are working on
[19:58:09] peterbennett: I have completed the General -> Miscellaneous section
[19:59:08] peterbennett: Is there a plan for i18n? Any type of translate method to be included?
[19:59:31] stuarta: yes, see the stuff paul-h did, that has some stuff translated
[19:59:44] stuarta: we need to extend that throughout the whole webapp
[20:00:06] peterbennett: I don't see that
[20:00:21] peterbennett: Host Address Backend Setup
[20:00:38] stuarta: no it's in the settings wizard
[20:01:08] peterbennett: setupwizard?
[20:01:12] stuarta: sorry, setupwizard
[20:01:34] stuarta: eg https://github.com/MythTV/mythtv/commit/f1147 . . . 50f568a3fddf
[20:02:00] stuarta: there is some online thing he uses to do the translate
[20:02:37] peterbennett: But do we need special code in the html pages to call the translate?
[20:03:21] stuarta: there is no functional api to do translation for the webapp, so we may as well just do it in the frontend using a standard angular setup for i18n
[20:04:30] peterbennett: I see stuff like 'setupwizard.selectCountry' | translate
[20:05:39] stuarta: yes, if you see the commit above, you'll see where the translation is pulled from
[20:06:12] peterbennett: So the settings do not have any of that yet
[20:06:30] peterbennett: Maybe we should do it at the same time
[20:07:06] peterbennett: Also there is a help button that does nothing, although I see some pages with "Some more very very helpful text goes here!"
[20:10:06] stuarta: a true WIP :-
[20:10:08] stuarta: a true WIP :-)
[21:00:39] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has joined #mythtv
[21:22:44] stuarta: peterbennett: is it starting to make more sense now?
[21:22:59] DevMythNotifyBot: COMMIT: kmdewaal pushed 1 commit(s) to branch master: https://github.com/MythTV/mythtv/compare/7721 . . . ef1323cade68
[21:24:31] peterbennett: stuarta Yes
[21:24:58] stuarta: great. that's what i found, once i started to get into it, it became much easier
[21:25:39] peterbennett: You must be sitting waiting for me to reconnect.
[21:26:01] stuarta: not this time, but i have done previously ;-p
[21:26:10] peterbennett: :)
[21:26:25] ** stuarta is currently researching websocket handling **
[21:26:44] stuarta: it'll be nice to start joining some dots
[21:28:48] peterbennett: A very useful command : console.log(this);
[21:28:58] peterbennett: logs the whole structure
[21:29:22] peterbennett: I added it to the showhelp that currently does nothing
[21:29:27] stuarta: btw. chrome defintely has an angular plugin, firefox should to, lets you inspect the components
[21:29:46] peterbennett: I am using chrome
[21:29:56] Steve-Goodey (Steve-Goodey!~steve@2a00:23c5:7d83:6501:6ea1:20d:5872:d872) has quit (Quit: Konversation terminated!)
[21:32:26] stuarta: did you find anything intesting from logging that showhelp component?
[21:37:21] peterbennett: I added console.log(this); to the showhelp function, so I can see the values by clicking the help button
[21:37:49] stuarta[m]: Ah cool
[21:48:53] peterbennett (peterbennett!~peter@mythtv/developer/peterbennett) has quit (Quit: Leaving.)
[22:11:01] DevMythNotifyBot (DevMythNotifyBot!~nodebot@cust32-dsl91-135-4.idnet.net) has quit (Remote host closed the connection)
[22:11:08] DevMythNotifyBot (DevMythNotifyBot!~nodebot@cust32-dsl91-135-4.idnet.net) has joined #mythtv
[22:53:03] amessina (amessina!~amessina@user/amessina) has quit (Remote host closed the connection)

IRC Logs collected by BeirdoBot.
Please use the above link to report any bugs.