Callattendant Release v2.0.7 #63
Replies: 6 comments
-
First. Thanks to all who sweat blood to put this app together. Two questions:
|
Beta Was this translation helpful? Give feedback.
-
I haven't a clue from your description about how/where you installed CA. If installed in a virtual environment, then be sure to activate it before installing and launching CA. It would be most helpful to see the console or journal log output from the startup of CA when it logs what is found and what is being created, etc. Modifying To answer your specific questions:
Let me be clear - without any output showing what commands you used AND resulting console or log output, I cannot guess at what is happening here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response.
I am working to find out why my customized app.cfg file is not being read. As part of that process:
1. I reimaged the SD card using the RPI Imager. I selected the full install for the 64 bit operating system. After the install completed, I updated/upgraded the OS.
2. I verified normal operation.
3. I installed the libxml2 and libxslt
4. I installed SQLite3 and the SQLite browser
5. I installed virtual environment.
6. I followed your instruction from 7 Apr:
# Option 3: Download and install 'wheel' from project releases.
$ wget https://github.com/thess/callattendant/releases/download/v2.0.7/callattendant-2.0.7-py3-none-any.whl
$ source venv/bin/activate
$ pip install -U callattendant-2.0.7-py3-none-any.whl
7. After the install, I started CA without parameters. It created the .callattendant folder as expected. No errors in the terminal log.
8. I moved the app.cfg file and the database into the newly created folder and copied the .yaml file and renamed the folder.
9. The customizations in the app.cfg file were not reflected in the Config in the webapp. The area in the webapp where the app.cfg file is normally displayed is blank. The webapp reflects v2.0.7. I checked the config.py file
I restored the config.py file from my backup disk and the app.cfg is still not being effective. The config.py file is the only modification I made to the install. As I said, CA is running as expected but, like you, I would prefer to mod the external config file. I put them in the py file to see if they would work… I’m the only user of this system.
Thanks for the answers. Being a Windows guy I fully understand temporary runtime files – hadn’t thought of that. I missed the section in app.py that you pointed out. I’ll dig into that.
Thanks again.
|
Beta Was this translation helpful? Give feedback.
-
Where is the output I asked for? You may see no errors, but I still cannot see what CA is saying during initialization.
Again, where is the output after making these changes? And... renaming of what folder?? Stop modifying |
Beta Was this translation helpful? Give feedback.
-
I believe I have the problem resolved. See attached logs.12
When you provided the data-path parameter as “~/.callattendant” I did some additional testing. I was using the /home/user/.callattendant and the terminal log consistently said the path was not found. I didn’t want to send you something that I could fix so I did the following.
1. Started CA with no parameters as a baseline. CA started but did not read the app.cfg file (as expected)
2. Started CA with the correct syntax: --config app.cfg –data-path ~/.callattendant
The first run of step 2 reveals that the config file is correct and so is the data-path.
3. At the bottom of the terminal log (first error) the app.cfg file on line was missing a closing “)”. I fixed that and re-ran the test.
Again the terminal log displayed app.cfg line 12 as the error: DEBUG=false. Should be False. Fixed that and repeated the test.
4. I had an invalid option of “message” on SCREENED and PERMITTED options in the app.cfg file. I fixed that by removing the invalid option and re-ran the test. This time the app initialized without errors. In the webapp the app.cfg file displays normally.
Two Lessons Learned.
1. The full path to the app data folder is not home/user/.callattendant It is: ~/.callattendant the full path errors out.
2. Read the log files bottom up. An error at the bottom will cause cascading errors in the subsequent modules.
After I test my app.cfg I will post it for peer review. I want the app to answer and then hang up on blocked files. I want it to answer Permitted and Screened after 5 rings. If I get a Screened call that I want to permit, I will do that manually.
|
Beta Was this translation helpful? Give feedback.
-
Glad to hear you resolved your issues. In the future, please do not post issues in a General Discussion thread. I am closing this thread now. |
Beta Was this translation helpful? Give feedback.
-
Roll-up release incorporating a number of UI improvements and bug fixes.
UI:
Fixes:
This discussion was created from the release Callattendant Release v2.0.7.
Beta Was this translation helpful? Give feedback.
All reactions