Temp logging :(

Functionality and usage of the OpenNethome Server
Post Reply
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Temp logging :(

Post 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.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Temp logging :(

Post 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
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Temp logging :(

Post 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.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Temp logging :(

Post 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
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Temp logging :(

Post 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 =)
Jocke.g
Posts: 20
Joined: Tue Jan 05, 2016 9:06 pm

Re: Temp logging :(

Post 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
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Temp logging :(

Post 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.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Temp logging :(

Post 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
Post Reply