-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
daemon.log full #1
Comments
Hi,
I have removed the console.log outputs in node-red nodes.
Try the new version from:
***@***.***/node-red-smartpi
Mit freundlichen Grüßen
Jens Ramhorst
…_______________________________
nD-enerserve GmbH
Max-von-Laue-Str. 19
30966 Hemmingen
Fon: +49 511 47 30 81 45
Fax: +49 511 47 30 81 48
***@***.***
Internet:www.enerserve.eu
USt.-IdNr.: DE303591409
Sitz der Gesellschaft: Hannover
Registergericht: Amtsgericht Hannover, HRB 213079
Geschäftsführer: Dipl.-Ing. Jens Ramhorst, Dipl.-Ing. Clemens Köbe
Am 08.02.23 um 11:21 schrieb Philippe Huwyler:
Hi,
I'm using /node-red-smartpi/ to read the Smartpi values and publish
them over MQTT with a custom payload.
Everything works great except that node-red is filling up the
//var/log/daemon.log/ file.
I tried to disable logging in the
//home/smartpi/.node-red/settings.js/ file but I can still see new
entries every seconds like:
/Feb 8 11:16:19 smartpi Node-RED[505448]: Values: 2023-02-08
11:16:19,0,0,0,0,240,240,240,0,0,0,1,1,1,50.039093041438626,49.951219512195124,49.96096799375488,0,0,0,0,0,0,0,/
The /tmpfs/ filesystem where //var/log/ in mounted on is set to 50MB
and is full very quickly.
How can I disable that logging?
—
Reply to this email directly, view it on GitHub
<#1>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVKXYEHRZ4LZR4PMMERANTWWNXSFANCNFSM6AAAAAAUVCATHI>.
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
|
Hello, thanks for that quick response. PS:
Maybe I could share that example somehow since I think it might help other people using home-assistant?
|
Hello Philippe,
if that's OK, send me the example. I would then put it here on Github.
Regarding the counters, I'll take this as a suggestion for improvement.
I will also integrate the other values.
Mit freundlichen Grüßen
Jens Ramhorst
…_______________________________
nD-enerserve GmbH
Max-von-Laue-Str. 19
30966 Hemmingen
Fon: +49 511 47 30 81 45
Fax: +49 511 47 30 81 48
***@***.***
Internet:www.enerserve.eu
USt.-IdNr.: DE303591409
Sitz der Gesellschaft: Hannover
Registergericht: Amtsgericht Hannover, HRB 213079
Geschäftsführer: Dipl.-Ing. Jens Ramhorst, Dipl.-Ing. Clemens Köbe
Am 08.02.23 um 14:22 schrieb Philippe Huwyler:
Hello,
thanks for that quick response.
I just updated to version 0.1.7 and can confirm that these logs are
not written to the daemon.log file anymore.
You can close the issue if you wish, many thanks 👍
PS:
1. my node-red flow is intended for home-assistant
<https://www.home-assistant.io/> with MQTT auto-discovery. See
following snapshot:
image
<https://user-images.githubusercontent.com/3155226/217540416-4ad5596d-a36e-4d68-9f34-f33aeac9bf96.png>
Maybe I could share that example somehow since I think it might help
other people using home-assistant?
2.
while implementing that flow, I noticed that the consume counter
and produce counter respectively from the files
//var/smartpi/consumecounter/ and //var/smartpi/producecounter/
were not available nor in the /smartpi-values/ nor in the
/smartpi-input/. So I added a /watch/ on these files and read the
content when the file changed, then join the value in my final
payload to publish.
Would it make sens that, instead of manually reading the files,
rather include these two values / logic in the existing
/smartpi-values/ and /smartpi-input/?
3.
other missing values are /power-total/ and /current-total/ not
included in the /smartpi-values/
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVKXYAJDDMV7OBXNB3IUKTWWOMZDANCNFSM6AAAAAAUVCATHI>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi Jens, that's great! So once the other values are included, probably we can simplify the node-red flow. Find my current flow.json in the attachment Edit: I've replaced the flow.zip file by anonymizing some MQTT connection string... |
I have added There is now a subdirectory examples, where examples and exampleflows are collected. |
Hi, this is nice, thanks. I've updated the home assistance node-red flow example to work with v0.2.4:
This is included in the PR#2 Kind regards |
Hi,
I'm using node-red-smartpi to read the Smartpi values and publish them over MQTT with a custom payload.
Everything works great except that node-red is filling up the /var/log/daemon.log file.
I tried to disable logging in the /home/smartpi/.node-red/settings.js file but after restarting the node-red service, I can still see new entries every seconds like:
Feb 8 11:16:19 smartpi Node-RED[505448]: Values: 2023-02-08 11:16:19,0,0,0,0,240,240,240,0,0,0,1,1,1,50.039093041438626,49.951219512195124,49.96096799375488,0,0,0,0,0,0,0,
The tmpfs filesystem where /var/log in mounted on is set to 50MB and is full very quickly.
How can I disable such logging?
The text was updated successfully, but these errors were encountered: