Input list doesn't load

Hi Trystan

I will look into it tomorrow when I get back to work…

Hi!
get inputs.json give some results:

{"emonpi":{"power1":{"id":"1","processList":""},"power2":{"id":"2","processList":""},"power1pluspower2":{"id":"3","processList":""},"vrms":{"id":"4","processList":""},"t1":{"id":"5","processList":"1:3"},"t2":{"id":"6","processList":""},"t3":{"id":"7","processList":""},"t4":{"id":"8","processList":""},"t5":{"id":"9","processList":""},"t6":{"id":"10","processList":""},"pulsecount":{"id":"11","processList":""},"rssi":{"id":"12","processList":""},"t20":{"id":"32","processList":"1:1"},"t21":{"id":"33","processList":"1:2"},"t19":{"id":"46","processList":"1:9"},"t8":{"id":"47","processList":"1:6"},"t9":{"id":"48","processList":"1:7"},"t10":{"id":"49","processList":"1:8"},"t11":{"id":"50","processList":"1:12"},"t12":{"id":"51","processList":"1:13"},"t17":{"id":"52","processList":"1:22"},"t18":{"id":"53","processList":"1:21"},"t13":{"id":"54","processList":"1:23"},"t14":{"id":"55","processList":"1:24"},"t15":{"id":"56","processList":"1:25"},"t16":{"id":"57","processList":"1:26"}},"emonth7":{"temperature":{"id":"13","processList":"1:4"},"external temperature":{"id":"14","processList":""},"humidity":{"id":"15","processList":""},"battery":{"id":"16","processList":""},"pulsecount":{"id":"17","processList":""},"rssi":{"id":"18","processList":""}},"emontx3":{"power1":{"id":"19","processList":"1:14,4:15"},"power2":{"id":"20","processList":"4:16,1:17"},"power3":{"id":"21","processList":"1:18,4:19"},"power4":{"id":"22","processList":""},"vrms":{"id":"23","processList":""},"temp1":{"id":"24","processList":"1:5"},"temp2":{"id":"25","processList":""},"temp3":{"id":"26","processList":""},"temp4":{"id":"27","processList":""},"temp5":{"id":"28","processList":""},"temp6":{"id":"29","processList":""},"pulse":{"id":"30","processList":""},"rssi":{"id":"31","processList":""}},"emonth8":{"temperature":{"id":"34","processList":"1:11"},"external temperature":{"id":"35","processList":""},"humidity":{"id":"36","processList":""},"battery":{"id":"37","processList":""},"pulsecount":{"id":"38","processList":""},"rssi":{"id":"39","processList":""}},"emonth5":{"temperature":{"id":"40","processList":"1:10"},"external temperature":{"id":"41","processList":""},"humidity":{"id":"42","processList":""},"battery":{"id":"43","processList":""},"pulsecount":{"id":"44","processList":""},"rssi":{"id":"45","processList":""}},"0":{"1":{"id":"58","processList":""},"2":{"id":"59","processList":""},"3":{"id":"60","processList":""},"4":{"id":"61","processList":""},"5":{"id":"62","processList":""},"6":{"id":"63","processList":""},"7":{"id":"64","processList":""},"8":{"id":"65","processList":""}},"emonth6":{"temperature":{"id":"66","processList":"1:29"},"external temperature":{"id":"67","processList":""},"humidity":{"id":"68","processList":"1:31"},"battery":{"id":"69","processList":""},"pulsecount":{"id":"70","processList":""},"rssi":{"id":"71","processList":""}}}

put list.json is just blank result

