Page 1 of 1

Temp logging :(

Posted: Tue Sep 06, 2016 9:52 pm
by Nasty76
After update new pi , nethome can read logs but not add new lines. bug or I make something again wrong =).
I have my own made ds1820 plugins in use.


my start log look like this:
16.09.07 00:56:09 HomeServer Activated 138 of 138 Items
16.09.07 00:56:09 ResteasyDeployment Adding provider singleton nu.nethome.home.items.web.rest.exceptions.ExecutionFailureMapper from Application class nu.nethome.home.items.web.rest.HomeServices
16.09.07 00:56:09 ResteasyDeployment Adding provider singleton nu.nethome.home.items.web.rest.exceptions.RestExceptionMapper from Application class nu.nethome.home.items.web.rest.HomeServices
16.09.07 00:56:09 ResteasyDeployment Adding singleton resource nu.nethome.home.items.web.rest.HomeItemsResource from Application class nu.nethome.home.items.web.rest.HomeServices
16.09.07 00:56:09 ResteasyDeployment Deploying javax.ws.rs.core.Application: class nu.nethome.home.items.web.rest.HomeServices
16.09.07 00:56:07 AudioProtocolPort Sample Rate:44100.0
16.09.07 00:56:05 HomeItemFileLoader Loading Items from /etc/opt/nethome/config.xml
16.09.07 00:56:05 HomeManagerStarter Logging to: /var/log/nethome/HomeManager%g.log
16.09.07 00:56:05 HomeManagerStarter **Starting HomeManager 2.1-SNAPSHOT-cc547**


hmp I make new upm temp sensor , I see temps there but still no log.

Re: Temp logging :(

Posted: Wed Sep 07, 2016 1:22 pm
by Nasty76
update , i think my plugins is faulty , :(
more test , ok i can change my temp items nethome own upm thermometer but ,
is that coded like this if temp is 22.22 nethome show 0.0 if temp is 22 nethome show 22 degress so there is no last digits support???
i think my plugin give temp as it 22.22 etc

Re: Temp logging :(

Posted: Wed Sep 07, 2016 7:52 pm
by stefangsbb
The problem might be that the logger expects "," as decimal separator, not ".". This is perhaps not very consistent since it uses "." as separator for many input fields, but this is the way it is right now.

Re: Temp logging :(

Posted: Wed Sep 07, 2016 8:03 pm
by Nasty76
Ah ok i need test that ,that is easy replace my temp script :) i still use onewire temp sensors and send data over network to nethome pi

Re: Temp logging :(

Posted: Thu Sep 08, 2016 12:14 pm
by Nasty76
oh no if i sent string " 22,22" nethome give me 0.0 value , send still work if i sent "22" nethome show 22 degree. damn i m out why this is now hard =)

Re: Temp logging :(

Posted: Thu Sep 08, 2016 12:46 pm
by Jocke.g
That ds1820 plugin.. When it does work again, would you like to publish it somewhere, together with some short howto? I have some of those sensors too, not currently connected.

//Jocke

Re: Temp logging :(

Posted: Thu Sep 08, 2016 7:56 pm
by stefangsbb
Aha, now I start to understand the problem. Are you using the UPM-Thermometer Item to present values that are sent as events from your code?
The way it is currently written, it can only handle integer values from the event, since all the simple RF-protocols only handle integers. Then the K and M constants are used to convert the values to decimal values. So if your script wants to be able to send values with two decimals and present them via the UPM-Thermometer, it has to send the value * 100 as for example 22.22 -> 2222 and in the UPM-Thermometer Item you set K=0.01. Then the value will be converted to 22.22.

Re: Temp logging :(

Posted: Thu Sep 08, 2016 10:11 pm
by Nasty76
yeah thanks now that work so I write onewire temp tutorial when using ur native temp sensor + little perl script.
Thanks again Stefan like earlier say awesome work and thanks for fast answer