Beta release for V0.2.0 is ready with a set of new features #5
Replies: 19 comments 4 replies
-
Well I apologize but I am a bit confused... First, the configuration file should be placed in the volume mapped to /config and it should have the file name nutcase.yml." Is that on the server running the docker instance or on my Homepage server? Second, what change needs to be made in my Homepage service widget? Thanks again and sorry for my misunderstanding. al |
Beta Was this translation helpful? Give feedback.
-
Greetings, Thank you for the clarification, I understand now. Will be giving this a go a bit later today. al... |
Beta Was this translation helpful? Give feedback.
-
I am so sorry to bother but, am having some issues... 1 - Here is my docker run command: 2 - I put the configured nutcase.yaml in docker/nutcase:
3 -From my Homepage service.yaml: 4 - This is what is displayed for nutcase.battery.runtime: 5 - When I look at the json I don't see any thing prefaced with "nutcase" What am I missing? Thanks, al |
Beta Was this translation helpful? Give feedback.
-
I corrected the typos, no change. Attached is log file. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Did you restart the container after editing the control file please? |
Beta Was this translation helpful? Give feedback.
-
Restarted, no change yet... |
Beta Was this translation helpful? Give feedback.
-
ok, can you post the log now please after the restart. |
Beta Was this translation helpful? Give feedback.
-
attached... |
Beta Was this translation helpful? Give feedback.
-
By the way, the NUTCase.log has no entries from today. The log I sent you was nutcase.log.1 which has todays entries |
Beta Was this translation helpful? Give feedback.
-
sorry, |
Beta Was this translation helpful? Give feedback.
-
ok, that makes sense of what you see. The key thing I notice is:
There are a couple of reasons that might cause this file not to be found and we should be able to fix this. Can you log in to the system running the docker instance that is hosting nutcase and type this and post the resultant listing in full please:
Then please type:
This lists the containers running. From the line with nutcase can you take the long hexadecimal number in the first column and substitute it for xxxxxxx in the following commands:
This will give a listing which should look a lot like this:
Can you post the output you get in full please? If your listing has a file called
and post the full output you get from that please. One final question, which method did you use to install docker please and which base OS distribution are you on? Thanks, |
Beta Was this translation helpful? Give feedback.
-
root@nut-2:/docker/nutcase# ls -al docker ps docker exec faba53c6dd79 ls -al /config Maybe this is the problem? |
Beta Was this translation helpful? Give feedback.
-
I need to step away for about an hour, more later... |
Beta Was this translation helpful? Give feedback.
-
OS: Debian GNU/Linux 12 (bookworm) DOCKER INSTALL: apt install apt-transport-https ca-certificates curl software-properties-common |
Beta Was this translation helpful? Give feedback.
-
ok, I think the copy-paste on the listing was short?
it seems to end abruptly, can you check and maybe repost? I would expect it to continue with log.5 and then list the config file on the next line? If so the other thing to note is that you have named it |
Beta Was this translation helpful? Give feedback.
-
OK, I renamed the file to .yml ans restarted the container, no change yet. Attached is the log file. The other log files dated today have entries only from hours ago. |
Beta Was this translation helpful? Give feedback.
-
Hi Al, The log points out at line 308:
and looking at your configuration there seems to be an indentation error in line 6 and 13: rework:
- from: battery.runtime
to: nutcase.battery.runtime
style: time
control: "%H %Mn"
- from: ups.status
to: nutcase.ups.status
style: simple-enum
control:
from: [ "OL", "OB", "LB", "CHRG", "RB", "FSD", "BYPASS", "SD", "CP", "BOOST", "OFF" ]
to: [ "On-Line", "On-Bat", "Low-Bat", "Charging", "Replace-Bat", "Force-Shutdown", "Bypass", "Shutdown", "On-Line", "Boost", "Off" ]
default: "Other"
- from: ups.load
to: nutcase.ups.load.watts
style: ratio
control: ups.realpower.nominal Try putting one more space on those lines like this: rework:
- from: battery.runtime
to: nutcase.battery.runtime
style: time
control: "%H %Mn"
- from: ups.status
to: nutcase.ups.status
style: simple-enum
control:
from: [ "OL", "OB", "LB", "CHRG", "RB", "FSD", "BYPASS", "SD", "CP", "BOOST", "OFF" ]
to: [ "On-Line", "On-Bat", "Low-Bat", "Charging", "Replace-Bat", "Force-Shutdown", "Bypass", "Shutdown", "On-Line", "Boost", "Off" ]
default: "Other"
- from: ups.load
to: nutcase.ups.load.watts
style: ratio
control: ups.realpower.nominal One thing that might be useful is the on-line YAML lint tool which will check any YAML and give (mostly) useful feedback, although occasionally I find the output a little miss directing. |
Beta Was this translation helpful? Give feedback.
-
I think that misaligned yml was the issue. It is working now. I am certainly sorry for all the trouble you had to go through is helping me resolve - I do appreciate it! I am relatively new to using Docker and yaml files in general but this has certainly been a learning experience. By the way, are you "promoting" NUTCase on the Homepage GitHub site? Many thanks! al |
Beta Was this translation helpful? Give feedback.
-
See this link: Maybe the General or Show and Tell or both sections. |
Beta Was this translation helpful? Give feedback.
-
The Beta release for V0.2.0 is ready. This can be pulled from DockerHub as kronos443/nutcase:v0.2.0-beta3
New features
[1] This feature requires a new configuration file and the options available are documented here
[2] The new information, listing the clients of each UPS, is placed under the UPS section of the JSON as follows. You can also see some reworked variables added to the list just above them.
Beta Was this translation helpful? Give feedback.
All reactions