you could as a 3rd option (should actually be the very first option) just define nothing! Do not have datacodes or datacode defined at all, the default mode for the serial-direct interfacer is “datacode = 0” so by simply commenting out the datacode(s) line would work just fine! That is how emonhub was intended to work, with minimal settings for the user to need to set and plenty of option should they want/need something else, but the project maintainers have opted for foisting all the (duplicated default) settings on the user in an explicit conf file, hence the confusion when looking at many different forum threads and guides as all the settings are there not just the ones pertinent to the application or feature being discussed.
That I believe is your current issue. Looking at the logs I see the data coming in nicely but nothing heading out. Can you show us your emonhub.conf for the mqtt and/or http sections please.
Can you also confirm the pub and sub channels in the serial interfacer settings? These are the internal emonhub channels so your output must be listening to the same channel that your input is publishing to.
This did appeal to me when comparing the two methods, I do admit… so if I get rid of the datacodes and scales lines in the node definition - what happens then? It’ll still need the units definitions I assume (unless they’re built into the input/feed definition)?
I think the problem is that the string you generate needs to start with MSG:value as the TX3 interfacer looks for that - I’ll hold my hand up and say I suggested the change (to stop odd inputs appearing on a reset of the TX as it tried to parse Log messages) but did not update the documentation and no one noticed that this might impact custom FW builds. Docs PR created.
Units are never sent on from emonhub. You do that when you create the feed in emoncms. You could do that with a full JSON output .
Assumptions are the mother of all &^%ups.
Emonhub started as a means of decoding RF messages (AIUI) - everything else has been bolted on.
I had noted the comma at the end of other places with only a single item and there was one there in the original file, but I pushed the "RFM12, " sideways out of the way with a comment character and added in the “ToEmonCMS” but forgot to add the comma back in…
You can have multiple internal channels eg you have a emontx reporting to your local emoncms, that’s normal and you are using channel “ToEmonCMS”. You could also have another serially connected emonTx (for example) that you only want to report to emoncms.org (not a local emoncms) you could have channel “ToEmonCMSORG” or “ToEmonCMS2” etcany interfacer can publish to any number of internal channels and any interfacer can subscribe to any number of channels so you could arrive a some very complex routing, should you need it. It was included to pursue more control aspects than data collection as generally you want all your data to go to one place.
AMAZING!!! Wish I’d signed up for the forums sooner instead of suffering through thousands of browser tabs and confusing dead ends on the forums and docs…