Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

I seem to have this problem while inputting data that, unless a specific node has been defined, the new inputs gets added as a new key rather than updating the one that already exists. (See attachment)

Also:

While setting Yoctopuce VirtualHub to Emoncms Callback, I get the following error:

Error: Format error, json value is not numeric

[Connection closed]

Any idea what the problem could be and/or possible ways to fix this?

yoctopuce's picture

Re: Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

Hi, I'm from the Yoctopuce dev team and I have try to reproduce your error but without success. Could you post the content of http://XXX.XXX.XXX.XXX:4444/cbdata.txt , (where XXX.XXX.XXX.XXX is the IP of your Raspberry Pi)? This return the same data that is normally uploaded to emoncms.org. If you prefer you can send us the data by mail (support [at] yoctopuce.com)

Ambjoorn's picture

Re: Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

Here's the data:

{"timestamp":"1432203558", "network":"", ,"VoltageAC1":"0" ,"VoltageDC1":"0.01" }

I'll also send the file as attachment.

What catches my attention here is "network":"" and the 2 commas directly after

EDIT: I suppose it's worth noting that I have a Yocto-Volt and a Yocto-MiniDisplay plugged into the Raspberry Pi 2

yoctopuce's picture

Re: Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

Hi clearly there should be only one comma.  We have not been able to reproduce your error in our lab. What is the firmware level of the Yoctopuce devices and the version of the Virtual Hub?

Note: it may easier to continue this discution by mail (support@yoctopuce.com) and post only the solution here.

yoctopuce's picture

Re: Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

We have released new VirtualHub and  new firmwares that now work with Emoncms 8.5. You need to run the HTTP Callback wizard to fix the configuration (the previous settings should be preserved).

We have write a small blog post on this subject:
    http://www.yoctopuce.com/EN/article/using-emoncms-on-a-private-server

VirtualHub:
    http://www.yoctopuce.com/EN/virtualhub.php
Firmware for YoctoHub:
    http://www.yoctopuce.com/EN/firmwares.php

 

 

Ambjoorn's picture

Re: Problems with input to local Raspberry Pi from Yoctopuce VirtualHub

The problem has been dealt with in YoctoHub version 20652.

Case closed

Comment viewing options

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