Community
OpenEnergyMonitor

Community

Feed_model.php error

I’ve fixed the sql server after doing a apt upgrade and it braking by reading through various threads. But I know stuck with this error after logging in

unexpected ',' **/var/www/emoncms/Modules/feed/feed_model.php**  on line  **83**

Line 83 is

 23,239.63,18.1,0,0,0,0,0,3894265],[1586153817.326711,5,201,0,201,239.28,18.1,0,0,0,0,0,3894266],[1586153822.396883,5,202,0,202,239.42000000000002,18.1,0,0,0,0,0,3894267],[1586153827.34521,5,204,0,204,239.39000000000001,18.1,0,0,0,0,0,3894268],[1586153832.387639,5,199,0,199,239.35,18.1,0,0,0,0,0,3894268]]&sentat=1586153832
2020-04-06 07:17:17,567 INFO     MQTT       Publishing: emonhub/rx/5/values 202,0,202,239.44,18.1,0,0,0,0,0,3894269
2020-04-06 07:17:22,560 INFO     MQTT       Publishing: emonhub/rx/5/val01,0,0,0,0,0,3791945],[1586078200.51952,5,160,0,160,239.25,15.200000000000001,0,0,0,0,0,3791946],[1586078205.479209,5,149,0,149,239.29,15.200000000000001,0,0,0,0,0,3791946],[1586078210.48615,5,161,0,161,239.58,15.200000000000001,0,0,0,0,0,3791947],[1586078215.500004,5,164,0,164,239.01,15.200000000000001,0,0,0,0,0,3791948]]&sentat=1586078217
2020-04-05 10:17:00,637 INFO     MQTT       Publishing: emonhub/rx/5/values 174,0,174,239.15,15.2,0,0,0,0,0,3791948
2020-04-05 10:17:05,618 INFO     MQTT       Publishing: emonhub/rx/5/values 170,0,170,239.1,15.2,0,0,0,0,0,3791949
2020-04-05 10:17:10,602 INFO     MQTT       Publishing: emonhub/rx/5/values 172,0,172,239.34,15.2,0,0,0,0,0,3791950
2020-04-05 10:17:15,645 INFO     MQTT       Publishing: emonhub/rx/5/values 167,0,167,239.42,15.2,0,0,0,0,0,3791951
2020-04-05 10:17:20,800 INFO     MQTT       Publishing: emonhub/rx/5/values 171,0,171,239.79,15.2,0,0,0,0,0,3791951
2020-04-05 10:17:25,760 INFO     MQTT       Publishing: emonhub/rx/5/values 158,0,158,239.99,15.2,0,0,0,0,0,3791952
2020-04-05 10:17:27,248 INFO     emoncmsorg sending: https://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1586078220.434326,5,174,0,174,239.15,15.200000000000001,0,0,0,0,0,3791948],[1586078225.512474,5,170,0,170,239.1,15.200000000000001,0,0,0,0,0,3791949],[1586078230.499156,5,172,0,172,239.34,15.200000000000001,0,0,0,0,0,3791950],[1586078235.442671,5,167,0,167,239.42000000000002,15.200000000000001,0,0,0,0,0,3791951],[1586078240.563531,5,171,0,171,239.79,15.200000000000001,0,0,0,0,0,3791951],[1586078245.513917,5,158,0,158,239.99,15.200000000000001,0,0,0,0,0,3791952]]&sentat=1586078247
2020-04-05 10:17:30,511 INFO     MQTT       Publishing: emonhub/rx/5/values 158,0,158,239.88,15.2,0,0,0,0,0,3791953

any idea which ‘,’ to remove ?

On further investigation a git status give me

On branch stable
Your branch is up to date with ‘origin/stable’.

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

    modified:   Modules/feed/feed_model.php
    modified:   Modules/input/Views/input_view.js

Managed to fix it now.

1 Like