hypokondrickard / pyNIBE

library for interaction with the NIBE UPLINK service
Apache License 2.0
4 stars 2 forks source link

Error #1

Closed TheKerbycz closed 8 years ago

TheKerbycz commented 8 years ago

Hello, i tried to use this script, but it gave me this error:

Traceback (most recent call last):
  File "nibe.py", line 22, in <module>
    my_datapoint["measurement"] = "NIBE-1245-8"
NameError: name 'my_datapoint' is not defined

I'm linux and python beginner, so I don't know what is wrong. Can you please help me? Thanks

hypokondrickard commented 8 years ago

Hi there

If you're using the influxdb example, it seems that your connection to nibe uplink hasn't been properly established.

Try doing the following:

from pyNIBE import pyNIBE my_heater = pyNIBE('','<nibe uplink password>','') my_heater.open()

print my_heater

my_heater.close()

On Mon, Jun 13, 2016 at 8:02 PM, TheKerbycz notifications@github.com wrote:

Hello, i tried to use this script, but it gave me this error:

Traceback (most recent call last): File "nibe.py", line 22, in my_datapoint["measurement"] = "NIBE-1245-8" NameError: name 'my_datapoint' is not defined

I'm linux and python beginner, so I don't know what is wrong. Can you please help me? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hypokondrickard/pyNIBE/issues/1, or mute the thread https://github.com/notifications/unsubscribe/AIokje1kSc-s7QoASKfGYT6SSzHsPT-Cks5qLZs3gaJpZM4I0la0 .

TheKerbycz commented 8 years ago

Yes, I'm using the influxdb example. The code output is:

root@kerby:~/# python nibe-print.py
<pyNIBE.pyNIBE.pyNIBE object at 0x7fa9f1b3f1d0>

But it is same even if I change password to nothing, so I think you are right.

hypokondrickard commented 8 years ago

make sure you've got the correct system ID. It's in the URL under service info when logged into the uplink web ui. If you're comfortable with it you could just set a temporary password and give me your credentials and I'll give it a try?

/Rickard

On Fri, Jun 17, 2016 at 6:51 AM, TheKerbycz notifications@github.com wrote:

Yes, I'm using the influxdb example. The code output is:

root@kerby:~/# python nibe-print.py <pyNIBE.pyNIBE.pyNIBE object at 0x7fa9f1b3f1d0>

But it is same even if I change password to nothing, so I think you are right.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hypokondrickard/pyNIBE/issues/1#issuecomment-226680061, or mute the thread https://github.com/notifications/unsubscribe/AIokjdX01ljz8a2SCHmEVZHgX9cJEg_iks5qMifDgaJpZM4I0la0 .

TheKerbycz commented 8 years ago

Just checked and I have the correct ID. Where can I send you the password? Or messege me with the new password and I will change it. Thanks for you help

hypokondrickard commented 8 years ago

just set it to whatever and drop me an email with credentials and systemID. rickard@ostman.net.

TheKerbycz commented 8 years ago

Thank you for your support!