Search found 51 matches

by imcfarla
Friday 29 June 2018 22:38
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Put a line in the script at line 22
print(r.text)

Then run and see what happens
by imcfarla
Friday 29 June 2018 12:37
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Newer versions of domoticz expose more functions to the plugin so localhost access is not needed anymore.

Iain
by imcfarla
Friday 29 June 2018 12:33
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I think you are missing the python requests module. Depending on Python 2 or 3 you will need to install either python3-requests or python-requests sudo apt install python-requests or sudo apt install python3-requests Should get you what you need. I have updated the collect_json.py script as I had fo...
by imcfarla
Tuesday 26 June 2018 0:11
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Can you run the script found here?
https://raw.githubusercontent.com/imcfa ... ct_json.py

This will hopefully complete and give some information about your setup.
If you could run it twice with a few hours in between then we should see some change in temp etc.
by imcfarla
Tuesday 15 May 2018 13:39
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Up until 11:30 yesterday - yes it was

After that it stopped.
by imcfarla
Tuesday 15 May 2018 0:31
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Cheers for that - i have updated the plugin in git to use the new session API
by imcfarla
Monday 30 April 2018 0:02
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I have updated the plugin.py in git to hopefully stop the "NameError" log entries.

Please can you all check this and see what happens now?
by imcfarla
Wednesday 14 March 2018 1:53
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

Hello, been quiet for a little while...but good news If you are running current beta (>9030) then the new hive plugin will work for you as SNI is now enabled for connections. The new plugin is currently in git called plugin.new.py just download it, rename it to plugin.py in a plugins/Hive folder (ov...
by imcfarla
Saturday 24 February 2018 0:25
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I think I have applied everything
by imcfarla
Thursday 22 February 2018 14:14
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

There is a "Timers" button on the website on the thermostat device in Utilities

This does not appear to show in the app.
by imcfarla
Thursday 22 February 2018 1:12
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

FYI you should be able to set the temperature and timers on the Hive - Thermostat device in the utility section so CH is working just not as a direct switch on/off.
by imcfarla
Thursday 22 February 2018 1:08
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I have committed your changes to my github repository - can you check them and see if they work?
by imcfarla
Wednesday 21 February 2018 23:24
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

The only reason to switch is that it removes the reliance on urlib.request which appears to cause problems with python 3.5 on debian using the builds published on the website. I'll be happy to take any changes you make. I have significantly refactored the code in the new version but I will add your ...
by imcfarla
Wednesday 21 February 2018 1:22
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I now have a version of the plugin which only uses the internal Connection mechanism. However you need to have a build of domoticz with this patch applied otherwise it doesn't even connect to the hive api site to get a sessionid: https://github.com/domoticz/domoticz/issues/2156 Once the patch is in ...
by imcfarla
Monday 19 February 2018 23:16
Forum: Bugs and Problems
Topic: Can this help solve the segmentation faults when importing python modules in plugin??
Replies: 41
Views: 3386

Re: Can this help solve the segmentation faults when importing python modules in plugin??

This patch allow connections that require SNI to work diff --git a/hardware/plugins/PluginTransports.cpp b/hardware/plugins/PluginTransports.cpp index 5110422e..dc6d7049 100644 --- a/hardware/plugins/PluginTransports.cpp +++ b/hardware/plugins/PluginTransports.cpp @@ -377,6 +377,7 @@ namespace Plugi...
by imcfarla
Monday 19 February 2018 1:01
Forum: Bugs and Problems
Topic: Can this help solve the segmentation faults when importing python modules in plugin??
Replies: 41
Views: 3386

Re: Can this help solve the segmentation faults when importing python modules in plugin??

Lucky you - you can revert to using the internal Transport mechanism. However when I try and connect to https://beekeeper.hivehome.com:443 I get an sslv3 handshake error. This is using the example code (changed to use HTTPS as the protocol and configured to use the site and port specified) After som...
by imcfarla
Monday 19 February 2018 0:55
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I'll answer my own question - looks like domoticz does not send the servername so any site using SNI will fail.
by imcfarla
Monday 19 February 2018 0:17
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I have tried switching to use the internal transport mechanism but it gives me an sslv3 handshake error when trying to talk to https://beekeeper-uk.hivehome.com which is required to create the sessionid. Error: Plugin: TLS Handshake Exception: 'handshake: sslv3 alert handshake failure' connecting to...
by imcfarla
Friday 16 February 2018 21:17
Forum: Bugs and Problems
Topic: Can this help solve the segmentation faults when importing python modules in plugin??
Replies: 41
Views: 3386

Re: Can this help solve the segmentation faults when importing python modules in plugin??

As far as i can see there is no way to set headers in the built in http transport.

For the Hive plugin I have written I need to be able to set some.
by imcfarla
Friday 16 February 2018 0:47
Forum: Show your projects
Topic: Read British Gas Hive Heating temperature
Replies: 179
Views: 21248

Re: Read British Gas Hive Heating temperature

I've updated git - can you check that I have it right?

Cheers