because the column Last update

hello everyone,

I wanted you asked why I left it off for 3 days emontx, now in the last column uddate remains "inactive" when I see, however, that the data on the dashboard reading change.

What happened ?.

Thanks in advance for the help

pb66's picture

Re: because the column Last update

What set up do you have ?

The "inactive" time is counted from the timestamp of the last received data, so it you make a new submission of old data it would update but still be classed as inactive despite the values changing. 

Paul

serbat's picture

Re: because the column Last update

Use 1 1 emontx and raspberry.

kindly advise me what to do?

in this way, however, does not record anything on the database, right?

pb66's picture

Re: because the column Last update

What software are you running on the Pi?

Where is emonCMS hosted local, on the same Pi or remote ?

Looking at your screenshot the data is fairly recent (1hr 15mins) and will be updating the database. but it maybe updating with newer data if you have new data being forwarded.

Is interval getting shorter? Are you forwarding new data?

serbat's picture

Re: because the column Last update

Grazie pb66

I'm using the local version, use software such as "emonSD-13.08.14" updated, the last update was 2 hours ago, and then in sequence becomes inactive

 

 

pb66's picture

Re: because the column Last update

Restarting emonHub will clear the buffers

sudo service emonhub restart

and to clear anything in redis you could try

sudo redis-cli

> flushall

 

 

serbat's picture

Re: because the column Last update

ok, I try

serbat's picture

Re: because the column Last update

I tried the advice, but nothing has changed, I've done something wrong?

pb66's picture

Re: because the column Last update

It looks like it has changed because now you have all zeros and "inactive"

Are you forwarding new data?

If you are try typing

tail -f /var/log/emonhub/emonhub.log

you should be able to see the data packets in emonhub.

serbat's picture

Re: because the column Last update

I answered so

the distance between emontx and raspberry is 5Mt, divide by a wall from 30cm

 

 

 

pb66's picture

Re: because the column Last update

The date in the log shows 1970-01-01 this means there is another problem. if you type " date " I think you will find there is a problem with the Pi's time and date. someone else had this issue but they started a fresh install so we didn't find the cause.

We could try and find the problem but If you don't have much data it may be much quicker and easier to just a fresh image.

serbat's picture

Re: because the column Last update

now I'm at work, I'll try to return soon enter the "date", then see what happens.

In fact it is not the first time that happens to me and other times I always reinstall the image.

It may be a question that I have held off both the raspberry that emontx for 2 days, and working locally are never connected to the network / internet?

If it is useful to you and you tell me what I can do tonight to experiment

pb66's picture

Re: because the column Last update

There are a couple of things we could try.

If the " date " is set to 1970 try running 

cat /etc/fake-hwclock.data

I expect it to return a date string something like this " 1970-01-01 00:17:01 " if it does we can overwrite it using

sudo sh -c "echo '2014-MM-DD HH:MM:00' > /etc/fake-hwclock.data"

substituting with the current UTC time and date values. it doesn't need to be pinpoint accurate, within 10mins is fine as we can try to get it to update online using

sudo ntpd

check to see what time the Pi thinks it is now using

date

chances are it will still be wrong so try rebooting the Pi to see if the time changes, the time maybe inaccurate even if it has changed. with a network connection the time is adjusted every hour but I'm not sure if it will update AT boot then every hour or an hour after boot.

Let us know what happens :-)

Paul

serbat's picture

Re: because the column Last update

you will not believe .... is broken without doing anything, come home and fire up the pc and the signal was present

pb66's picture

Re: because the column Last update

Fantastic, so the time will eventually correct itself if the network is available.

Thanks for letting us know

Paul

serbat's picture

Re: because the column Last update

no, I'm not sure of this, I will check that there are no more false contacts on solder the antenna

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.