and I push the “emonpiUpdate” on admin side from web, but still nothing ;(

PS! maybe thats will help you ?
I discovered, that’s my ping donät works on node-red, and from terminal ping works over sudo, when I don’t use sudo then the: "ping: icmp open socket: Operation not permitted"

Thanks @margusv

The main difference between getinputs and input/list is I think this call to redis to get the last time and value: emoncms/input_model.php at master · emoncms/emoncms · GitHub, the changes I have been making are attempting to catch an incorrect value here such as a NAN value. Would you be able to comment out line 202 to 210 to see if your inputs reappear?

Im not sure about this error, I dont have a emonpi/base with me at the moment so Im unable to test, it would be interesting to hear if this error occurs when the input list shows again, but I imagine it is unrelated.

Searching for php errors relating to silent fail with json_encode suggests an encoding issue, where the input is not utf8…

Feed/list.json

reply:

id “1”
userid “1”
name “Temp HHV kontor”
datatype “1”
tag “Node emonpi”
public “1”
size “299844”
engine “5”
processList “”
value 30.6
time 1495185475
1
id “2”
userid “1”
name “Lille Køleanlæg”
datatype “1”
tag “Node emontx3”
public “1”
size “66108”
engine “5”
processList “”
value 256
time 1495185470
2
id “3”
userid “1”
name “Lille Køleanlæg kWh”
datatype “1”
tag “Node emontx3”
public “1”
size “66108”
engine “5”
processList “”
time 1495185470
value 17.266314666557
3
id “4”
userid “1”
name “node:emonpi:t2”
datatype “1”
tag “Node emonpi”
public “1”
size “61736”
engine “5”
processList “”
value 25.6
time 1495185475
4
id “5”
userid “1”
name “new kWh”
datatype “1”
tag “”
public “1”
size “0”
engine “5”
time 1495184510
value 17.205361315581

http://172.24.0.19/emoncms/feed/inputs.json
reply:

success false
message “Feed does not exist”

any idea??

http://172.24.0.19/emoncms/input/getinputs.json

emonpi
power1
id “1”
processList “”
power2
id “2”
processList “”
power1pluspower2
id “3”
processList “”
vrms
id “4”
processList “”
t1
id “5”
processList “1:1”
t2
id “6”
processList “1:4”
t3
id “7”
processList “”
t4
id “8”
processList “”
t5
id “9”
processList “”
t6
id “10”
processList “”
pulsecount
id “11”
processList “”
rssi
id “12”
processList “”
emontx3
power1
id “13”
processList “”
power2
id “14”
processList “”
power3
id “15”
processList “”
power4
id “16”
processList “1:2,4:3”
vrms
id “17”
processList “”
temp1
id “18”
processList “”
temp2
id “19”
processList “”
temp3
id “20”
processList “”
temp4
id “21”
processList “”
temp5
id “22”
processList “”
temp6
id “23”
processList “”
pulse
id “24”
processList “”
rssi
id “25”
processList “”

@Boye interesting to hear that feed/list.json return’s something sensible in your case rather than just a blank page. Which suggests that the issue is different to @margusv in your case.

Could you check if you see any errors in your browser’s web console?, usually accessible from developer tools (Ctrl-Shift-J on firefox).

In a PM with @margusv the issue was found in his case to be non-utf8 characters in the input name. Fixed with this commit to emoncms master Update input_model.php · emoncms/emoncms@5ca1093 · GitHub

1 Like

Hi Trystan

Im using putty on a windows 7 machine

ssh login: pi
ssh password: emonpi2016

what is the full path to change the file posted here:
https://github.com/emoncms/emoncms/commit/5ca10931f577dad65beb188c2a5f9f2bb4c74ce8

after logging in I see this

It should be /var/www/html/emoncms/Modules/input/input_model.php

got it, input list works again…

I’m facing this problem again guys…and I cannot see any multigraph on my dashboard, just a blank space

Anyone???

Have you done any checks as described in this thread?

What version emoncms are you running? when did you last update?

Have you tried clearing the browser cache?

If you provide some info, you are more likely to attract support, no one will have a clue based on the info given.

Please clarify the issue(s) you have, your multigraphs are not-populated and your inputs page is not loading, is that correct?

Hi Paul,

I run the latest version, 9.8.28 if I remember well.
Yes I’ve cleared my browser cache, tried changing it with another one and from another PC.
I’ve solved the issue with multigraph by clearing the cache few days ago but the input issue still remains.
The only thing I can see from that page is the spinning wheel over a blank page (excluding the header and the footer).

Can you provide more info? There are a number of questions asked in this thread.

is the issue exactly the same as when you had it before? I do not mean are the “input page not loading” symptoms the same, are the results of the tests the same?

  1. input/list.json: no result at all, blank page

  2. About pecl.php.net/redis-2.2.5
    

    ==============================
    Release Type PECL-style PHP extension (source code)
    Name redis
    Channel pecl.php.net
    Summary PHP extension for interfacing with Redis
    Description This extension allows php applications to
    communicate with the Redis persistent key-value
    store. The php-redis module provides an easy
    object oriented interface.
    Maintainers Nicolas Favre-Felix [email protected]
    (lead)
    Michael Grunder [email protected]
    (lead)
    Release Date 2014-03-19 15:41:37
    Release Version 2.2.5 (stable)
    API Version 2.2.5 (stable)
    License PHP (PHP: License Information)
    Release Notes phpredis 2.2.5

                       This is a minor release with several bug fixes
                       as well as additions to support
                       new commands that have been introduced to Redis
                       since our last release.
    
                       A special thanks to everyone who helps the
                       project by commenting on issues and
                       submitting pull requests!  :)
    
                       [NEW] Support for the BITPOS command
                       [NEW] Connection timeout option for RedisArray
                       (@MikeToString)
                       [NEW] A _serialize method, to complement our
                       existing _unserialize method
                       [NEW] Support for the PUBSUB command
                       [NEW] Support for SCAN, SSCAN, HSCAN, and ZSCAN
                       [NEW] Support for the WAIT command
    
                       [FIX] Handle the COPY and REPLACE arguments for
                       the MIGRATE command
    
                       [DOC] Fix syntax error in documentation for the
                       SET command (@mithunsatheesh)
                       [DOC] Homebrew documentation instructions
                       (@mathias)
    

    Required Dependencies PHP version 5.2.0-6.0.0
    PEAR installer version 1.4.0b1 or newer
    Not Compatible with PHP versions
    6.0.0
    package.xml version 2.0
    Last Modified 2014-09-06 17:21
    Previous Installed - None -

  3. sure I did

  4. {"emontx3":{"power1":{"id":"1","processList":"2:-1,3:-6,24:0,1:21,4:22,5:42,22:2,24:0,1:65,4:66,5:68"},"power2":{"id":"2","processList":"1:25,4:26,5:43,11:1,3:-6,24:0,1:59,4:60,5:69"},"power3":{"id":"3","processList":"1:27,4:28,5:44"},"power4":{"id":"4","processList":"24:0,1:29,4:30,5:45"},"vrms":{"id":"29","processList":""},"temp1":{"id":"30","processList":""},"temp2":{"id":"31","processList":""},"temp3":{"id":"32","processList":""},"temp4":{"id":"33","processList":""},"temp5":{"id":"34","processList":""},"temp6":{"id":"35","processList":""},"pulse":{"id":"36","processList":""},"rssi":{"id":"37","processList":""}},"emonth6":{"temperature":{"id":"20","processList":"1:34"},"humidity":{"id":"22","processList":"1:35"},"external temperature":{"id":"38","processList":""},"battery":{"id":"39","processList":""},"pulsecount":{"id":"40","processList":""},"rssi":{"id":"41","processList":""}},"28":{"1":{"id":"48","processList":""},"2":{"id":"49","processList":""},"3":{"id":"50","processList":""},"4":{"id":"51","processList":""},"5":{"id":"52","processList":""},"6":{"id":"53","processList":""},"7":{"id":"54","processList":""},"8":{"id":"55","processList":""},"9":{"id":"56","processList":""},"10":{"id":"57","processList":""},"11":{"id":"58","processList":""},"12":{"id":"59","processList":""},"13":{"id":"60","processList":""},"14":{"id":"61","processList":""},"15":{"id":"62","processList":""},"16":{"id":"63","processList":""},"17":{"id":"64","processList":""},"18":{"id":"65","processList":""},"19":{"id":"66","processList":""},"20":{"id":"67","processList":""},"21":{"id":"68","processList":""},"22":{"id":"69","processList":""},"23":{"id":"70","processList":""},"24":{"id":"71","processList":""},"25":{"id":"72","processList":""},"26":{"id":"73","processList":""},"27":{"id":"74","processList":""},"28":{"id":"75","processList":""},"29":{"id":"76","processList":""},"rssi":{"id":"77","processList":""}},"29":{"1":{"id":"78","processList":""},"2":{"id":"79","processList":""},"3":{"id":"80","processList":""},"4":{"id":"81","processList":""},"5":{"id":"82","processList":""},"6":{"id":"83","processList":""},"7":{"id":"84","processList":""},"8":{"id":"85","processList":""},"9":{"id":"86","processList":""},"10":{"id":"87","processList":""},"11":{"id":"88","processList":""},"12":{"id":"89","processList":""},"13":{"id":"90","processList":""},"14":{"id":"91","processList":""},"15":{"id":"92","processList":""},"16":{"id":"93","processList":""},"17":{"id":"94","processList":""},"18":{"id":"95","processList":""},"19":{"id":"96","processList":""},"20":{"id":"97","processList":""},"rssi":{"id":"98","processList":""}}}

The error I get is exactly the same I had and fixed few months ago…unfortunately I don’t know when it happened again because I don’t check input page so often…I just needed to edit a value so few days ago I went there. Let me know if you need anything else

Hi guys, any hint?

Have you added the two lines as suggested in post 49: Input list doesn't load - #49 by Boye

Remember to put your emonPi in read/write mode before adding the lines…

best regards
Henrik