I just adjusted my emonhub config to use a different broker by literally changing the ip and username password in emonhubs config, sadly then all of my inputs went N/A NULL
so I changed the config back to the default, saved and rebooted, but still N/A NULL
The reason for changing is to use the same broker for home assistant to publish emon data to HA
Model :- Raspberry Pi 3 Model B+ Rev 1.3 - 1GB (Sony UK)
Serial num. :- 51417E17
CPU Temperature :- 60.69°C
GPU Temperature :- 61.2°C
emonpiRelease :- emonSD-17Oct19
File-system :- read-write
Client Information
Client Information
HTTP
Browser :- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Language :- en-gb
Resolution :- 768 x 1024
LAST ENTRIES ON THE LOG FILE
2020-06-26 10:47:24.434|WARN|index.php|406 Not Acceptable|cgi-bin/ViewLog
2020-06-26 12:11:52.858|WARN|index.php|406 Not Acceptable|hudson
2020-06-26 13:40:07.305|WARN|index.php|406 Not Acceptable|cgi-bin/ViewLog
2020-06-26 13:49:03.742|WARN|index.php|406 Not Acceptable|a2billing/admin/Public
2020-06-26 14:40:19.017|WARN|index.php|406 Not Acceptable|solr/admin/info
2020-06-26 15:28:14.049|WARN|index.php|406 Not Acceptable|cgi-bin/ViewLog
2020-06-26 16:27:55.498|WARN|index.php|406 Not Acceptable|api/jsonws/invoke
2020-06-26 16:44:32.288|WARN|index.php|406 Not Acceptable|api/games/all
2020-06-26 20:25:30.948|WARN|index.php|406 Not Acceptable|vendor/phpunit/phpunit
2020-06-26 20:26:52.496|WARN|index.php|406 Not Acceptable|boaform/admin/formLogin
2020-06-26 21:10:41.633|WARN|index.php|406 Not Acceptable|vendor/phpunit/phpunit
2020-06-26 21:42:32.790|WARN|index.php|406 Not Acceptable|portal/redlion
2020-06-26 22:42:41.629|WARN|index.php|406 Not Acceptable|sitemap
2020-06-26 22:42:41.753|WARN|index.php|406 Not Acceptable|.well-known/security
2020-06-27 00:00:51.136|WARN|index.php|406 Not Acceptable|xmlrpc
2020-06-27 01:47:32.815|WARN|index.php|406 Not Acceptable|cgi-bin/ViewLog
2020-06-27 05:27:43.399|WARN|index.php|406 Not Acceptable|solr/admin/info
2020-06-27 05:35:18.660|WARN|index.php|406 Not Acceptable|js/zimbraMail/share
2020-06-27 07:04:37.012|WARN|index.php|406 Not Acceptable|owa/auth/logon
2020-06-27 07:26:56.964|WARN|index.php|406 Not Acceptable|cgi-bin/ViewLog
2020-06-27 08:12:02.035|WARN|index.php|406 Not Acceptable|api/jsonws/invoke
2020-06-27 10:35:29.002|WARN|emoncms_mqtt.php|Not connected, retrying connection
2020-06-27 10:35:29.055|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2020-06-27 10:40:19.249|WARN|emoncms_mqtt.php|Not connected, retrying connection
2020-06-27 10:40:19.322|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
copied the default to a new settings.ini
modified Mqtt and mysql.
but it now breaks the guy
Fatal error : Uncaught Error: Call to a member function get() on bool in /opt/emoncms/modules/demandshaper/demandshaper-module/demandshaper_model.php:33 Stack trace: #0 /opt/emoncms/modules/demandshaper/demandshaper-module/demandshaper_menu.php(20): DemandShaper->get_list(Object(Device), 1) #1 /var/www/emoncms/core.php(235): require(’/opt/emoncms/mo…’) #2 /var/www/emoncms/index.php(350): load_menu() #3 {main} thrown in /opt/emoncms/modules/demandshaper/demandshaper-module/demandshaper_model.php on line 33
Well of course it does because that is not what I said to do. Some of the settings in the settings.ini are different to the default settings. The computer is, though, doing exactly what you asked it to do.
If you had followed my instructions and copied across the MQTT bit, you’d probably be fine!
; The 'subscriber' topic format is rx/* - where * is the emoncms input node number.
; The 'publisher' topic format is user selectable from the 'Publish to MQTT' input process, for example power/solar
; Activate MQTT by changing to true
host = 'localhost'
port = 1883
basetopic = 'emon'
client_id = 'emoncms'
UNDER the [mqtt] section LEAVING the other items there.
Amend so the host, user, and password match whatever you have set on your broker and then
Of course, if what you had wanted to do was send the data to another broker as well as emonpi, you could just have added in a second MQTT Interfacer or bridged the 2 Brokers.
Hello @dodegkr, I can see that you posted an error suggesting that emoncms cant read from feed id 61 together with the demandshaper error higher up suggests that there are quite a few things broken there? It might be easier to recover following the new SD card upgrade path documented here and then importing your existing data from this SD card Update & Upgrade - Guide | OpenEnergyMonitor I know thats a bit of a pain to do but can save trawling through SSH for a long time.
One other thought is that it might be worth trying to flush redis, you can do this from the admin user interface or via SSH:
$ redis-cli flushall
That will in the case of the error you are seeing for feed 61, clear the associated caches and force a reload of all the feed information, that error could have arisen from a mismatch between the cache and the database…
Thank you, I tried the command and the log windows now has output but the output is
/bin/sh: 1: OPENENERGYMONITOR_DIR/emonpi/service-runner-update.sh: not found
the emoncms log is
Server InformationLAST ENTRIES ON THE LOG FILE
2020-07-01 08:22:20.748|WARN|PHPFina.php|post() failed to fetch meta id=16
2020-07-01 08:22:20.753|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/67.meta'
2020-07-01 08:22:20.753|WARN|PHPFina.php|post() failed to fetch meta id=67
2020-07-01 08:22:20.759|WARN|PHPTimeSeries.php|PHPTimeSeries:fopendata could not open /var/lib/phptimeseries/feed_62.MYD
2020-07-01 08:22:22.150|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/46.meta'
2020-07-01 08:22:22.151|WARN|PHPFina.php|post() failed to fetch meta id=46
2020-07-01 08:22:22.155|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/47.meta'
2020-07-01 08:22:22.155|WARN|PHPFina.php|post() failed to fetch meta id=47
2020-07-01 08:22:22.159|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/61.meta'
2020-07-01 08:22:22.159|WARN|PHPFina.php|post() failed to fetch meta id=61
2020-07-01 08:22:53.582|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/53.meta'
2020-07-01 08:22:53.582|WARN|PHPFina.php|post() failed to fetch meta id=53
2020-07-01 08:22:53.585|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/55.meta'
2020-07-01 08:22:53.585|WARN|PHPFina.php|post() failed to fetch meta id=55
2020-07-01 08:22:53.588|WARN|PHPTimeSeries.php|PHPTimeSeries:fopendata could not open /var/lib/phptimeseries/feed_54.MYD
2020-07-01 08:22:53.591|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/16.meta'
2020-07-01 08:22:53.591|WARN|PHPFina.php|post() failed to fetch meta id=16
2020-07-01 08:22:53.594|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/67.meta'
2020-07-01 08:22:53.594|WARN|PHPFina.php|post() failed to fetch meta id=67
2020-07-01 08:22:53.597|WARN|PHPTimeSeries.php|PHPTimeSeries:fopendata could not open /var/lib/phptimeseries/feed_62.MYD
2020-07-01 08:22:54.993|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/46.meta'
2020-07-01 08:22:54.994|WARN|PHPFina.php|post() failed to fetch meta id=46
2020-07-01 08:22:54.998|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/47.meta'
2020-07-01 08:22:54.998|WARN|PHPFina.php|post() failed to fetch meta id=47
2020-07-01 08:22:55.001|WARN|PHPFina.php|get_meta() meta file does not exist '/var/lib/phpfina/61.me
Hello @dodegkr it looks like something has gone wrong with the settings. OPENENERGYMONITOR_DIR should be set in /var/www/emoncms/settings.ini. This is what this file should look like: